/*
 Theme Name:   Prido Child Theme
 Theme URI:    http://example.com/prido-child/
 Description:  Prido Child Theme
 Author:       Your Name
 Author URI:   http://example.com
 Template:     prido
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 */

/* Global CSS Variables */
:root {
    --primary-color: #a90a0a;
    --success-color: #3ddb15;
    --warning-color: #faba02;
    --warning-color-dark: #e6a600;
    --dark-color: #222222;
    --white-color: #ffffff;
    --light-gray-color: #eeeeee;
    --border-color-light: #dedede;
    --dark-gray-color: #777777;
}

/* Category Slick Slider Custom CSS */
.bwp-woo-categories.slider {
    background-color: rgba(255, 255, 255, 0.85);
}

.bwp-woo-categories.slider {
    padding: 4rem 10rem;
}

.woocommerce-info .button.wc-forward:after {
    content: none;
}
.woocommerce .password-input {
    position: relative;
}

.woocommerce .show-password-input {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    color: var(--dark-gray-color);
    height: 20px;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    z-index: 1;
}

.woocommerce .show-password-input:before {
    content: "\f070";
    font: normal normal normal 1.25rem FontAwesome;
}

.woocommerce .show-password-input.display-password {
    color: var(--dark-color);
}

.woocommerce .show-password-input.display-password::before {
    content: "\f06e";
}

.bwp-filter-ajax #bwp_form_filter_product .bwp-filter-price .price-input {
    display: flex;
    column-gap: 0.25rem;
}

#LookbookImageBlock {
    overflow: auto;
}

/* Search input validation styles */
.search-box {
    position: relative;
}

.search-overlay .search-from .search-box #searchsubmit {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    height: 40px;
    justify-content: center;
    right: 8px;
    top: 0;
}

.input-search.s {
    font-size: 16px !important;
    padding: 8px 36px 8px 8px !important;
}

.search-char-counter {
    font-size: 12px;
    position: absolute;
    right: 0;
    text-align: right;
    top: 50px;
}

.search-char-counter.over-limit {
    color: var(--primary-color);
    font-weight: bold;
}

/* Search input error styles */
.input-search.s.search-input-error {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* When input has error, make character counter red too */
.input-search.s.search-input-error + .search-char-counter {
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Search error message styles */
.search-error-message {
    animation: fadeIn 0.3s ease-in;
    background-color: rgba(184, 28, 35, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 12px;
    left: 0;
    line-height: 22px;
    padding: 6px 12px;
    position: absolute;
    right: 0;
    top: 54px;
    z-index: 10;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Order Tracking Styles */
.woocommerce-table {
    position: relative;
}

.woocommerce-MyAccount-content {
    overflow-x: auto;
}

.woocommerce-table.woocommerce-table--order-details ~ a.button,
.woocommerce-table.woocommerce-table--order-details ~ br {
    display: none;
}

.woocommerce-orders-table .woocommerce-button,
.woocommerce-table--order-details .order-actions-button {
    background: var(--white-color);
    border-color: var(--primary-color);
    border-radius: 0 !important;
    border-style: solid;
    border-width: 1px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 5px 15px;
    display: inline-block;
    font-size: 12px;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    padding: 0 0.5rem;
    text-align: center;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.woocommerce-orders-table .woocommerce-button + .woocommerce-button,
.woocommerce-table--order-details
    .order-actions-button
    + .order-actions-button {
    margin-left: 0.5rem;
}

@media (max-width: 1200px) {
    .woocommerce-orders-table .woocommerce-button,
    .woocommerce-table--order-details .order-actions-button {
        display: block;
        min-width: 120px;
        width: 100%;
    }

    .woocommerce-orders-table .woocommerce-button + .woocommerce-button,
    .woocommerce-table--order-details
        .order-actions-button
        + .order-actions-button {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Whishlist Button Icon Updated */
.summary .woosw-wishlist .woosw-btn:before {
    content: "\e904" !important;
    line-height: 40px !important;
}

/* Checkout Page Updated */
.checkout-inline-error-message {
    color: var(--primary-color) !important;
}

.checkout .form-row.woocommerce-invalid-required-field .input-text {
    background-color: rgba(184, 28, 35, 0.05) !important;
    border-color: var(--primary-color) !important;
}

.checkout #place_order:disabled,
.checkout #place_order:disabled:focus,
.checkout #place_order:disabled:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
    cursor: not-allowed;
    opacity: 0.25;
}

/* Cart Popup Style Fix */
.content-cart-popup .quantity {
    align-items: center;
    display: flex;
    flex-direction: row-reverse;
}

.woocommerce-cart .cart-collaterals .tax-rate {
    display: flex;
    padding: 15px 30px;
    align-items: center;
}

.woocommerce-cart .cart-collaterals .tax-rate > * {
    flex: 1;
}

.woocommerce-cart .cart-collaterals .tax-rate .amount {
    color: var(--dark-color);
    font-size: 1.25rem;
}

/* MyWhoosh Checkout Tax Calulation Style Fix */
.checkout .woocommerce-checkout-review-order .tax-rate {
    border-top: 1px solid var(--border-color-light);
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    padding: 27px 0;
}

.checkout-login-notice {
    margin: 7rem auto;
    padding: 1.5rem;
    max-width: 640px;
}

.checkout-login-notice:before {
    content: "";
    margin: 0;
}

.checkout-login-notice .checkout-login-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
}

.checkout-login-notice .checkout-login-text {
    text-align: center;
}

.checkout-login-notice .checkout-login-text strong {
    color: var(--dark-color);
    font-family: Oswald, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.checkout-login-notice .checkout-login-text p {
    margin: 1.25rem 0;
}

.checkout-login-notice .checkout-login-btn {
    border-radius: 0;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto;
    padding: 1rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    vertical-align: middle;
    width: 160px;
}

.checkout-login-notice .checkout-login-btn:focus,
.checkout-login-notice .checkout-login-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.checkout .woocommerce-checkout-review-order .tax-rate div:first-child {
    font-family: Oswald, sans-serif;
    font-size: 15px;
}

/* Payment Method Style Fix */
.wc_payment_methods .payment_method_stripe .form-row {
    display: block;
    margin-top: 12px;
}

.wc_payment_methods .payment_method_stripe .form-row input {
    margin-right: 0.25rem;
}

.wc_payment_methods .payment_method_stripe .form-row label {
    float: none;
    padding: 0;
    position: relative;
    top: -4px;
    vertical-align: middle;
}

.wc_payment_methods .wc-saved-payment-methods {
    margin-bottom: 1rem;
    padding: 0;
}

.wc_payment_methods .wc-saved-payment-methods li {
    align-items: center;
    display: flex;
    gap: 0;
    justify-content: flex-start;
    list-style: none;
    position: relative;
}

.wc_payment_methods .wc-saved-payment-methods li > input {
    float: none !important;
    position: absolute;
    left: 0.5rem;
}

.wc_payment_methods .wc-saved-payment-methods li > input:checked + label:before {
    border-radius: 0;
    border: 1px solid var(--primary-color);
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.wc_payment_methods .wc-saved-payment-methods li > input:not(:checked) + label:before {
    content: none !important;
    display: none !important;
}

.wc_payment_methods .wc-saved-payment-methods li > label {
    position: relative;
    display: block;
    margin: 0 !important;
    padding: 0.5rem 2rem !important;
    width: 100%;
}

/* Account Payment Methods Table Styles */
.account-payment-methods-table {
    position: relative;
}

.account-payment-methods-table .payment-method.default-payment-method {
    color: var(--primary-color);
}

.account-payment-methods-table .button.delete {
    background: var(--white-color);
    border-radius: 0;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.5rem;
    padding: 0.25rem 1rem;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.account-payment-methods-table .button.delete:focus,
.account-payment-methods-table .button.delete:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.account-payment-methods-table .button:not(.delete) {
    border-radius: 0;
    border: 1px solid var(--success-color);
    color: var(--success-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.account-payment-methods-table .button:not(.delete):focus,
.account-payment-methods-table .button:not(.delete):hover {
    background: var(--success-color);
    color: var(--white-color);
}

.woocommerce-MyAccount-content .button {
    border-radius: 0;
    border: 1px solid var(--dark-color);
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    text-transform: capitalize;
    transition: all 0.3s ease;
    display: inline-block;
}
.woocommerce-MyAccount-content .button:focus,
.woocommerce-MyAccount-content .button:hover {
    background: var(--dark-color);
    color: var(--white-color);
}

/* MyWhoosh Authentication Screen Styles */
#mywhoosh-auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mywhoosh-auth-container {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.mywhoosh-close-btn {
    align-items: center;
    background: var(--light-gray-color);
    border-radius: 50%;
    border: none;
    color: var(--dark-gray-color);
    cursor: pointer;
    display: flex;
    font-size: 18px;
    height: 24px;
    justify-content: center;
    line-height: 20px;
    position: absolute;
    right: 20px;
    text-align: center;
    top: 20px;
    transition: all 0.3s ease;
    width: 24px;
}

.mywhoosh-close-btn:hover {
    background: var(--dark-gray-color);
    color: var(--white-color);
}

.mywhoosh-success-icon {
    font-size: 3rem;
    height: 3rem;
    line-height: 3.5rem;
    color: var(--success-color);
    margin: 0;
}

.mywhoosh-welcome-title {
    color: var(--dark-color);
    margin: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.mywhoosh-welcome-subtitle {
    color: var(--dark-gray-color);
    display: block;
    font-size: 0.875rem;
    line-height: 1.25;
    margin: 1rem 0;
}

.mywhoosh-new-user-badge {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.mywhoosh-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.mywhoosh-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mywhoosh-btn-primary {
    background: var(--warning-color);
    color: var(--white-color);
}

.mywhoosh-btn-primary:hover {
    background: var(--warning-color-dark);
    color: var(--white-color);
}

.mywhoosh-btn-secondary {
    background: var(--dark-gray-color);
    color: var(--white-color);
    opacity: 0.8;
}

.mywhoosh-btn-secondary:hover {
    background: var(--dark-gray-color);
    color: var(--white-color);
    opacity: 1;
}

.mywhoosh-countdown {
    background: #f8f9fa;
    align-items: center;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--dark-gray-color);
    display: inline-flex;
    font-size: 0.875rem;
    gap: 0.25rem;
    justify-content: center;
    margin: 0;
    padding: 6px 12px;
}

@media (max-width: 768px) {
    .mywhoosh-auth-container {
        margin: 15px;
        padding: 15px;
        max-width: 320px;
    }

    .mywhoosh-action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .mywhoosh-btn {
        width: 100%;
        padding: 10px;
    }
}
