/* ==========================================================================
   TazajMart Checkout — Clean Design + Order Summary Fix
   Brand color: #0b3e27
   ========================================================================== */

:root {
    --tz-green: #0b3e27;
    --tz-green-mint: #ecfdf5;
    --tz-border: #e5e7eb;
    --tz-text: #333333;
    --tz-text-muted: #6b7280;
    --tz-radius: 10px;
}


/* ==========================================================================
   1. Page shell
   ========================================================================== */

form.checkout.woocommerce-checkout {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: var(--tz-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

form.checkout.woocommerce-checkout .woocommerce-NoticeGroup,
form.checkout.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
    order: -1;
}


/* ==========================================================================
   2. Desktop — 2 column layout
   Billing left / Order summary right
   ========================================================================== */

@media (min-width: 900px) {

    form.checkout.woocommerce-checkout {
        display: grid;
        grid-template-columns: 60% calc(40% - 40px);
        grid-template-rows: auto auto auto;
        column-gap: 40px;
        row-gap: 0;
        align-items: start;
    }

    form.checkout.woocommerce-checkout .woocommerce-NoticeGroup,
    form.checkout.woocommerce-checkout .woocommerce-NoticeGroup-checkout {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 20px;
    }

    form.checkout.woocommerce-checkout div#customer_details {
        grid-column: 1;
        grid-row: 2 / 4;
    }

    /* Your order heading */
    #order_review_heading {
        grid-column: 2;
        grid-row: 2;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
        align-self: start;
        height: auto !important;
        min-height: 0 !important;
    }

    /* Order review card */
    form.checkout.woocommerce-checkout .woocommerce-checkout-review-order {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
        margin-top: -150px !important;
    }
}


/* ==========================================================================
   3. Section headings
   ========================================================================== */

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--tz-green);
    border: none;
    margin-bottom: 20px;
}

.woocommerce-shipping-fields h3 {
    font-size: 16px;
    margin-top: 20px;
}


/* ==========================================================================
   4. Billing card wrapper
   ========================================================================== */

form.checkout.woocommerce-checkout div#customer_details .col-1 {
    padding: 20px;
    border: 1px solid var(--tz-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: var(--tz-radius);
}


/* ==========================================================================
   5. Fields — single column
   ========================================================================== */

.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.woocommerce-checkout .form-row {
    margin: 0;
    padding: 0;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last,
.woocommerce-checkout .form-row-wide,
#delivery_date_field,
#delivery_time_field {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.woocommerce-checkout .form-row .woocommerce-input-wrapper {
    display: block;
    position: relative;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--tz-text-muted);
    margin-bottom: 6px;
    padding-left: 2px;
}


/* ==========================================================================
   6. Inputs
   ========================================================================== */

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.select2-container--default .select2-selection--single {
    border: 1.5px solid var(--tz-green) !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    height: auto !important;
    background-color: #fff !important;
    font-size: 15px !important;
    transition: box-shadow 0.2s ease-in-out;
    width: 100%;
}

.woocommerce-checkout .input-text:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--tz-green) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 62, 39, 0.12);
}


/* ==========================================================================
   7. Select2
   ========================================================================== */

span.select2-selection.select2-selection--single {
    padding: 8px !important;
}

span.select2-selection__arrow {
    height: 100% !important;
}


/* ==========================================================================
   8. Ship to different address checkbox
   ========================================================================== */

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox
input#ship-to-different-address-checkbox {
    width: 14px;
    height: 14px;
}


/* ==========================================================================
   9. Order Summary Card
   ========================================================================== */

.woocommerce-checkout-review-order {
    background: #f9fafb;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    padding: 24px;
    margin-top: 0 !important;
}


/* ==========================================================================
   10. Order table
   ========================================================================== */

.shop_table.woocommerce-checkout-review-order-table {
    border: none !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    margin-bottom: 0 !important;
}

table.shop_table.woocommerce-checkout-review-order-table thead {
    display: none;
}


/* ==========================================================================
   11. Product columns
   ========================================================================== */

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-name {
    width: 60%;
}

table.shop_table.woocommerce-checkout-review-order-table
tbody tr.cart_item td.product-total {
    text-align: right;
}


/* ==========================================================================
   12. Product image
   ========================================================================== */

td.product-image img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
}


/* ==========================================================================
   13. Product table spacing
   ========================================================================== */

.shop_table.woocommerce-checkout-review-order-table th,
.shop_table.woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid var(--tz-border);
    padding: 12px 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 14px;
}

table.shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
    text-align: right;
    padding-right: 0 !important;
}


/* ==========================================================================
   14-17. Order totals — redesigned:
   Subtotal/Total: bold label + bold value, same row
   "Shipping": bold section header (its paired value cell is ALWAYS empty —
     confirmed against the real WooCommerce core template: 
     wc_cart_totals_shipping_html() renders a full <tr> of its own nested
     inside a <td>, which the browser hoists out as an invalid-HTML fix,
     leaving that <td> empty)
   The real shipping-method row (tr.woocommerce-shipping-totals.shipping,
     the hoisted one): smaller, lighter, indented sub-item
   ========================================================================== */

table.shop_table.woocommerce-checkout-review-order-table tfoot {
    display: block !important;
    width: 100% !important;
}

/* Default: every row is a simple full-width block — bulletproof, no flex ambiguity */
table.shop_table.woocommerce-checkout-review-order-table tfoot tr {
    display: block !important;
    width: 100% !important;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot tr th,
table.shop_table.woocommerce-checkout-review-order-table tfoot tr td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 6px 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot tr td {
    text-align: right !important;
    padding-right: 0 !important;
}

/* Divider after each value cell */
table.shop_table.woocommerce-checkout-review-order-table tfoot tr td {
    border-bottom: 1px solid var(--tz-border) !important;
    padding-bottom: 10px !important;
    margin-bottom: 4px !important;
}

/* Subtotal — bold */
table.shop_table.woocommerce-checkout-review-order-table tfoot tr:nth-child(1) th,
table.shop_table.woocommerce-checkout-review-order-table tfoot tr:nth-child(2) td {
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* Rows that genuinely have BOTH a th and a td together (the real shipping-method
   row, and any coupon rows) — these need side-by-side placement, so flex here only */
table.shop_table.woocommerce-checkout-review-order-table tfoot tr:has(th):has(td) {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 12px;
}

table.shop_table.woocommerce-checkout-review-order-table tfoot tr:has(th):has(td) th,
table.shop_table.woocommerce-checkout-review-order-table tfoot tr:has(th):has(td) td {
    width: auto !important;
}

/* The real shipping method row — indented, lighter sub-item */
table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping th,
table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td {
    font-weight: 400 !important;
    font-size: 13px !important;
    color: var(--tz-text-muted) !important;
}

table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td {
    border-bottom-style: dashed !important;
}

table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping th {
    padding-left: 12px !important;
    flex-shrink: 0;
}

table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td ul,
table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td li {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    text-align: right !important;
}

table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td li:last-child {
    margin-bottom: 0 !important;
}

table.shop_table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td li input[type="radio"] {
    margin: 0 !important;
    accent-color: var(--tz-green);
    flex-shrink: 0;
}

/* Total — bold, brand green, larger, no divider (last row) */
.order-total th,
.order-total + tr td {
    color: var(--tz-green) !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    border-bottom: none !important;
}


/* ==========================================================================
   18. General order review cleanup
   ========================================================================== */

.woocommerce-checkout-review-order table {
    margin-bottom: 0 !important;
}

.woocommerce-checkout-review-order table tfoot {
    margin: 0 !important;
}

.woocommerce-checkout-review-order table tr {
    margin: 0 !important;
}


/* ==========================================================================
   19. Payment methods
   ========================================================================== */

#payment {
    background: transparent !important;
    border: none !important;
    margin-top: 16px;
}

ul.wc_payment_methods.payment_methods.methods li {
    list-style-type: none;
    padding: 0;
    margin-bottom: 10px;
    background: transparent;
    border-radius: 0;
}

ul.wc_payment_methods.payment_methods.methods li input[type="radio"] {
    accent-color: var(--tz-green);
    margin-right: 8px;
}

.wc_payment_method label {
    font-weight: 600 !important;
    color: var(--tz-text) !important;
    font-size: 14px;
}

.wc_payment_methods li label img {
    height: 25px !important;
    object-fit: cover;
}

.payment_box {
    background-color: var(--tz-green-mint) !important;
    border: 1px solid var(--tz-border) !important;
    border-radius: 8px !important;
    color: var(--tz-text) !important;
    padding: 14px 16px !important;
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.payment_box::before {
    display: none !important;
}

.payment_box.payment_method_cod p {
    padding: 0;
    margin: 0;
}


/* ==========================================================================
   21. Place Order button
   ========================================================================== */

#place_order {
    background-color: var(--tz-green) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 18px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
    width: 100%;
    border: none !important;
    margin-top: 20px;
    transition: background 0.3s ease;
}

#place_order:hover {
    background-color: #082e1c !important;
}


/* ==========================================================================
   22. Notices
   ========================================================================== */

.woocommerce-info {
    border-top-color: var(--tz-green) !important;
    background-color: var(--tz-green-mint);
    color: #166534;
    border-radius: 8px;
}

.woocommerce-info::before {
    color: var(--tz-green);
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    display: block;
    width: 100%;
    box-sizing: border-box;
    float: none !important;
    clear: both;
    margin-bottom: 0;
}

.woocommerce-error {
    list-style: none;
}

.woocommerce-error li {
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   23. Privacy policy
   ========================================================================== */

.woocommerce-privacy-policy-text p {
    font-size: 11px !important;
    color: var(--tz-text-muted) !important;
}

a.showcoupon {
    font-size: 13px;
}


/* ==========================================================================
   24. Readonly fields
   ========================================================================== */

.readonly-field,
input[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.8;
}


/* ==========================================================================
   25. Coupon toggle
   ========================================================================== */

.woocommerce-form-coupon-toggle {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* ==========================================================================
   26. Coupon form
   ========================================================================== */

form#woocommerce-checkout-form-coupon.checkout_coupon {
    display: block;
    position: relative;
    max-width: 1200px;
    margin: 0 auto 24px auto !important;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--tz-border);
    border-radius: var(--tz-radius);
    box-sizing: border-box;
}

form#woocommerce-checkout-form-coupon .form-row {
    margin-bottom: 12px !important;
}

form#woocommerce-checkout-form-coupon
p.form-row.form-row-last button.button {
    background-color: var(--tz-green);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    border: none;
}


/* ==========================================================================
   27. FIX — Remove extra vertical gap above order card
   ========================================================================== */

@media (min-width: 900px) {

    form.checkout.woocommerce-checkout #order_review_heading {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    form.checkout.woocommerce-checkout
    .woocommerce-checkout-review-order {
        margin-top: 0 !important;
        padding-top: 24px !important;
    }
}



/* ==========================================================================
   29. FINAL FIX — Subtotal / Shipping / Total alignment
   This overrides the earlier block/flex tfoot rules so the totals behave
   like a normal WooCommerce table on desktop.
   ========================================================================== */

@media (min-width: 900px) {

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    /* Reset tfoot from the earlier block layout */
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot {
        display: table-footer-group !important;
        width: 100% !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot tr {
        display: table-row !important;
        width: 100% !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot tr th,
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot tr td {
        display: table-cell !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
    }

    /* Normal rows: label left, amount right */
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal th {
        width: 50% !important;
        text-align: left !important;
        padding-left: 0 !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal td {
        width: 50% !important;
        text-align: right !important;
        padding-right: 0 !important;
    }

    /* Subtotal spacing */
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal th,
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal td {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid var(--tz-border) !important;
    }

    /* Shipping row */
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping {
        display: table-row !important;
        width: 100% !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping th {
        width: 30% !important;
        text-align: left !important;
        padding-left: 12px !important;
        padding-right: 0 !important;
        vertical-align: top !important;
        white-space: nowrap !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td {
        width: 70% !important;
        text-align: right !important;
        padding-right: 0 !important;
        vertical-align: top !important;
        border-bottom: 1px dashed var(--tz-border) !important;
    }

    /* Shipping options */
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td li {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td li:last-child {
        margin-bottom: 0 !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping
    td li input[type="radio"] {
        margin: 0 8px 0 0 !important;
        flex-shrink: 0 !important;
        accent-color: var(--tz-green);
    }

    /* Total */
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.order-total th {
        width: 50% !important;
        text-align: left !important;
        color: var(--tz-green) !important;
        font-weight: 800 !important;
        font-size: 18px !important;
        border-bottom: none !important;
        padding-top: 12px !important;
        padding-left: 0 !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.order-total td {
        width: 50% !important;
        text-align: right !important;
        color: var(--tz-green) !important;
        font-weight: 800 !important;
        font-size: 18px !important;
        border-bottom: none !important;
        padding-top: 12px !important;
        padding-right: 0 !important;
    }
}

/* FINAL — REMOVE ORDER CARD GAP */

@media (min-width: 900px) {

    form.checkout.woocommerce-checkout
    .woocommerce-checkout-review-order {
        margin-top: -20px !important;
        padding-top: 0 !important;
        transform: translateY(-70px) !important;
    }

}

/* ==========================================================================
   28. Mobile responsive
   ========================================================================== */

@media (max-width: 899px) {

    form.checkout.woocommerce-checkout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    form.checkout.woocommerce-checkout
    .woocommerce-checkout-review-order {
        width: 100%;
        box-sizing: border-box;
    }

    #order_review_heading {
        margin-bottom: 10px !important;
    }
}

/* =========================================
   28A. MOBILE — FINAL ORDER SUMMARY FIX
   ========================================= */

@media (max-width: 899px) {

    /* -----------------------------------------
       ORDER TABLE
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }


    /* -----------------------------------------
       RESET TFOOT
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot {
        display: table-footer-group !important;
        width: 100% !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot tr {
        display: table-row !important;
        width: 100% !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot tr th,
    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table tfoot tr td {
        display: table-cell !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
    }


    /* -----------------------------------------
       SUBTOTAL
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal th {
        width: 50% !important;
        text-align: left !important;
        padding-left: 0 !important;
        white-space: nowrap !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.cart-subtotal td {
        width: 50% !important;
        text-align: right !important;
        padding-right: 0 !important;
        white-space: nowrap !important;
    }


    /* -----------------------------------------
       SHIPPING
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping {
        display: table-row !important;
        width: 100% !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping th {
        display: table-cell !important;
        width: 30% !important;

        text-align: left !important;

        padding-left: 0 !important;
        padding-right: 5px !important;

        vertical-align: top !important;
        white-space: nowrap !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td {
        display: table-cell !important;
        width: 70% !important;

        text-align: right !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        vertical-align: top !important;
    }


    /* -----------------------------------------
       SHIPPING OPTIONS
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td ul {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        list-style: none !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td li {
        display: flex !important;

        width: 100% !important;

        align-items: center !important;
        justify-content: flex-end !important;

        gap: 8px !important;

        margin: 0 0 8px 0 !important;
        padding: 0 !important;

        text-align: right !important;
        white-space: nowrap !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td li:last-child {
        margin-bottom: 0 !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tr.woocommerce-shipping-totals.shipping td li input[type="radio"] {
        flex: 0 0 auto !important;

        width: auto !important;

        margin: 0 !important;

        accent-color: var(--tz-green);
    }


    /* -----------------------------------------
       TOTAL
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.order-total th {
        width: 50% !important;

        text-align: left !important;

        padding-left: 0 !important;

        white-space: nowrap !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tfoot tr.order-total td {
        width: 50% !important;

        text-align: right !important;

        padding-right: 0 !important;

        white-space: nowrap !important;
    }


    /* -----------------------------------------
       PRODUCT ROW
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tbody tr.cart_item {
        display: table-row !important;
        width: 100% !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tbody tr.cart_item td.product-name {
        vertical-align: middle !important;
        text-align: left !important;
    }

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    tbody tr.cart_item td.product-total {
        text-align: right !important;

        vertical-align: middle !important;

        white-space: nowrap !important;

        padding-right: 0 !important;
    }


    /* -----------------------------------------
       PRODUCT IMAGE
       ----------------------------------------- */

    .fhm-checkout-product-image {
        display: inline-flex !important;

        width: 60px !important;
        height: 60px !important;

        margin-right: 10px !important;

        vertical-align: middle !important;

        flex-shrink: 0 !important;
    }

    .fhm-checkout-product-image img {
        display: block !important;

        width: 60px !important;
        height: 60px !important;

        object-fit: cover !important;

        border-radius: 8px !important;
    }


    /* -----------------------------------------
       QUANTITY
       ----------------------------------------- */

    form.checkout.woocommerce-checkout
    table.shop_table.woocommerce-checkout-review-order-table
    .product-quantity {
        display: inline-block !important;

        margin-left: 6px !important;

        white-space: nowrap !important;

        vertical-align: middle !important;
    }
}