.wp-block-woocommerce-checkout.alignwide.wc-block-checkout {
    max-width: 1000px;
    margin: 0 auto;
}

button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
    background: #0b3e27;
    color: #fff;
    border-radius: 50px;
    border: none;
}

h2.wc-block-components-title.wc-block-components-checkout-step__title {
    color: #0b3e27;
    font-weight: 700;
}

form.wc-block-components-form.wc-block-checkout__form input {
    border-color: #0b3e27 !important;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: inset 0 0 0 1.5px #0b3e27 !important;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block.wc-block-components-totals-wrapper {
    padding: 16px 10px;
}

/* Readonly fields styling */
.readonly-field,
input[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.8;
}


/* --- 1. Global Styles & Background --- */
form.checkout.woocommerce-checkout {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    /* Clean modern font */
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 2. Typography & Headers --- */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
    font-size: 20px;
    font-weight: 700;
    color: #004d2c;
    /* Brand Dark Green */
    border: none;
    margin-bottom: 25px;
}

/* --- 3. The Input Fields (Matching image_5f5b9f.png) --- */
.woocommerce-checkout .form-row {
    /* margin-bottom: 20px; */
    padding: 0;
}

/* Container for label + input */
.woocommerce-checkout .form-row .woocommerce-input-wrapper {
    display: block;
    position: relative;
}

/* Style the Labels to look like the screenshot */
.woocommerce-checkout .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
    padding-left: 2px;
}

/* The actual Input boxes */
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.select2-container--default .select2-selection--single {
    border: 1.5px solid #004d2c !important;
    /* Neutral grey border */
    border-radius: 4px !important;
    padding: 12px 16px !important;
    height: auto !important;
    background-color: #fff !important;
    font-size: 15px !important;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

/* Focus state matching the green brand */
.woocommerce-checkout .input-text:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #004d2c !important;
    /* Brand Dark Green */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 77, 44, 0.1);
}

/* --- 4. Layout: 2-Column Grid --- */
@media (min-width: 768px) {

    .form-row-first,
    .form-row-last {
        /* width: 49.5% !important; */
        /* float: left; */
    }

    .form-row-last {
        float: right;
    }

    .form-row-wide {
        clear: both;
        width: 100% !important;
    }
}

/* --- 5. Order Summary Card (Right Sidebar Look) --- */
.woocommerce-checkout-review-order {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.shop_table.woocommerce-checkout-review-order-table {
    border: none !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.shop_table.woocommerce-checkout-review-order-table th,
.shop_table.woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
    font-size: 14px;
}

.order-total {
    color: #004d2c;
    font-weight: 800;
    font-size: 18px;
}

/* --- 6. Payment Methods --- */
#payment {
    background: transparent !important;
    border: none !important;
    margin-top: 10px;
}

.wc_payment_method label {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 13px;
}

.wc_payment_methods li label img {
    height: 25px !important;
    object-fit: cover;
}

.payment_box {
    background-color: #ffffff !important;
    /* Very light green tint */
    border-radius: 4px !important;
    color: #444 !important;
    border: none !important;
}

/* --- 7. The "Place Order" Button --- */
#place_order {
    background-color: #004d2c !important;
    /* Solid Brand Green */
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    /* Keep it modern, not all caps */
    letter-spacing: 0.5px;
    width: 100%;
    border: none !important;
    margin-top: 20px;
    transition: background 0.3s ease;
}

#place_order:hover {
    background-color: #00361f !important;
}

/* --- 8. Specific UI Fixes --- */
.woocommerce-info {
    border-top-color: #004d2c !important;
    background-color: #f0fdf4;
    color: #166534;
    border-radius: 8px;
}

.woocommerce-info::before {
    color: #004d2c;
}






form.checkout.woocommerce-checkout {
    display: flex;
}

form.checkout.woocommerce-checkout h3#order_review_heading {
    display: none;
}

form.checkout.woocommerce-checkout div#customer_details {
    width: 60%;
}

@media (min-width: 1000px) {
    form.checkout.woocommerce-checkout div#customer_details {
        padding-right: 100px;
        /* Make sticky inside the flex container */
        position: -webkit-sticky;
        /* Safari */
        position: sticky;
        top: 20px;
        z-index: 20;
        align-self: flex-start;
        /* required for sticky in flex */
        height: fit-content;
    }
}

form.checkout.woocommerce-checkout .woocommerce-checkout-review-order {
    width: 40%;
}

span.select2-selection.select2-selection--single {
    padding: 8px !important;
}

span.select2-selection__arrow {
    height: 100% !important;
}

.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

p#billing_first_name_field {
    width: 100%;
}

p#billing_state_field,
p#billing_phone_field {
    width: 49% !important;
    margin: 0 0 0px 0;
}

form.checkout.woocommerce-checkout div#customer_details .col-1 {
    padding: 20px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 2px 10px rgb(0 0 0 / 3%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.woocommerce-privacy-policy-text p {
    font-size: 11px !important;
    color: #69727d !important;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox input#ship-to-different-address-checkbox {
    width: 14px;
    height: 14px;
}

.woocommerce-shipping-fields h3 {
    font-size: 14px;
    font-weight: 600;
}

ul.wc_payment_methods.payment_methods.methods li {
    list-style-type: none;
    padding: 10px;
    margin-bottom: 5px;
    background: #ed6c1112;
    border-radius: 5px;
}

.payment_box.payment_method_cod p {
    padding: 5px 10px;
    margin: 5px 0 0 0;
}

td.product-image img {
    width: 70px;
    height: 70px;
}

.woocommerce-message,
.woocommerce-form-coupon-toggle,
form#woocommerce-checkout-form-coupon {
    max-width: 1150px;
    margin: 0 auto;
}




table.shop_table.woocommerce-checkout-review-order-table thead,
table.shop_table.woocommerce-checkout-review-order-table tbody,
table.shop_table.woocommerce-checkout-review-order-table tfoot {
    width: 100%;
}

table.shop_table.woocommerce-checkout-review-order-table thead tr th {
    border: none !important;
}

table.shop_table.woocommerce-checkout-review-order-table thead tr {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot th,
table.shop_table.woocommerce-checkout-review-order-table tfoot tr td {
    border: none;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot tr {
    width: 50%;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot tr {
    border-bottom: 1px solid #e5e7eb !important;
}

table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.shop_table.woocommerce-checkout-review-order-table th,
.shop_table.woocommerce-checkout-review-order-table td {
    padding: 10px 0;
}

table.shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-image,
table.shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
    width: 20%;
}

table.shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
    text-align: right;
}

table.shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
    width: 60%;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot tr:nth-child(2) td,
table.shop_table.woocommerce-checkout-review-order-table tfoot tr:nth-last-child(1) td {
    text-align: right;
    width: 100%;
    display: block;
}

@media (max-width: 767px) {
    form.checkout.woocommerce-checkout {
        flex-direction: column;
    }

    form.checkout.woocommerce-checkout div#customer_details,
    form.checkout.woocommerce-checkout .woocommerce-checkout-review-order,
    p#billing_address_1_field {
        width: 100%;
    }

    p#billing_state_field,
    p#billing_phone_field {
        width: 100% !important;
        margin: 0 0 10px 0;
    }

    .woocommerce-message,
    .woocommerce-form-coupon-toggle,
    form#woocommerce-checkout-form-coupon {
        max-width: 90%;
    }

    a.showcoupon {
        font-size: 13px;
    }
}

form#woocommerce-checkout-form-coupon p.form-row.form-row-last button.button {
    background-color: #004d2c ;
    color: #ffffff ;
    border-radius: 8px ;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600 ;
    text-transform: none ;
    letter-spacing: 0.5px;
    border: none ;
}