/**
 * Theme Name:     Zestii Child
 * Author:         Viaaratech Team
 * Template:       loobek
 * Text Domain:    zestii-child
 * Description:    Zestii Child Theme is designed for customization and safe updates of the Zestii WordPress theme.
 * Theme URI:      https://zestii.com
 * Author URI:     http://viaaratech.com/
 * Version:        1.0
 * License:        GNU General Public License v2 or later
 * License URI:    https://www.gnu.org/licenses/gpl-2.0.html
 * Tags:           woocommerce, ecommerce, beverages, tea, coffee, wordpress-theme, responsive
 */


/* =========================================================
   ZESTII CHECKOUT - BASE
   ========================================================= */

body.woocommerce-checkout {
    background: #f7f7f5;
}

body.woocommerce-checkout .site-main {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 45px 30px 80px;
    box-sizing: border-box;
}


/* =========================================================
   CHECKOUT FORM LAYOUT
   ========================================================= */

body.woocommerce-checkout form.checkout {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
    gap: 34px;
    align-items: start;
    box-sizing: border-box;
}

body.woocommerce-checkout form.checkout::before,
body.woocommerce-checkout form.checkout::after {
    display: none !important;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

body.woocommerce-checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 30px !important;
    background: #eeeeec !important;
    border-radius: 16px !important;
    box-sizing: border-box;
}

body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}


/* =========================================================
   BILLING SECTION
   Gray background requested by the final design.
   ========================================================= */

body.woocommerce-checkout #customer_details .col-1 {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

body.woocommerce-checkout .woocommerce-billing-fields {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   CONTACT + DELIVERY SECTION LABELS
   ========================================================= */

/*
 * We keep WooCommerce's real fields and use pseudo headings.
 * This avoids modifying WooCommerce templates.
 */



body.woocommerce-checkout #billing_country_field::before {
    content: "Delivery";
    display: block;
    width: 100%;
    margin: 12px 0 18px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #173c2c;
}


/* =========================================================
   BILLING FIELD GRID
   ========================================================= */

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 0;
    width: 100%;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    box-sizing: border-box;
}


/* Contact */
body.woocommerce-checkout #billing_contact_field {
    grid-column: 1 / -1;
}

body.woocommerce-checkout #billing_contact_field::before {
    content: "Contact";
    display: block;
    width: 100%;
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #173c2c;
}

body.woocommerce-checkout #billing_email_field,
body.woocommerce-checkout #billing_phone_field {
    display: none !important;
}


/* Delivery */
body.woocommerce-checkout #billing_country_field,
body.woocommerce-checkout #billing_gst_number_field,
body.woocommerce-checkout #billing_address_1_field,
body.woocommerce-checkout #billing_address_2_field {
    grid-column: 1 / -1;
}


/* First / Last */
body.woocommerce-checkout #billing_first_name_field,
body.woocommerce-checkout #billing_last_name_field {
    grid-column: span 3;
}


/* City / State / PIN */
body.woocommerce-checkout #billing_city_field,
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_postcode_field {
    grid-column: span 2;
}


/* =========================================================
   SHIPPING SECTION
   ========================================================= */

body.woocommerce-checkout #customer_details .col-2 {
    margin-top: 0 !important;
}

body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
    width: 100%;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
    margin: 24px 0 0;
    box-sizing: border-box;
}

body.woocommerce-checkout .woocommerce-additional-fields {
    margin-bottom: 0;
}

body.woocommerce-checkout .woocommerce-shipping-fields {
    padding-top: 24px;
    border-top: 1px solid rgba(23, 60, 44, 0.10);
}

body.woocommerce-checkout .woocommerce-additional-fields {
    padding-top: 24px;
    border-top: 1px solid rgba(23, 60, 44, 0.10);
}


/* Shipping headings */
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #173c2c;
}


/* =========================================================
   FORM LABELS
   ========================================================= */

body.woocommerce-checkout form.checkout .form-row label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #333333;
}

body.woocommerce-checkout form.checkout .form-row .required {
    color: #b42318;
}


/* =========================================================
   INPUTS
   ========================================================= */

body.woocommerce-checkout form.checkout .form-row input.input-text,
body.woocommerce-checkout form.checkout .form-row textarea,
body.woocommerce-checkout form.checkout .form-row select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #222222;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.woocommerce-checkout form.checkout .form-row textarea {
    min-height: 110px;
    resize: vertical;
}

body.woocommerce-checkout form.checkout .form-row input.input-text:focus,
body.woocommerce-checkout form.checkout .form-row textarea:focus,
body.woocommerce-checkout form.checkout .form-row select:focus {
    border-color: #176044 !important;
    box-shadow: 0 0 0 3px rgba(23, 96, 68, 0.08) !important;
}


/* =========================================================
   COUNTRY / STATE SELECTS
   Fixes the square-border problem.
   ========================================================= */

body.woocommerce-checkout select#billing_country,
body.woocommerce-checkout select#billing_state,
body.woocommerce-checkout select#shipping_country,
body.woocommerce-checkout select#shipping_state {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 40px 0 13px !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #222222 !important;
    font-size: 13px !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
}

body.woocommerce-checkout select#billing_country:focus,
body.woocommerce-checkout select#billing_state:focus,
body.woocommerce-checkout select#shipping_country:focus,
body.woocommerce-checkout select#shipping_state:focus {
    border-color: #176044 !important;
    box-shadow: 0 0 0 3px rgba(23, 96, 68, 0.08) !important;
}


/* Select2 */
body.woocommerce-checkout .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 48px !important;
    line-height: 48px !important;
    padding-left: 13px !important;
    padding-right: 38px !important;
    color: #222222 !important;
    font-size: 13px !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 10px !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #555 transparent transparent transparent !important;
}

body.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #176044 !important;
    box-shadow: 0 0 0 3px rgba(23, 96, 68, 0.08) !important;
}


/* Open dropdown */
body.woocommerce-checkout .select2-container--default .select2-dropdown {
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

body.woocommerce-checkout .select2-container--default .select2-search--dropdown {
    padding: 8px !important;
}

body.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    height: 38px !important;
    padding: 0 11px !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 7px !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .select2-container--default .select2-results__option {
    padding: 9px 12px !important;
    background: #ffffff !important;
    color: #333333 !important;
    font-size: 13px !important;
}

body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted {
    background: #f0f7f3 !important;
    color: #176044 !important;
}

body.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected="true"] {
    background: #f6f9f7 !important;
    color: #176044 !important;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

body.woocommerce-checkout input[type="checkbox"] {
    accent-color: #176044;
}


/* =========================================================
   ORDER REVIEW / RIGHT SIDE
   ========================================================= */

body.woocommerce-checkout #order_review_heading {
    display: none !important;
}

body.woocommerce-checkout form.checkout #order_review {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 26px;
    background: #ffffff;
    border: 1px solid rgba(21, 91, 59, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

body.woocommerce-checkout #order_review::before {
    content: "Your order";
    display: block;
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #173c2c;
}


/* =========================================================
   ORDER TABLE
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eeeae2;
    vertical-align: top;
    line-height: 1.45;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    padding-top: 0;
    font-size: 11px;
    font-weight: 600;
    color: #777777;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    padding-right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-quantity {
    color: #777777;
    font-weight: 500;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .shipping th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .shipping td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .tax-rate th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .tax-rate td {
    font-size: 13px;
    color: #555555;
}

body.woocommerce-checkout .woocommerce-no-shipping-available-html {
    display: block;
    max-width: 180px;
    margin-left: auto;
    font-size: 11px;
    line-height: 1.45;
    text-align: right;
    color: #777777;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    padding-top: 18px;
    padding-bottom: 4px;
    border-bottom: 0;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th {
    font-size: 16px;
    font-weight: 700;
    color: #173c2c;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 19px;
    font-weight: 700;
    color: #155b3b;
}


/* =========================================================
   COUPON - INSIDE YOUR ORDER
   ========================================================= */

body.woocommerce-checkout .zestii-checkout-coupon {
    margin: 18px 0 18px;
    padding: 0;
}

body.woocommerce-checkout .zestii-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

body.woocommerce-checkout .zestii-coupon-input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #dddcd7 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #222222;
    font-size: 13px;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
}

body.woocommerce-checkout .zestii-coupon-input:focus {
    border-color: #176044 !important;
    box-shadow: 0 0 0 3px rgba(23, 96, 68, 0.08) !important;
}

body.woocommerce-checkout .zestii-coupon-button {
    min-width: 78px;
    height: 48px;
    padding: 0 17px;
    border: 1px solid #176044 !important;
    border-radius: 10px !important;
    background: #176044 !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

body.woocommerce-checkout .zestii-coupon-button:hover {
    background: #10482f !important;
}

body.woocommerce-checkout .zestii-coupon-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.woocommerce-checkout .zestii-coupon-message {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
}

body.woocommerce-checkout .zestii-coupon-message .woocommerce-error,
body.woocommerce-checkout .zestii-coupon-message .woocommerce-message {
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

body.woocommerce-checkout .zestii-coupon-message .woocommerce-error {
    background: #fff1f0 !important;
    color: #a33a32 !important;
}

body.woocommerce-checkout .zestii-coupon-message .woocommerce-message {
    background: #eef8f1 !important;
    color: #176044 !important;
}


/* =========================================================
   PAYMENT
   ========================================================= */

body.woocommerce-checkout #payment {
    margin-top: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.woocommerce-checkout #payment ul.payment_methods {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

body.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0;
    padding: 14px;
    background: #f8f7f3;
    border: 1px solid #e7e3da;
    border-radius: 11px;
    box-sizing: border-box;
}

body.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

body.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 22px;
    width: auto;
    margin-left: 4px;
}

body.woocommerce-checkout #payment .payment_box {
    margin: 10px 0 0;
    padding: 10px;
    background: #ffffff;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.45;
    color: #666666;
}


/* =========================================================
   PRIVACY + REVIEW CONSENT
   ========================================================= */

body.woocommerce-checkout .woocommerce-privacy-policy-text {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: #777777;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #155b3b;
    text-decoration: underline;
}

body.woocommerce-checkout .cr-customer-consent {
    margin: 10px 0 16px;
    font-size: 11px;
    line-height: 1.45;
    color: #666666;
}


/* =========================================================
   PLACE ORDER
   ========================================================= */

body.woocommerce-checkout #payment #place_order {
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    background: #176044;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.woocommerce-checkout #payment #place_order:hover {
    background: #10482f;
    transform: translateY(-1px);
}


/* =========================================================
   REMOVE OLD COUPON TOGGLE
   ========================================================= */

body.woocommerce-checkout .woocommerce-form-coupon-toggle {
    display: none !important;
}


/* =========================================================
   OPTIONAL SHIPPING DEBUG NOTICE
   =========================================================
   "Customer matched zone..." is normally WooCommerce
   Shipping Debug Mode. Disable Debug Mode in:
   WooCommerce -> Settings -> Shipping
   instead of hiding all checkout notices.
   ========================================================= */


/* =========================================================
   DESKTOP STICKY ORDER
   ========================================================= */

@media (min-width: 901px) {
    body.woocommerce-checkout form.checkout #order_review {
        position: sticky;
        top: 30px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) and (min-width: 901px) {

    body.woocommerce-checkout form.checkout {
        grid-template-columns:
            minmax(0, 1.35fr)
            minmax(320px, 0.9fr);
        gap: 22px;
    }

    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields {
        padding: 24px !important;
    }

    body.woocommerce-checkout form.checkout #order_review {
        padding: 22px;
    }
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 900px) {

    body.woocommerce-checkout .site-main {
        padding: 30px 16px 55px;
    }

    body.woocommerce-checkout form.checkout {
        display: flex !important;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        gap: 18px;
    }

    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout form.checkout #order_review {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        position: static !important;
        box-sizing: border-box;
    }

    body.woocommerce-checkout #customer_details {
        order: 1;
    }

    body.woocommerce-checkout form.checkout #order_review {
        order: 2;
    }

    body.woocommerce-checkout #customer_details .col-1 {
        padding: 22px 20px !important;
        border-radius: 14px;
    }

    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 10px;
    }

    body.woocommerce-checkout #billing_email_field,
    body.woocommerce-checkout #billing_phone_field {
        grid-column: span 1;
    }

    body.woocommerce-checkout #billing_country_field,
    body.woocommerce-checkout #billing_gst_number_field,
    body.woocommerce-checkout #billing_address_1_field,
    body.woocommerce-checkout #billing_address_2_field {
        grid-column: 1 / -1;
    }

    body.woocommerce-checkout #billing_first_name_field,
    body.woocommerce-checkout #billing_last_name_field {
        grid-column: span 1;
    }

    body.woocommerce-checkout #billing_city_field,
    body.woocommerce-checkout #billing_state_field,
    body.woocommerce-checkout #billing_postcode_field {
        grid-column: span 1;
    }

    body.woocommerce-checkout #billing_email_field::before,
    body.woocommerce-checkout #billing_country_field::before {
        font-size: 19px;
    }

    body.woocommerce-checkout #order_review {
        padding: 22px !important;
        border-radius: 14px !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    body.woocommerce-checkout .site-main {
        padding: 22px 12px 45px;
    }

    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields,
    body.woocommerce-checkout form.checkout #order_review {
        padding: 18px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
        display: block;
    }

    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
        width: 100% !important;
        margin-bottom: 13px !important;
    }

    body.woocommerce-checkout #billing_email_field,
    body.woocommerce-checkout #billing_phone_field,
    body.woocommerce-checkout #billing_first_name_field,
    body.woocommerce-checkout #billing_last_name_field,
    body.woocommerce-checkout #billing_city_field,
    body.woocommerce-checkout #billing_state_field,
    body.woocommerce-checkout #billing_postcode_field {
        width: 100% !important;
    }

    body.woocommerce-checkout #billing_email_field::before {
        margin-bottom: 16px;
    }

    body.woocommerce-checkout #billing_country_field::before {
        margin-top: 7px;
    }

    body.woocommerce-checkout #order_review::before {
        font-size: 20px;
    }

    body.woocommerce-checkout .zestii-coupon-row {
        grid-template-columns: 1fr;
    }

    body.woocommerce-checkout .zestii-coupon-button {
        width: 100%;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
        padding: 10px 0;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields,
    body.woocommerce-checkout form.checkout #order_review {
        padding: 15px !important;
    }

    body.woocommerce-checkout form.checkout .form-row input.input-text,
    body.woocommerce-checkout form.checkout .form-row textarea,
    body.woocommerce-checkout form.checkout .form-row select,
    body.woocommerce-checkout .select2-container--default .select2-selection--single {
        font-size: 12px !important;
    }
}


/* =========================================================
   ZESTII CHECKOUT - FINAL AUTHORITATIVE OVERRIDES
   ========================================================= */

/* Entire checkout content area */
html body.woocommerce-checkout,
html body.woocommerce-checkout #content,
html body.woocommerce-checkout .site-content,
html body.woocommerce-checkout .content-area,
html body.woocommerce-checkout .site-main,
html body.woocommerce-checkout main.site-main {
    background-color: #f7f7f7 !important;
}

/* Left side = one continuous gray area */
html body.woocommerce-checkout #customer_details {
    background: #f7f7f7 !important;
    padding: 30px !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout #customer_details .col-1,
html body.woocommerce-checkout #customer_details .col-2 {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Remove the duplicate Contact heading */
html body.woocommerce-checkout #billing_contact_field::before {
    content: none !important;
    display: none !important;
}

/* Hide the visible Contact label; use the placeholder instead */
html body.woocommerce-checkout #billing_contact_field > label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* One contact field */
html body.woocommerce-checkout #billing_contact_field {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

html body.woocommerce-checkout #billing_email_field,
html body.woocommerce-checkout #billing_phone_field {
    display: none !important;
}

/* Delivery heading */
html body.woocommerce-checkout #billing_country_field::before {
    content: "Delivery" !important;
    display: block !important;
    width: 100% !important;
    margin: 4px 0 16px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #173c2c !important;
}

/* Consistent billing grid */
html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    width: 100% !important;
    align-items: start !important;
}

html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout #billing_country_field,
html body.woocommerce-checkout #billing_gst_number_field,
html body.woocommerce-checkout #billing_address_1_field,
html body.woocommerce-checkout #billing_address_2_field {
    grid-column: 1 / -1 !important;
}

html body.woocommerce-checkout #billing_first_name_field,
html body.woocommerce-checkout #billing_last_name_field {
    grid-column: span 3 !important;
}

html body.woocommerce-checkout #billing_city_field,
html body.woocommerce-checkout #billing_state_field,
html body.woocommerce-checkout #billing_postcode_field {
    grid-column: span 2 !important;
}

/* Exact same grid for shipping */
html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    width: 100% !important;
    align-items: start !important;
}

html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout #shipping_country_field,
html body.woocommerce-checkout #shipping_address_1_field,
html body.woocommerce-checkout #shipping_address_2_field {
    grid-column: 1 / -1 !important;
}

html body.woocommerce-checkout #shipping_first_name_field,
html body.woocommerce-checkout #shipping_last_name_field {
    grid-column: span 3 !important;
}

html body.woocommerce-checkout #shipping_city_field,
html body.woocommerce-checkout #shipping_state_field,
html body.woocommerce-checkout #shipping_postcode_field {
    grid-column: span 2 !important;
}

/* Shipping + notes stay inside the same gray area */
html body.woocommerce-checkout .woocommerce-shipping-fields,
html body.woocommerce-checkout .woocommerce-additional-fields {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 22px 0 0 !important;
    margin: 10px 0 0 !important;
    border-top: 1px solid #dededb !important;
}

html body.woocommerce-checkout .woocommerce-shipping-fields h3,
html body.woocommerce-checkout .woocommerce-additional-fields h3 {
    margin: 0 0 16px !important;
}

/* Equal field sizes */
html body.woocommerce-checkout form.checkout .form-row input.input-text,
html body.woocommerce-checkout form.checkout .form-row textarea,
html body.woocommerce-checkout form.checkout .form-row select {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 10px 13px !important;
    box-sizing: border-box !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body.woocommerce-checkout form.checkout .form-row textarea {
    height: auto !important;
    min-height: 105px !important;
}

/* Select2 */
html body.woocommerce-checkout .select2-container {
    width: 100% !important;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 46px !important;
    min-height: 46px !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 46px !important;
    line-height: 46px !important;
    padding-left: 13px !important;
    padding-right: 38px !important;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

/* Order card remains white */
html body.woocommerce-checkout form.checkout #order_review {
    background: #fff !important;
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 900px) {
    html body.woocommerce-checkout #customer_details {
        padding: 22px 20px !important;
    }

    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
    }

    html body.woocommerce-checkout #billing_first_name_field,
    html body.woocommerce-checkout #billing_last_name_field,
    html body.woocommerce-checkout #billing_city_field,
    html body.woocommerce-checkout #billing_state_field,
    html body.woocommerce-checkout #billing_postcode_field,
    html body.woocommerce-checkout #shipping_first_name_field,
    html body.woocommerce-checkout #shipping_last_name_field,
    html body.woocommerce-checkout #shipping_city_field,
    html body.woocommerce-checkout #shipping_state_field,
    html body.woocommerce-checkout #shipping_postcode_field {
        grid-column: span 1 !important;
    }

    html body.woocommerce-checkout #billing_country_field,
    html body.woocommerce-checkout #billing_gst_number_field,
    html body.woocommerce-checkout #billing_address_1_field,
    html body.woocommerce-checkout #billing_address_2_field,
    html body.woocommerce-checkout #shipping_country_field,
    html body.woocommerce-checkout #shipping_address_1_field,
    html body.woocommerce-checkout #shipping_address_2_field {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 600px) {
    html body.woocommerce-checkout #customer_details {
        padding: 18px !important;
    }

    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        display: block !important;
    }

    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
        width: 100% !important;
        margin-bottom: 13px !important;
    }
}


/* =========================================================
   ZESTII CHECKOUT - FINAL AUTHORITATIVE OVERRIDES
   ========================================================= */

/* Entire checkout content area */
html body.woocommerce-checkout,
html body.woocommerce-checkout #content,
html body.woocommerce-checkout .site-content,
html body.woocommerce-checkout .content-area,
html body.woocommerce-checkout .site-main,
html body.woocommerce-checkout main.site-main {
    background-color: #f7f7f7 !important;
}

/* Keep header and footer untouched */
html body.woocommerce-checkout .site-main {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Left side = one continuous #f7f7f7 area */
html body.woocommerce-checkout #customer_details {
    background: #f7f7f7 !important;
    padding: 30px !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout #customer_details .col-1,
html body.woocommerce-checkout #customer_details .col-2 {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Remove the duplicate Contact heading created by CSS */
html body.woocommerce-checkout #billing_contact_field::before {
    content: none !important;
    display: none !important;
}

/* Do not show a second visible "Contact" label.
   The field keeps its placeholder: Email or phone number. */
html body.woocommerce-checkout #billing_contact_field > label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* One contact field only */
html body.woocommerce-checkout #billing_contact_field {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

html body.woocommerce-checkout #billing_email_field,
html body.woocommerce-checkout #billing_phone_field {
    display: none !important;
}

/* Delivery heading */
html body.woocommerce-checkout #billing_country_field::before {
    content: "Delivery" !important;
    display: block !important;
    width: 100% !important;
    margin: 4px 0 16px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #173c2c !important;
}

/* Consistent billing grid */
html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    width: 100% !important;
    align-items: start !important;
}

html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Billing field placement */
html body.woocommerce-checkout #billing_country_field,
html body.woocommerce-checkout #billing_gst_number_field,
html body.woocommerce-checkout #billing_address_1_field,
html body.woocommerce-checkout #billing_address_2_field {
    grid-column: 1 / -1 !important;
}

html body.woocommerce-checkout #billing_first_name_field,
html body.woocommerce-checkout #billing_last_name_field {
    grid-column: span 3 !important;
}

html body.woocommerce-checkout #billing_city_field,
html body.woocommerce-checkout #billing_state_field,
html body.woocommerce-checkout #billing_postcode_field {
    grid-column: span 2 !important;
}

/* Exact same grid for shipping */
html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    width: 100% !important;
    align-items: start !important;
}

html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout #shipping_country_field,
html body.woocommerce-checkout #shipping_address_1_field,
html body.woocommerce-checkout #shipping_address_2_field {
    grid-column: 1 / -1 !important;
}

html body.woocommerce-checkout #shipping_first_name_field,
html body.woocommerce-checkout #shipping_last_name_field {
    grid-column: span 3 !important;
}

html body.woocommerce-checkout #shipping_city_field,
html body.woocommerce-checkout #shipping_state_field,
html body.woocommerce-checkout #shipping_postcode_field {
    grid-column: span 2 !important;
}

/* Shipping section stays inside the same gray area */
html body.woocommerce-checkout .woocommerce-shipping-fields {
    background: transparent !important;
    border-top: 1px solid #dededb !important;
    border-radius: 0 !important;
    padding: 22px 0 0 !important;
    margin: 10px 0 0 !important;
}

html body.woocommerce-checkout .woocommerce-additional-fields {
    background: transparent !important;
    border-top: 1px solid #dededb !important;
    border-radius: 0 !important;
    padding: 22px 0 0 !important;
    margin: 10px 0 0 !important;
}

html body.woocommerce-checkout .woocommerce-shipping-fields h3,
html body.woocommerce-checkout .woocommerce-additional-fields h3 {
    margin: 0 0 16px !important;
}

/* All inputs/selects same dimensions */
html body.woocommerce-checkout form.checkout .form-row input.input-text,
html body.woocommerce-checkout form.checkout .form-row textarea,
html body.woocommerce-checkout form.checkout .form-row select {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 10px 13px !important;
    box-sizing: border-box !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* Textarea should be taller */
html body.woocommerce-checkout form.checkout .form-row textarea {
    height: auto !important;
    min-height: 105px !important;
}

/* Select2 WooCommerce controls */
html body.woocommerce-checkout .select2-container {
    width: 100% !important;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 46px !important;
    min-height: 46px !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 46px !important;
    line-height: 46px !important;
    padding-left: 13px !important;
    padding-right: 38px !important;
}

html body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

/* Order card remains white */
html body.woocommerce-checkout form.checkout #order_review {
    background: #fff !important;
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 900px) {
    html body.woocommerce-checkout #customer_details {
        padding: 22px 20px !important;
    }

    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
    }

    html body.woocommerce-checkout #billing_first_name_field,
    html body.woocommerce-checkout #billing_last_name_field,
    html body.woocommerce-checkout #billing_city_field,
    html body.woocommerce-checkout #billing_state_field,
    html body.woocommerce-checkout #billing_postcode_field,
    html body.woocommerce-checkout #shipping_first_name_field,
    html body.woocommerce-checkout #shipping_last_name_field,
    html body.woocommerce-checkout #shipping_city_field,
    html body.woocommerce-checkout #shipping_state_field,
    html body.woocommerce-checkout #shipping_postcode_field {
        grid-column: span 1 !important;
    }

    html body.woocommerce-checkout #billing_country_field,
    html body.woocommerce-checkout #billing_gst_number_field,
    html body.woocommerce-checkout #billing_address_1_field,
    html body.woocommerce-checkout #billing_address_2_field,
    html body.woocommerce-checkout #shipping_country_field,
    html body.woocommerce-checkout #shipping_address_1_field,
    html body.woocommerce-checkout #shipping_address_2_field {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 600px) {
    html body.woocommerce-checkout #customer_details {
        padding: 18px !important;
    }

    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        display: block !important;
    }

    html body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
    html body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
        width: 100% !important;
        margin-bottom: 13px !important;
    }
}


/* =========================================================
   FINAL FIX: REMOVE TOP "HAVE A COUPON?" NOTICE ONLY
   Keep the coupon box inside "Your order".
   ========================================================= */
html body.woocommerce-checkout .woocommerce-form-coupon-toggle,
html body.woocommerce-checkout .woocommerce-form-coupon-toggle + .woocommerce-form-coupon {
    display: none !important;
}


/* =========================================================
   FINAL FIX: CHECKOUT PAGE BACKGROUND
   ========================================================= */
html body.woocommerce-checkout,
html body.woocommerce-checkout #page,
html body.woocommerce-checkout #content,
html body.woocommerce-checkout .site-content,
html body.woocommerce-checkout .content-area,
html body.woocommerce-checkout .site-main,
html body.woocommerce-checkout main {
    background-color: #f7f7f7 !important;
}


/* =========================================================
   FINAL FIX: DO NOT CHANGE ORDER CARD DESIGN
   ========================================================= */
html body.woocommerce-checkout form.checkout #order_review {
    background: #ffffff !important;
}


/* =========================================================
   FINAL FIX: BILLING AREA
   ========================================================= */
html body.woocommerce-checkout #customer_details,
html body.woocommerce-checkout #customer_details .col-1,
html body.woocommerce-checkout #customer_details .col-2 {
    background: #f7f7f7 !important;
}


/* =========================================================
   FINAL FIX: SINGLE CONTACT FIELD
   ========================================================= */
html body.woocommerce-checkout #billing_contact_field {
    display: block !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
}

html body.woocommerce-checkout #billing_contact_field > label {
    display: none !important;
}

html body.woocommerce-checkout #billing_contact {
    display: block !important;
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    box-sizing: border-box !important;
}

html body.woocommerce-checkout #billing_email_field,
html body.woocommerce-checkout #billing_phone_field {
    display: none !important;
}


/* =========================================================
   FINAL FIX: SHIPPING CHECKBOX
   ========================================================= */
html body.woocommerce-checkout #ship-to-different-address input[type="checkbox"] {
    accent-color: #176044;
}

/* =========================================================
   FINAL UI POLISH - PAGE BACKGROUND + COUNTRY/STATE SELECTS
   ========================================================= */

/* 1. Make the complete checkout page container #f7f7f7 */
html body.woocommerce-checkout .page-container.no-sidebar.show-breadcrumb-v2 {
    background-color: #f7f7f7 !important;
}

/* Keep the checkout content area itself consistent */
html body.woocommerce-checkout .page-container.no-sidebar.show-breadcrumb-v2 .site-content,
html body.woocommerce-checkout .page-container.no-sidebar.show-breadcrumb-v2 .container {
    background-color: #f7f7f7 !important;
}

/* 2. WooCommerce country/state Select2 fields */
html body.woocommerce-checkout
#customer_details .select2-container {
    width: 100% !important;
}

html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single {
    height: 46px !important;
    min-height: 46px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Center the selected country/state text vertically */
html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single
.select2-selection__rendered {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 42px 0 12px !important;
    color: #333333 !important;
    display: block !important;
}

/* Put the dropdown arrow in the correct vertical position */
html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single
.select2-selection__arrow {
    height: 44px !important;
    width: 38px !important;
    top: 1px !important;
    right: 0 !important;
}

html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single
.select2-selection__arrow b {
    margin-top: -3px !important;
}

/* 3. Dropdown/search box styling */
html body.woocommerce-checkout
.select2-container--open .select2-dropdown {
    border: 1px solid #dedede !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

/* Search area inside country/state dropdown */
html body.woocommerce-checkout
.select2-search--dropdown {
    position: relative !important;
    padding: 8px !important;
    background: #ffffff !important;
}

/* Remove the theme/plugin's broken search icon */
html body.woocommerce-checkout
.select2-search--dropdown::before {
    display: none !important;
}

/* Make the search input clean and aligned */
html body.woocommerce-checkout
.select2-search--dropdown .select2-search__field {
    width: 100% !important;
    height: 38px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #dedede !important;
    border-radius: 5px !important;
    outline: none !important;
    background: #ffffff !important;
    font-size: 14px !important;
    line-height: 38px !important;
}

/* Do not let the browser/theme create an odd inner outline */
html body.woocommerce-checkout
.select2-search--dropdown .select2-search__field:focus {
    border-color: #176044 !important;
    box-shadow: 0 0 0 1px #176044 !important;
    outline: none !important;
}

/* 4. Country/state options */
html body.woocommerce-checkout
.select2-results__option {
    padding: 9px 12px !important;
    font-size: 14px !important;
    line-height: 20px !important;
}

html body.woocommerce-checkout
.select2-results__option--highlighted[aria-selected],
html body.woocommerce-checkout
.select2-results__option--highlighted {
    background: #f7f7f7 !important;
    color: #333333 !important;
}

/* Selected item */
html body.woocommerce-checkout
.select2-results__option[aria-selected="true"] {
    background: #f3f3f3 !important;
    color: #176044 !important;
}

/* 5. Same treatment for both billing and shipping selectors */
html body.woocommerce-checkout
#billing_country_field .select2-container,
html body.woocommerce-checkout
#billing_state_field .select2-container,
html body.woocommerce-checkout
#shipping_country_field .select2-container,
html body.woocommerce-checkout
#shipping_state_field .select2-container {
    width: 100% !important;
}

/* =========================================================
   FINAL POLISH V5
   1. Fix Country/State arrow vertical alignment
   2. Align all checkout labels with their input boxes
   ========================================================= */

/* ---------------------------------------------------------
   COUNTRY / STATE - SELECT2 ARROW
   --------------------------------------------------------- */

html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single {
    position: relative !important;
    overflow: hidden !important;
}

/* Hide the theme/Select2 arrow that is appearing too high */
html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single
.select2-selection__arrow {
    display: none !important;
}

/* Our correctly centered arrow */
html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;
    width: 7px !important;
    height: 7px !important;
    margin-top: -5px !important;
    border-right: 1.5px solid #555 !important;
    border-bottom: 1.5px solid #555 !important;
    transform: rotate(45deg) !important;
    pointer-events: none !important;
}

/* Keep selected text vertically centered */
html body.woocommerce-checkout
#customer_details .select2-container .select2-selection--single
.select2-selection__rendered {
    height: 44px !important;
    line-height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ---------------------------------------------------------
   COUNTRY / STATE - NATIVE SELECT FALLBACK
   --------------------------------------------------------- */

html body.woocommerce-checkout
#customer_details select {
    min-height: 46px !important;
    height: 46px !important;
    box-sizing: border-box !important;
    padding: 0 40px 0 12px !important;
    line-height: 46px !important;
    vertical-align: middle !important;
}

/* If the browser is rendering the native select, use a
   consistent centered arrow instead of the browser arrow. */
html body.woocommerce-checkout
#customer_details select#billing_country,
html body.woocommerce-checkout
#customer_details select#billing_state,
html body.woocommerce-checkout
#customer_details select#shipping_country,
html body.woocommerce-checkout
#customer_details select#shipping_state {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%) !important;
    background-position:
        calc(100% - 17px) 19px,
        calc(100% - 12px) 19px !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
}

/* ---------------------------------------------------------
   LABEL ALIGNMENT
   --------------------------------------------------------- */

/* Give every checkout field the same label structure */
html body.woocommerce-checkout
#customer_details .form-row > label,
html body.woocommerce-checkout
#customer_details .form-row label {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    vertical-align: top !important;
}

/* Prevent WooCommerce/theme field wrappers from adding
   different top spacing to individual labels */
html body.woocommerce-checkout
#customer_details .form-row {
    margin-top: 0 !important;
}

/* Consistent spacing between label and control */
html body.woocommerce-checkout
#customer_details .form-row > input,
html body.woocommerce-checkout
#customer_details .form-row > select,
html body.woocommerce-checkout
#customer_details .form-row > .select2-container,
html body.woocommerce-checkout
#customer_details .form-row .woocommerce-input-wrapper {
    margin-top: 0 !important;
}

/* Select2 must start exactly where a normal input starts */
html body.woocommerce-checkout
#customer_details .form-row .select2-container {
    margin-top: 0 !important;
    vertical-align: top !important;
}

/* Keep first/last name labels aligned in two-column rows */
html body.woocommerce-checkout
#customer_details .form-row-first > label,
html body.woocommerce-checkout
#customer_details .form-row-last > label {
    min-height: 17px !important;
}

/* Contact field has no visible label by design */
html body.woocommerce-checkout
#billing_contact_field > label {
    display: none !important;
}

/* Make all standard checkout controls share the same box model */
html body.woocommerce-checkout
#customer_details input.input-text,
html body.woocommerce-checkout
#customer_details select,
html body.woocommerce-checkout
#customer_details .select2-container {
    box-sizing: border-box !important;
}

/* ---------------------------------------------------------
   STATE / COUNTRY FIELD WRAPPER CONSISTENCY
   --------------------------------------------------------- */

html body.woocommerce-checkout
#billing_country_field,
html body.woocommerce-checkout
#billing_state_field,
html body.woocommerce-checkout
#shipping_country_field,
html body.woocommerce-checkout
#shipping_state_field {
    vertical-align: top !important;
}

html body.woocommerce-checkout
#billing_country_field .woocommerce-input-wrapper,
html body.woocommerce-checkout
#billing_state_field .woocommerce-input-wrapper,
html body.woocommerce-checkout
#shipping_country_field .woocommerce-input-wrapper,
html body.woocommerce-checkout
#shipping_state_field .woocommerce-input-wrapper {
    width: 100% !important;
    display: block !important;
}
/* =========================================================
   ZESTII - SWITCH LOGIN / REGISTER POSITIONS
   ========================================================= */

.woocommerce-account .u-columns {
    display: flex;
    flex-direction: row-reverse;
}
/* =========================================================
   ZESTII CHECKOUT - SEPARATE EMAIL + PHONE
   ========================================================= */

/* Show native WooCommerce email and phone fields */
html body.woocommerce-checkout #billing_email_field,
html body.woocommerce-checkout #billing_phone_field {
    display: block !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    margin: 0 0 14px !important;
}

/* Email + phone labels */
html body.woocommerce-checkout #billing_email_field > label,
html body.woocommerce-checkout #billing_phone_field > label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    color: #333333 !important;
}

/* Required star */
html body.woocommerce-checkout #billing_email_field .required,
html body.woocommerce-checkout #billing_phone_field .required {
    color: #b42318 !important;
}

/* Native email + phone inputs */
html body.woocommerce-checkout #billing_email,
html body.woocommerce-checkout #billing_phone {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 10px 13px !important;
    box-sizing: border-box !important;
    border: 1px solid #dddcd7 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #222222 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Focus */
html body.woocommerce-checkout #billing_email:focus,
html body.woocommerce-checkout #billing_phone:focus {
    border-color: #176044 !important;
    box-shadow: 0 0 0 3px rgba(23, 96, 68, 0.08) !important;
}

/* Mobile */
@media (max-width: 600px) {

    html body.woocommerce-checkout #billing_email_field,
    html body.woocommerce-checkout #billing_phone_field {
        width: 100% !important;
        grid-column: 1 / -1 !important;
    }

}