/**
 * Solmetex WooCommerce CSS Overrides
 * 
 * This file contains modular CSS overrides for WooCommerce functionality.
 * These styles are migrated from the betheme-child theme and organized by component.
 */

/************************************************************************************************\
*** WooCommerce - General Styles
\************************************************************************************************/

/* Hide product meta and additional information by default */
.single-product .product_meta .posted_in {
    display: none !important;
}

.single-product .column_product_additional_information {
    display: none;
}

/* Ninja Form Styling */
.woocommerce .button.ninja-survey {
    background-color: #00b3ff;
    margin-bottom: 1.5em;
}

.woocommerce .nf-form-cont {
    background-color: #f2f2f2;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.woocommerce input[type="text"].ninja-forms-field,
.woocommerce input[type="email"].ninja-forms-field {
    padding: 8px 12px;
}

.woocommerce .list-checkbox-wrap .nf-field-element li input,
.woocommerce .list-image-wrap .nf-field-element li input,
.woocommerce .list-radio-wrap .nf-field-element li input {
    width: auto !important;
    float: left;
    margin-top: 0.5em;
}

.woocommerce input[type="button"].ninja-forms-field {
    background: #0c71c3;
    display: block;
    margin-bottom: 0;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    padding: 16px;
    line-height: 1;
    background-image: none;
    background-color: #0078c1;
    color: #ffffff;
    box-shadow: none;
    border-radius: 3px;
    text-transform: none;
    user-select: none;
    transition: all 0.1s ease-in-out;
    border: 1px solid #0078c1;
}

.woocommerce input[type="button"].ninja-forms-field:hover {
    background-color: #6598d5;
    border: 1px solid #6598d5;
}

.woocommerce .nf-form-title h3 {
    font-weight: 700;
    font-size: 22px;
    margin-left: 5px;
    line-height: 1.5;
}

.woocommerce .nf-form-fields-required {
    margin-left: 5px;
    font-size: 14px;
    font-style: italic;
}

.woocommerce .nf-form-content {
    margin-top: 16px;
}

/************************************************************************************************\
*** WooCommerce - Checkout Styles
\************************************************************************************************/

/* Checkout Terms Section */
.checkout-terms {
    padding: 2em 2em 4em;
    font-size: 0.8em;
    background-color: #fff;
    margin-bottom: 1em;
}

.checkout-terms p {
    line-height: 1.4em;
}

/* FAQs Section */
div#faqssection li {
    display: inline-block;
    width: 33%;
    text-align: center;
    border: solid 2px #ccc;
    cursor: pointer;
}

div#faqssection {
    padding-top: 3%;
}

/* Variations Wrapper */
.mfn-variations-wrapper-loop .attribute_select-size-model {
    display: none !important;
}

/* Order Success Page */
.order-success-page td.product-name .wc-item-meta {
    display: none;
}

.order-success-page .woocommerce-order-overview__email {
    display: none;
}

.woocommerce ul.order_details li {
    border-right: 0;
}

.woocommerce-order-details__title {
    font-size: 34px !important;
    color: #414042 !important;
    text-transform: uppercase;
}

.woocommerce-form-coupon-toggle .showcoupon:after {
    display: none;
}

/* Order Success Form */
.order-success-page .nf-form-cont {
    border-radius: 40px;
    max-width: 1140px;
    margin: auto;
    padding: 30px !important;
    margin-top: 40px;
    background: none !important;
}

.order-success-page .nf-form-cont input[type="text"],
.order-success-page .nf-form-cont input[type="email"] {
    vertical-align: inherit;
    display: initial;
    height: 60px;
    background-color: #f6f6f6;
    border-radius: 12px;
    border: 0px;
    color: #414042;
    padding: 12px 25px;
    font-size: 20px;
    line-height: 30px;
}

.order-success-page .nf-form-cont textarea {
    vertical-align: inherit;
    display: initial;
    background-color: #f6f6f6;
    border-radius: 12px;
    border: 0px;
    color: #414042;
    padding: 12px 25px;
    font-size: 20px;
    line-height: 30px;
}

.order-success-page td.product-name a {
    font-weight: normal !important;
    color: #414042 !important;
    font-family: "Poppins", sans-serif !important;
}

.order-success-page .woocommerce-customer-details {
    display: none;
}

.order-success-page .woocommerce table.shop_table {
    font-size: 24px;
}

.woocommerce .woocommerce-order-details {
    border-radius: 40px;
    max-width: 1140px;
    margin: auto;
}

.order-success-page .woocommerce-order-details table.shop_table th {
    font-weight: normal !important;
}

.order-success-page .nf-form-cont .nf-field-label label,
.order-success-page .nf-form-cont .nf-field-label .nf-label-span {
    font-weight: normal !important;
}

.woocommerce #payment .terms, .woocommerce #payment .wc-terms-and-conditions, .woocommerce-page #payment .terms, .woocommerce-page #payment .wc-terms-and-conditions {
    float: none;
}

/************************************************************************************************\
*** WooCommerce - Payment Methods
\************************************************************************************************/

#add_payment_method #payment ul.payment_methods li.active-payment,
.woocommerce-cart #payment ul.payment_methods li.active-payment,
.woocommerce-checkout #payment ul.payment_methods li.active-payment {
    border-color: #ffffff00 !important;
}

.woocommerce-checkout-review-order .special_note {
    margin: 25px 0;
    background: #F88D4C;
    border-radius: 45px;
    padding: 36px 32px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.mfn-payment-check {
    top: 19px !important;
}

#add_payment_method #payment ul.payment_methods li,
.woocommerce-cart #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li {
    border-color: #ffffff00 !important;
}

.stripe-source-errors .woocommerce-error {
    border-top: 3px solid #b81c23;
    margin: 0;
    padding: 0;
    background: none;
}

/************************************************************************************************\
*** WooCommerce - My Account
\************************************************************************************************/

.woocommerce .woocommerce-MyAccount-navigation-link--subscriptions a:before {
    content: '\e94b';
}

.woocommerce .blockUI {
    background-color: #ffffff00 !important;
}

/* DryShield Checkout Pages */
.dryshield-free-kit-added .woocommerce-form-coupon-toggle {
    display: none !important;
}

.dryshield-free-kit-added .checkout-terms .column_faq {
    margin-bottom: 35px;
}

.dryshield-free-kit-added .woocommerce-checkout {
    margin-top: 10px !important;
}

.dryshield-free-kit-added .lets-talk-water-section {
    display: none;
}

/************************************************************************************************\
*** WooCommerce - Checkout Steps
\************************************************************************************************/

.mfn-checkout-steps {
    display: flex;
    margin-bottom: 50px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.mfn-checkout-steps li {
    list-style: none;
    width: 33.333%;
    text-align: center;
    color: #414042;
    font-size: 18px;
    font-weight: 500;
}

.mfn-checkout-steps li:not(:last-child)::after {
    content: "";
    display: block;
    width: 100%;
    border-bottom: 1px dashed #eaeaea;
    position: absolute;
    top: 22px;
    left: 63%;
}

.mfn-checkout-steps li .mfn-step-number {
    background-color: #F5F8FA;
    color: #414042;
    border-radius: 50%;
    display: inline-block;
    font-size: 13px;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    margin-right: 10px;
    border: 1px solid #D6E4EA;
    position: relative;
    z-index: 5;
}

.mfn-checkout-steps li.active .mfn-step-number {
    background-color: #0E6AB5;
    color: #ffffff;
    border: 1px solid transparent;
}

/************************************************************************************************\
*** WooCommerce - Responsive Styles
\************************************************************************************************/

@media (max-width: 767px) {
    .woocommerce-order .woocommerce-notice {
        font-size: 30px !important;
    }
    
    .mfn-checkout-steps li .mfn-step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 11px;
    }
    
    .mfn-checkout-steps li:not(:last-child) {
        margin-right: 15px;
    }
    
    .mfn-checkout-steps li {
        font-size: 16px;
    }
    
    .mfn-checkout-steps li:not(:last-child)::after {
        top: 17px;
    }
}

@media (max-width: 600px) {
    .mfn-checkout-steps li .mfn-step-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 10px;
    }
    
    .mfn-checkout-steps li:not(:last-child) {
        margin-right: 10px;
    }
} 