/* ==========================================================================
   JAZ STORE PAGES: CART + CHECKOUT
   Loaded only on cart and checkout to isolate layout and avoid conflicts.
   ========================================================================== */

/* ---------- Reset WordPress constrained-layout limits on these pages ---------- */

body.woocommerce-cart,
body.woocommerce-checkout {
    overflow-x: clip;
}

/* Override WordPress block constrained layout that limits content to 900px */
body.woocommerce-cart .jaz-cart-page > .wp-block-group,
body.woocommerce-cart .jaz-cart-page .wp-block-post-content,
body.woocommerce-cart .jaz-cart-shell > *,
body.woocommerce-checkout .jaz-checkout-page > .wp-block-group,
body.woocommerce-checkout .jaz-checkout-page .wp-block-post-content,
body.woocommerce-checkout .jaz-checkout-shell > * {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

body.woocommerce-cart .jaz-cart-page,
body.woocommerce-checkout .jaz-checkout-page {
    background:
        radial-gradient(circle at top right, rgba(20, 92, 117, 0.08), transparent 24%),
        linear-gradient(180deg, #f6fafc 0%, #edf4f7 100%);
    padding-top: 2rem;
    padding-bottom: 3rem;
    overflow-x: hidden;
    width: 100%;
}

/* ---------- Shells (page-level centring wrappers) ---------- */

body.woocommerce-cart .jaz-cart-shell,
body.woocommerce-checkout .jaz-checkout-shell {
    width: min(1240px, calc(100% - 40px));
    max-width: min(1240px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

body.woocommerce-cart .jaz-cart-shell {
    width: min(1320px, calc(100% - 40px));
    max-width: min(1320px, calc(100% - 40px)) !important;
}

/* Force every nested box to respect boundaries */
body.woocommerce-cart .jaz-cart-page,
body.woocommerce-cart .jaz-cart-shell,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart table.shop_table.cart tbody,
body.woocommerce-cart table.shop_table.cart tr,
body.woocommerce-cart table.shop_table.cart td {
    box-sizing: border-box;
    max-width: 100%;
}

/* ---------- Page titles ---------- */

body.woocommerce-cart .jaz-cart-title,
body.woocommerce-checkout .jaz-checkout-title {
    margin: 0 0 1.25rem;
    text-align: right;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.08;
}

/* ---------- Entry-content reset (remove Gutenberg width constraints) ---------- */

body.woocommerce-cart .entry-content > .woocommerce,
body.woocommerce-checkout:not(.woocommerce-order-received) .entry-content > .woocommerce {
    width: 100%;
    max-width: none !important;
}

/* ---------- Notices (shared) ---------- */

body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-notices-wrapper {
    margin-bottom: 2rem;
    margin-top: 2rem; /* Give space for header */
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .wc-block-components-notice-banner {
    border-radius: 18px;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 8px 24px rgba(11, 47, 61, 0.08); /* Better visibility */
}

/* ==========================================================================
   CART PAGE — Two-column flex layout (table | totals sidebar)
   ========================================================================== */

body.woocommerce-cart .entry-content > .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
    direction: rtl;
}

body.woocommerce-cart .entry-content > .woocommerce > * {
    min-width: 0;
}

/* Hide empty notices wrapper so it doesn't take flex space */
body.woocommerce-cart .entry-content > .woocommerce > .woocommerce-notices-wrapper:empty {
    display: none;
}

body.woocommerce-cart .entry-content > .woocommerce > .woocommerce-notices-wrapper:not(:empty) {
    flex: 0 0 100%;
    width: 100%;
}

/* Cart form (table side) */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals {
    min-width: 0;
    float: none !important;
    margin: 0 !important;
    direction: rtl;
}

body.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 0%;
    min-width: 0;
    width: 0;
}

/* Totals sidebar */
body.woocommerce-cart .cart-collaterals {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
}

/* ---------- Cart table ---------- */

body.woocommerce-cart table.shop_table.cart {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 92, 117, 0.12);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(10, 44, 66, 0.06);
}

body.woocommerce-cart table.shop_table.cart thead th {
    padding: 18px;
    background: rgba(247, 251, 253, 0.96);
    border-bottom: 1px solid #e4eef3;
    color: #708594;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

body.woocommerce-cart table.shop_table.cart td {
    padding: 18px;
    border-top: 1px solid #e4eef3;
    vertical-align: middle;
}

body.woocommerce-cart table.shop_table.cart tr.cart_item:first-child td {
    border-top: none;
}

body.woocommerce-cart table.shop_table.cart .product-remove {
    width: 52px;
    text-align: center;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail {
    width: 84px;
}

body.woocommerce-cart table.shop_table.cart .product-price,
body.woocommerce-cart table.shop_table.cart .product-quantity,
body.woocommerce-cart table.shop_table.cart .product-subtotal {
    width: 100px;
    white-space: nowrap;
}

body.woocommerce-cart table.shop_table.cart .product-name {
    width: auto;
}

/* Hide table-cell pseudo-labels on desktop */
body.woocommerce-cart table.shop_table.cart .product-remove::before,
body.woocommerce-cart table.shop_table.cart .product-thumbnail::before,
body.woocommerce-cart table.shop_table.cart .product-name::before {
    display: none !important;
    content: none !important;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    position: static !important;
    transform: none !important;
    transition: none !important;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail,
body.woocommerce-cart table.shop_table.cart tr.cart_item,
body.woocommerce-cart table.shop_table.cart td {
    position: static !important;
    transform: none !important;
}

body.woocommerce-cart table.shop_table.cart .product-name a {
    display: block;
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: anywhere;
}

body.woocommerce-cart table.shop_table.cart .product-remove a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #eef5f8;
    color: var(--wp--preset--color--primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.woocommerce-cart table.shop_table.cart .product-price,
body.woocommerce-cart table.shop_table.cart .product-subtotal {
    color: var(--wp--preset--color--tertiary);
    font-weight: 800;
}

body.woocommerce-cart table.shop_table.cart .quantity .qty {
    width: 78px;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #d7e4ea;
    background: #f8fbfd;
    text-align: center;
    font-weight: 700;
}

/* ---------- Cart table – actions row (coupon + update) ---------- */

body.woocommerce-cart table.shop_table.cart td.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    background: rgba(247, 251, 253, 0.96);
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: flex;
    flex-wrap: nowrap;
    float: none !important;
    align-items: center;
    gap: 12px;
    margin: 0;
    width: auto;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
    min-height: 48px;
    width: 180px !important;
    max-width: 100%;
    padding: 0 14px;
    border: 1px solid #d7e4ea;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .button,
body.woocommerce-cart table.shop_table.cart td.actions .button {
    float: none !important;
    width: auto;
    white-space: nowrap;
    text-align: center;
}

/* Shared button style */
body.woocommerce-cart table.shop_table.cart td.actions .button,
body.woocommerce-cart .cart-collaterals .button,
body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order {
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.94rem;
    font-weight: 800;
    box-sizing: border-box;
    cursor: pointer;
}

body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
    margin: 0;
    min-width: 156px;
    width: auto;
    margin-inline-start: auto;
}

body.woocommerce-cart table.shop_table.cart td.actions > input[type="hidden"] {
    display: none !important;
}

/* ---------- Cart totals sidebar ---------- */

body.woocommerce-cart .cart-collaterals {
    align-self: flex-start;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 92, 117, 0.12);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 44px rgba(10, 44, 66, 0.06);
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

/* Shared totals table (cart + checkout) */
body.woocommerce-cart .cart-collaterals .shop_table,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d9e6ed;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}

body.woocommerce-cart .cart-collaterals .shop_table th,
body.woocommerce-cart .cart-collaterals .shop_table td,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order-table td {
    padding: 14px 16px;
    border-color: #e4eef3;
    vertical-align: top;
}

body.woocommerce-cart .cart-collaterals .shop_table th,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order-table th {
    text-align: right;
}

body.woocommerce-cart .cart-collaterals .shop_table td,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-checkout-review-order-table td {
    text-align: left;
    color: var(--wp--preset--color--tertiary);
    font-weight: 800;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    margin: 18px 0 0;
    padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    margin: 0;
    min-height: 48px;
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */

/* Coupon toggle, coupon form, login form */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout_coupon,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.woocommerce-form-login {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 92, 117, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(10, 44, 66, 0.05);
    padding: 18px 20px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info {
    margin: 0 0 1rem;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout_coupon,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.woocommerce-form-login {
    margin-bottom: 1rem;
}

/* ---------- Checkout grid: billing | order-review ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
    direction: rtl;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    direction: rtl;
}

/* Create a visual wrapper for the right column structurally via CSS */
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
    width: 380px !important;
    max-width: 100% !important;
    margin: 0;
    direction: rtl;
    flex: 0 0 auto;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
    margin-bottom: 0;
}

/* Reset WooCommerce float-based columns */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .col2-set,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-page .col2-set,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .col2-set .col-1,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .col2-set .col-2 {
    float: none;
    width: 100%;
}

/* Card-style panels for billing / shipping */
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-1,
body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-2 {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 92, 117, 0.12);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(10, 44, 66, 0.06);
    padding: 28px;
    width: 100%;
    box-sizing: border-box;
}

/* Make billing fields flow in a responsive grid */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

/* Full-width fields */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper .form-row-wide,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

/* Order review (right column) */
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
    grid-column: 2;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    direction: rtl;
}

/* ---------- Checkout section headings ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields > h3,
body.woocommerce-checkout:not(.woocommerce-order-received) #ship-to-different-address,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields > h3,
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    line-height: 1.2;
}

/* ---------- Checkout form fields ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row {
    margin: 0 0 12px;
    padding: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.4rem;
    color: #667c8d;
    font-size: 0.92rem;
    font-weight: 700;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row .input-text,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row select,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row textarea,
body.woocommerce-checkout:not(.woocommerce-order-received) .select2-container--default .select2-selection--single {
    width: 100%;
    min-height: 50px;
    border: 1px solid #d8e4ea;
    border-radius: 14px;
    background: #f9fcfd;
    padding-inline: 14px;
    box-shadow: none;
    box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form .form-row textarea {
    min-height: 110px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* ---------- Order review card ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 92, 117, 0.12);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 22px 22px 0;
    margin-bottom: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(20, 92, 117, 0.12);
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 44px rgba(10, 44, 66, 0.06);
    padding: 0 22px 22px;
}

/* Make order review responsive without sticky overlap */
body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
    position: static;
    z-index: auto;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
    position: static;
    z-index: auto;
}

/* ---------- Payment section ---------- */

body.woocommerce-checkout:not(.woocommerce-order-received) #payment {
    background: transparent;
    border-top: 1px solid #e4eef3;
    padding-top: 18px;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods {
    margin: 0 0 18px;
    padding: 0;
    border: none;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment ul.payment_methods li {
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(20, 92, 117, 0.12);
    background: #f9fcfd;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment div.payment_box {
    background: #eef6f9;
    border-radius: 14px;
    color: #476375;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment div.payment_box::before {
    border-bottom-color: #eef6f9;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment .place-order {
    padding: 0;
    margin: 0;
}

body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order {
    width: 100%;
    min-height: 50px;
}

/* ==========================================================================
   RESPONSIVE — TABLET (≤ 980px)
   ========================================================================== */

@media screen and (max-width: 980px) {

    /* Stack both pages to single column */
    body.woocommerce-cart .entry-content > .woocommerce,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout {
        display: block;
        direction: rtl;
    }

   body.woocommerce-cart .woocommerce-cart-form {
        width: 100% !important;
        max-width: 100% !important;
        flex: none;
        margin-bottom: 20px !important;
        box-sizing: border-box;
    }

    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading,
    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details {
        margin-bottom: 20px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
        margin-top: 4px;
    }

    /* Unstick on tablet/mobile */
    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading,
    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
        position: static;
    }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ========================================================================== */

@media screen and (max-width: 640px) {

    body.woocommerce-cart .jaz-cart-page,
    body.woocommerce-checkout .jaz-checkout-page {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    body.woocommerce-cart .jaz-cart-shell,
    body.woocommerce-checkout .jaz-checkout-shell {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px) !important;
    }

    body.woocommerce-cart .jaz-cart-title,
    body.woocommerce-checkout .jaz-checkout-title {
        font-size: clamp(1.7rem, 8.4vw, 2.35rem);
        margin-bottom: 0.9rem;
    }

    /* ---------- Cart table → card layout on mobile ---------- */

    body.woocommerce-cart table.shop_table.cart {
        border-radius: 22px;
        table-layout: auto;
    }

    body.woocommerce-cart table.shop_table.cart thead {
        display: none;
    }

    body.woocommerce-cart table.shop_table.cart,
    body.woocommerce-cart table.shop_table.cart tbody,
    body.woocommerce-cart table.shop_table.cart tr,
    body.woocommerce-cart table.shop_table.cart td {
        display: block;
        width: 100%;
    }

    body.woocommerce-cart table.shop_table.cart tbody {
        padding: 12px;
        width: 100%;
        overflow: hidden;
    }

    body.woocommerce-cart table.shop_table.cart tr.cart_item {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 16px;
        margin-bottom: 16px;
        border: 1px solid #e4eef3;
        border-radius: 20px;
        background: #ffffff;
        box-sizing: border-box;
    }

    body.woocommerce-cart table.shop_table.cart tr.cart_item:last-of-type {
        margin-bottom: 0;
    }

    body.woocommerce-cart table.shop_table.cart tr.cart_item td {
        padding: 0;
        border: 0;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    body.woocommerce-cart table.shop_table.cart .product-remove {
        position: absolute !important;
        top: 16px;
        left: 16px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        z-index: 2;
    }

    /* Wrap thumb and name together */
    body.woocommerce-cart table.shop_table.cart tr.cart_item::before {
        content: "";
        display: block;
        clear: both;
    }

    body.woocommerce-cart table.shop_table.cart .product-thumbnail {
        display: block !important;
        float: right;
        width: 72px;
        margin-left: 14px;
        margin-bottom: 12px;
    }

    body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }

    body.woocommerce-cart table.shop_table.cart .product-name {
        display: block;
        padding-left: 40px; /* space for remove button */
        margin-bottom: 12px;
        text-align: right;
        min-height: 72px; /* match thumb height */
    }

    body.woocommerce-cart table.shop_table.cart .product-name a {
        font-size: 1rem;
        line-height: 1.45;
        display: block;
        padding-top: 4px;
    }

    body.woocommerce-cart table.shop_table.cart .product-price,
    body.woocommerce-cart table.shop_table.cart .product-quantity,
    body.woocommerce-cart table.shop_table.cart .product-subtotal {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-top: 12px;
        margin-top: 0;
        border-top: 1px dashed #e4eef3;
        white-space: normal;
        font-size: 0.95rem;
        clear: both;
    }

    body.woocommerce-cart table.shop_table.cart .product-price::before,
    body.woocommerce-cart table.shop_table.cart .product-quantity::before,
    body.woocommerce-cart table.shop_table.cart .product-subtotal::before {
        content: attr(data-title);
        color: #708594;
        font-size: 0.88rem;
        font-weight: 700;
        float: none !important;
        margin: 0;
    }

    body.woocommerce-cart table.shop_table.cart .product-name::before,
    body.woocommerce-cart table.shop_table.cart .product-thumbnail::before,
    body.woocommerce-cart table.shop_table.cart .product-remove::before {
        display: none !important;
        content: none !important;
    }

    /* Actions row on mobile */
    body.woocommerce-cart table.shop_table.cart td.actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    body.woocommerce-cart table.shop_table.cart td.actions .coupon {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
        width: 100%;
        box-sizing: border-box;
    }

    body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
    body.woocommerce-cart table.shop_table.cart td.actions .button,
    body.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals .button {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Reduce border-radius on mobile */
    body.woocommerce-cart .cart-collaterals .cart_totals,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.checkout_coupon,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce form.woocommerce-form-login,
    body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-1,
    body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-2,
    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading,
    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
        border-radius: 20px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-1,
    body.woocommerce-checkout:not(.woocommerce-order-received) #customer_details .col-2,
    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
        padding: 18px;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review_heading {
        padding: 18px 18px 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    /* Checkout fields: single column on mobile */
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}
