/* ============================================================
   JRR BOILERS — Cart & Checkout  v6.0
   Design system: orange→amber gradient, Inter Tight, max 600w.
   All selectors scoped to .jrr-shop-page so product page is
   not affected.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    /* Primary CTA — orange→amber→gold (matches quiz form + design-preview) */
    --jrr-cta:          linear-gradient(90deg, #EA580C 0%, #F59E0B 60%, #FCD34D 100%);
    --jrr-cta-solid:    #F59E0B;
    --jrr-cta-hover:    linear-gradient(90deg, #C2410C 0%, #D97706 60%, #FBBF24 100%);
    --jrr-cta-shadow:   0 4px 14px rgba(245,158,11,0.35);
    --jrr-cta-shadow-h: 0 6px 20px rgba(245,158,11,0.45);
    --jrr-cta-color:    #FFFFFF;   /* text on orange button */

    /* Semantic */
    --jrr-navy:       #102A43;
    --jrr-text:       #111827;
    --jrr-text-2:     #374151;
    --jrr-muted:      #6B7280;
    --jrr-muted-2:    #9CA3AF;
    --jrr-bg:         #ECEEF1;
    --jrr-card:       #FFFFFF;
    --jrr-border:     #E5E7EB;
    --jrr-border-2:   #F3F4F6;

    /* Focus / accent ring */
    --jrr-focus:      #F59E0B;
    --jrr-focus-ring: 0 0 0 3px rgba(245,158,11,0.18);

    /* Elevation */
    --jrr-shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --jrr-shadow:     0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
    --jrr-shadow-lg:  0 8px 28px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05);

    /* Radii */
    --jrr-r-sm:   8px;
    --jrr-r-md:  12px;
    --jrr-r-lg:  16px;

    /* Font */
    --jrr-font: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Global page reset ─────────────────────────────────────── */
.jrr-shop-page,
.jrr-shop-page * {
    font-family: var(--jrr-font) !important;
    box-sizing: border-box;
}

body.woocommerce-cart,
body.woocommerce-checkout {
    background-color: var(--jrr-bg) !important;
}

/* Kill the theme's narrow content wrappers */
body.woocommerce-cart   .site-main,
body.woocommerce-cart   #main,
body.woocommerce-cart   #primary,
body.woocommerce-cart   .content-area,
body.woocommerce-cart   .entry-content,
body.woocommerce-cart   article,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout #main,
body.woocommerce-checkout #primary,
body.woocommerce-checkout .content-area,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout article {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    background: transparent !important;
}

/* ── Shared page wrapper ───────────────────────────────────── */
.jrr-shop-page {
    min-height: calc(100vh - 200px);
    padding-bottom: 72px;
}

/* ── Page head bar ─────────────────────────────────────────── */
.jrr-shop-head {
    background: var(--jrr-card);
    border-bottom: 1px solid var(--jrr-border);
    padding: 24px 0 20px;
    margin-bottom: 32px;
}
.jrr-shop-head-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.jrr-shop-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--jrr-navy) !important;
    letter-spacing: -0.3px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.jrr-cart-badge {
    display: inline-flex;
    align-items: center;
    background: var(--jrr-bg);
    border: 1px solid var(--jrr-border);
    color: var(--jrr-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ─────────────────────────────────────────────────────────────
   CART PAGE
   ───────────────────────────────────────────────────────────── */
.jrr-cart-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ── Items card ─────────────────────────────────────────────── */
.jrr-cart-card {
    background: var(--jrr-card);
    border: 1px solid var(--jrr-border);
    border-radius: var(--jrr-r-lg);
    box-shadow: var(--jrr-shadow);
    overflow: hidden;
}

/* Column header */
.jrr-cart-th-row {
    display: grid;
    grid-template-columns: 1fr 110px 150px 100px;
    padding: 12px 24px;
    background: #F9FAFB;
    border-bottom: 1px solid var(--jrr-border);
    gap: 12px;
}
.jrr-th {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--jrr-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.jrr-th-price,
.jrr-th-qty,
.jrr-th-total { text-align: center; }

/* Item row */
.jrr-cart-row {
    display: grid;
    grid-template-columns: 1fr 110px 150px 100px;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--jrr-border-2);
    align-items: center;
    transition: background 0.15s;
}
.jrr-cart-row:last-child { border-bottom: none; }
.jrr-cart-row:hover { background: #FAFBFC; }

/* Product cell */
.jrr-cr-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.jrr-cr-img {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--jrr-border);
    background: #F9FAFB;
}
.jrr-cr-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.jrr-cr-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.jrr-cr-name,
.jrr-cr-name a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
.jrr-cr-name a:hover { color: #EA580C !important; }
.jrr-cr-meta .variation,
.jrr-cr-meta .wc-item-meta {
    font-size: 12px !important;
    color: var(--jrr-muted) !important;
}
.jrr-cr-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: 11px !important;
    color: var(--jrr-muted-2) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.jrr-cr-remove:hover { color: #DC2626 !important; }

/* Price column */
.jrr-cr-price {
    text-align: center;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--jrr-muted) !important;
}

/* Quantity stepper — pill design */
.jrr-cr-qty { display: flex; justify-content: center; }
.jrr-qty-wrap {
    display: inline-flex;
    align-items: center;
    height: 42px;
    border: 1.5px solid var(--jrr-border);
    border-radius: 100px;
    overflow: hidden;
    background: var(--jrr-card);
    gap: 0;
}
.jrr-qb {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: #F4F5F7 !important;
    background-color: #F4F5F7 !important;
    background-image: none !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    color: var(--jrr-text-2) !important;
    transition: background 0.15s, color 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    user-select: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.jrr-qb:hover,
.jrr-qb:focus {
    background: #E5E7EB !important;
    background-color: #E5E7EB !important;
    background-image: none !important;
    color: var(--jrr-text) !important;
    box-shadow: none !important;
}
.jrr-qb:active {
    background: #D1D5DB !important;
    background-color: #D1D5DB !important;
    background-image: none !important;
}
.jrr-qty-input {
    width: 46px;
    height: 42px;
    border: none;
    border-left: 1.5px solid var(--jrr-border);
    border-right: 1.5px solid var(--jrr-border);
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
    background: var(--jrr-card) !important;
    -moz-appearance: textfield;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 0;
}
.jrr-qty-input::-webkit-outer-spin-button,
.jrr-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Row subtotal */
.jrr-cr-subtotal {
    text-align: right;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
}

/* Cart bottom actions */
.jrr-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid var(--jrr-border);
    background: #FAFBFC;
}
.jrr-coupon-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex: 1;
    max-width: 360px;
}
/* Wrapper div is the flex child — input inside it just fills 100% */
.jrr-coupon-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: stretch;
}
/* 0,3,0 specificity beats global input rule 0,2,1 */
.jrr-shop-page .jrr-coupon-field .jrr-coupon-input {
    flex: 1;
    width: 100% !important;
    height: 42px !important;
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--jrr-text) !important;
    background: var(--jrr-card) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.jrr-shop-page .jrr-coupon-field .jrr-coupon-input:focus {
    border-color: var(--jrr-focus) !important;
    box-shadow: var(--jrr-focus-ring) !important;
}
.jrr-coupon-btn {
    flex-shrink: 0 !important;
    height: 42px !important;
    padding: 0 18px !important;
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    background: var(--jrr-card) !important;
    background-image: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.15s, border-color 0.15s !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.jrr-coupon-btn:hover {
    background: var(--jrr-bg) !important;
    background-image: none !important;
    background-color: var(--jrr-bg) !important;
    border-color: #D1D5DB !important;
    color: var(--jrr-text) !important;
}
.jrr-btn-update {
    flex-shrink: 0 !important;
    height: 42px !important;
    padding: 0 18px !important;
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    background: var(--jrr-card) !important;
    background-image: none !important;
    background-color: var(--jrr-card) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.15s !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.jrr-btn-update:hover {
    background: var(--jrr-bg) !important;
    background-image: none !important;
    background-color: var(--jrr-bg) !important;
    color: var(--jrr-text) !important;
}

/* ── Order summary sidebar ──────────────────────────────────── */
.jrr-cart-col-side { position: sticky; top: 100px; }
.jrr-summary-card {
    background: var(--jrr-card);
    border: 1px solid var(--jrr-border);
    border-radius: var(--jrr-r-lg);
    box-shadow: var(--jrr-shadow-lg);
    padding: 24px;
}
.jrr-summary-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--jrr-navy) !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    letter-spacing: -0.1px !important;
}

/* Rows */
.jrr-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px !important;
    color: var(--jrr-muted) !important;
    padding: 8px 0;
    border-bottom: 1px solid var(--jrr-border-2);
    gap: 12px;
}
.jrr-sum-row span:last-child {
    font-weight: 500 !important;
    color: var(--jrr-text) !important;
}
.jrr-sum-neg { color: #16A34A !important; }

/* WC shipping row output */
.jrr-summary-card .shipping,
.jrr-summary-card tr.shipping {
    display: flex;
    justify-content: space-between;
    font-size: 14px !important;
    color: var(--jrr-muted) !important;
    padding: 8px 0;
    border-bottom: 1px solid var(--jrr-border-2);
}
.jrr-summary-card .shipping th,
.jrr-summary-card .shipping td { padding: 0 !important; background: transparent !important; }

/* Grand total — only ONE divider line (from border-bottom of last row) */
.jrr-sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0 0;
    margin-top: 0;
    border-top: none;
    gap: 12px;
}
.jrr-sum-total > span:first-child {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
}
.jrr-sum-total-val {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--jrr-navy) !important;
    letter-spacing: -0.3px;
}
.jrr-sum-total-val bdi,
.jrr-sum-total-val .woocommerce-Price-amount {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* CTA button */
.jrr-sum-cta { margin-top: 18px; }
.jrr-btn-checkout {
    display: block;
    width: 100%;
    height: 52px;
    line-height: 52px;
    text-align: center;
    background: var(--jrr-cta);
    border-radius: var(--jrr-r-sm);
    color: var(--jrr-cta-color) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 0;
    box-shadow: var(--jrr-cta-shadow);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.jrr-btn-checkout:hover {
    background: var(--jrr-cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--jrr-cta-shadow-h);
}
.jrr-btn-checkout:active { transform: translateY(0); }

/* Continue shopping */
.jrr-continue-shop {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px !important;
    color: var(--jrr-muted) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.jrr-continue-shop:hover { color: var(--jrr-text) !important; }

/* Security note under CTA */
.jrr-secure-note {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: var(--jrr-muted-2) !important;
    line-height: 1 !important;
    list-style: none !important;
}
.jrr-secure-note svg {
    flex-shrink: 0;
    color: var(--jrr-muted-2);
}

/* ── Empty cart ─────────────────────────────────────────────── */
.jrr-empty-cart {
    max-width: 440px;
    margin: 80px auto;
    text-align: center;
    padding: 0 24px;
}
.jrr-empty-cart svg {
    margin: 0 auto 24px;
    display: block;
    color: var(--jrr-muted-2);
}
.jrr-empty-cart h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--jrr-navy) !important;
    margin: 0 0 8px !important;
}
.jrr-empty-cart p {
    font-size: 15px !important;
    color: var(--jrr-muted) !important;
    margin: 0 0 28px !important;
}
.jrr-empty-cart .jrr-btn-checkout {
    display: inline-block;
    width: auto;
    padding: 0 32px;
    line-height: 50px;
    height: 50px;
}

/* ─────────────────────────────────────────────────────────────
   CHECKOUT PAGE
   ───────────────────────────────────────────────────────────── */
.jrr-checkout-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* ── Step cards ─────────────────────────────────────────────── */
.jrr-co-card {
    background: var(--jrr-card);
    border: 1px solid var(--jrr-border);
    border-radius: var(--jrr-r-md);
    box-shadow: var(--jrr-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}
.jrr-co-card-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: #F9FAFB;
    border-bottom: 1px solid var(--jrr-border);
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--jrr-navy) !important;
    letter-spacing: -0.1px;
}
.jrr-co-hd-light {
    font-weight: 500 !important;
    background: transparent !important;
    border-bottom-color: var(--jrr-border-2) !important;
    font-size: 13px !important;
    color: var(--jrr-muted) !important;
}
.jrr-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--jrr-cta);
    color: #fff;
    font-size: 12px !important;
    font-weight: 600 !important;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}
.jrr-co-card-bd { padding: 22px; }
.jrr-co-payment-card .jrr-co-card-bd {
    padding: 22px !important;
}
.jrr-co-payment-card .jrr-co-card-bd #payment {
    padding: 0 !important;
}
.jrr-co-payment-card .jrr-co-card-bd #payment .woocommerce-info {
    margin: 0 0 20px 0 !important;
    border: 1px solid #FEF3C7 !important;
    border-left: 4px solid #F59E0B !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
}

/* Billing 2-column grid
   WooCommerce adds float:left + width:48% on form-row-first/last.
   We must neutralise floats before grid can take over. */
.jrr-billing-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 16px;
    width: 100%;
    /* clearfix for any legacy WC floats */
    overflow: hidden;
}
/* Reset WooCommerce's built-in float/width on form rows */
.jrr-billing-grid .form-row {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
}
/* Make the WC input wrapper also fill 100% */
.jrr-billing-grid .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}
.jrr-billing-grid .form-row-first { grid-column: 1 !important; }
.jrr-billing-grid .form-row-last  { grid-column: 2 !important; }
.jrr-billing-grid .form-row-wide  { grid-column: 1 / -1 !important; }
.jrr-billing-grid .woocommerce-validated,
.jrr-billing-grid .woocommerce-invalid { grid-column: 1 / -1 !important; }

/* ── Form field base ────────────────────────────────────────── */
.jrr-shop-page .form-row {
    margin-bottom: 14px !important;
    padding: 0 !important;
}
.jrr-shop-page label {
    display: block;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--jrr-muted) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
    line-height: 1 !important;
}
.jrr-shop-page label abbr[title] {
    color: #DC2626 !important;
    text-decoration: none !important;
    margin-left: 2px;
}
.jrr-shop-page label .optional {
    font-weight: 400 !important;
    text-transform: none;
    font-size: 10px !important;
    opacity: 0.7;
}
.jrr-shop-page input[type="text"],
.jrr-shop-page input[type="email"],
.jrr-shop-page input[type="tel"],
.jrr-shop-page input[type="number"],
.jrr-shop-page input[type="password"],
.jrr-shop-page select,
.jrr-shop-page textarea {
    width: 100% !important;
    height: 46px !important;
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--jrr-text) !important;
    background: var(--jrr-card) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04) !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.jrr-shop-page textarea {
    height: auto !important;
    min-height: 80px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    resize: vertical !important;
}
.jrr-shop-page input:focus,
.jrr-shop-page select:focus,
.jrr-shop-page textarea:focus {
    border-color: var(--jrr-focus) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04), var(--jrr-focus-ring) !important;
}
.jrr-shop-page select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}
.jrr-shop-page .woocommerce-validated input,
.jrr-shop-page .woocommerce-validated select {
    border-color: #86EFAC !important;
}
.jrr-shop-page .woocommerce-invalid input,
.jrr-shop-page .woocommerce-invalid select {
    border-color: #FCA5A5 !important;
}

/* ── Payment section — no methods available notice ──────────── */
/* When placed inside .jrr-co-card, do NOT double-box — show as flat banner */
.jrr-co-card-bd #payment .woocommerce-info,
.jrr-shop-page #payment .woocommerce-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background: #FFF9ED !important;
    border: none !important;
    border-left: 4px solid #F59E0B !important;
    border-radius: 0 6px 6px 0 !important;
    padding: 14px 18px !important;
    margin: 0 !important;
    color: #78350F !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    list-style: none !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.jrr-co-card-bd #payment .woocommerce-info::before,
.jrr-shop-page #payment .woocommerce-info::before {
    content: '';
    display: none !important;
}
/* Icon via a separate element — use background SVG on the container */
.jrr-co-card-bd #payment .woocommerce-info::after,
.jrr-shop-page #payment .woocommerce-info::after {
    display: none !important;
}

/* ── Payment section ────────────────────────────────────────── */
/* WooCommerce renders: <li> <input radio> <label> <div.payment_box> </li>
   Radio is a SIBLING of label — we use position:absolute to align it. */
.jrr-shop-page #payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.jrr-shop-page #payment .payment_methods {
    list-style: none !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}
.jrr-shop-page #payment .payment_methods li {
    position: relative !important;
    border: 1px solid var(--jrr-border) !important;
    border-radius: 12px !important;
    background: var(--jrr-card) !important;
    overflow: hidden !important;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-shadow: none !important;
}
/* Selected payment option */
.jrr-shop-page #payment .payment_methods li:has(input[type="radio"]:checked) {
    border-color: #F3D7B8 !important;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04) !important;
    background: #FFFFFF !important;
}
/* Radio button — absolutely positioned left of label */
.jrr-shop-page #payment .payment_methods input[type="radio"] {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    opacity: 0 !important;
    border-radius: 50% !important;
    accent-color: var(--jrr-focus) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    z-index: 1 !important;
    cursor: pointer !important;
}
/* When payment_box is visible, top:50% shifts too far — override */
.jrr-shop-page #payment .payment_methods li:has(.payment_box:not([style*="none"])) input[type="radio"] {
    top: 0 !important;
    transform: none !important;
}
/* Label — full width, indent left for radio */
.jrr-shop-page #payment .payment_methods li label {
    display: block !important;
    padding: 22px 26px 8px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--jrr-text) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: 100%;
    line-height: 1.35 !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.jrr-shop-page #payment .payment_box {
    margin: 0 !important;
    padding: 0 26px 24px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--jrr-muted) !important;
    line-height: 1.65 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
}
.jrr-shop-page #payment .payment_box p {
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
/* Expand arrow/icon inside payment_box */
.jrr-shop-page #payment .payment_box::before { display: none !important; }

/* Place Order button */
.jrr-shop-page #payment .place-order {
    padding: 0 !important;
    margin-top: 14px !important;
    background: transparent !important;
}
.jrr-shop-page #payment #place_order,
.jrr-shop-page #payment .button.alt,
.jrr-shop-page #payment button[type="submit"] {
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    line-height: 54px !important;
    text-align: center !important;
    background: var(--jrr-cta) !important;
    border: none !important;
    border-radius: var(--jrr-r-sm) !important;
    color: var(--jrr-cta-color) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    box-shadow: var(--jrr-cta-shadow) !important;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s !important;
    padding: 0 !important;
    text-transform: none !important;
}
.jrr-shop-page #payment #place_order:hover,
.jrr-shop-page #payment .button.alt:hover {
    background: var(--jrr-cta-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--jrr-cta-shadow-h) !important;
}

/* Return to cart link */
.jrr-co-return-row { padding: 8px 0 4px; }
.jrr-return-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px !important;
    color: var(--jrr-muted) !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.jrr-return-link:hover { color: var(--jrr-text) !important; }

/* ── Terms & privacy text ───────────────────────────────────── */
.jrr-shop-page .woocommerce-terms-and-conditions-wrapper,
.jrr-shop-page .woocommerce-privacy-policy-text,
.jrr-shop-page .woocommerce-checkout__terms {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--jrr-muted) !important;
    line-height: 1.65 !important;
    margin: 16px 0 !important;
}
.jrr-shop-page .woocommerce-terms-and-conditions-wrapper a,
.jrr-shop-page .woocommerce-privacy-policy-text a {
    color: #EA580C !important;
    text-decoration: underline !important;
}
.jrr-shop-page .woocommerce-form__label-for-checkbox {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--jrr-text-2) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 0 16px !important;
    line-height: 1.55 !important;
    width: 100% !important;
}
.jrr-shop-page .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid var(--jrr-border) !important;
    border-radius: 6px !important;
    accent-color: var(--jrr-focus) !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0;
}
.jrr-shop-page .woocommerce-form__label-for-checkbox .required {
    color: #EA580C !important;
    text-decoration: none !important;
    margin-left: 4px !important;
}

/* ── Checkout summary sidebar ───────────────────────────────── */
.jrr-checkout-col-side { position: sticky; top: 100px; }
.jrr-co-summary-card {
    background: var(--jrr-card);
    border: 1px solid var(--jrr-border);
    border-radius: var(--jrr-r-lg);
    box-shadow: var(--jrr-shadow-lg);
    padding: 22px;
    overflow: hidden;
}
.jrr-cos-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--jrr-navy) !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    letter-spacing: -0.1px !important;
}

/* Order items list */
.jrr-os-items {
    border-bottom: 1px solid var(--jrr-border);
    margin-bottom: 0;
    padding-bottom: 4px;
}
.jrr-os-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--jrr-border-2);
}
.jrr-os-item:last-child { border-bottom: none; padding-bottom: 4px; }

/* Wrapper has overflow:visible so badge can stick out */
.jrr-os-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
}
/* Image itself gets the border/radius */
.jrr-os-img-wrap img {
    width: 54px !important;
    height: 54px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px !important;
    border: 1px solid var(--jrr-border) !important;
    background: #F9FAFB !important;
}
/* Badge floats outside the image at top-right */
.jrr-os-qty-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--jrr-navy);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px !important;
    font-weight: 700 !important;
    border: 2px solid var(--jrr-card);
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    z-index: 1;
}
.jrr-os-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.jrr-os-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
    line-height: 1.4 !important;
}
.jrr-os-meta {
    font-size: 11px !important;
    color: var(--jrr-muted) !important;
}
.jrr-os-price {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Coupon area in sidebar */
.jrr-os-coupon-area {
    padding: 14px 0;
    border-bottom: 1px solid var(--jrr-border-2);
}
/* <form> can't be the flex container — theme forces display:block on forms.
   The inner .jrr-os-coupon-row div owns the flex layout instead. */
.jrr-os-coupon-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: stretch !important;
}
/* Wrapper div is the flex child — input inside fills 100% width */
.jrr-os-coupon-field {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}
/* 0,3,0 specificity beats global input rule 0,2,1 */
.jrr-shop-page .jrr-os-coupon-field .jrr-os-coupon-in {
    flex: 1 !important;
    width: 100% !important;
    height: 40px !important;
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    background: var(--jrr-card) !important;
    color: var(--jrr-text) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.jrr-shop-page .jrr-os-coupon-field .jrr-os-coupon-in:focus {
    border-color: var(--jrr-focus) !important;
    box-shadow: var(--jrr-focus-ring) !important;
}
.jrr-os-coupon-btn {
    flex-shrink: 0 !important;
    align-self: center !important;
    height: 40px !important;
    padding: 0 16px !important;
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    background: var(--jrr-card) !important;
    background-image: none !important;
    background-color: var(--jrr-card) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.15s !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.jrr-os-coupon-btn:hover {
    background: var(--jrr-bg) !important;
    background-image: none !important;
    background-color: var(--jrr-bg) !important;
    color: var(--jrr-text) !important;
}

/* Totals rows in sidebar */
.jrr-os-totals {
    padding: 4px 0;
}
.jrr-os-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px !important;
    color: var(--jrr-muted) !important;
    padding: 8px 0;
    border-bottom: 1px solid var(--jrr-border-2);
    gap: 12px;
}
.jrr-os-row:last-child { border-bottom: none; }
.jrr-os-row span:last-child {
    font-weight: 500 !important;
    color: var(--jrr-text) !important;
}
.jrr-os-coupon span:last-child { color: #16A34A !important; }

/* WC shipping row in sidebar */
.jrr-co-summary-card .shipping,
.jrr-co-summary-card tr.shipping {
    display: flex;
    justify-content: space-between;
    font-size: 13px !important;
    color: var(--jrr-muted) !important;
    padding: 8px 0;
    border-bottom: 1px solid var(--jrr-border-2);
}
.jrr-co-summary-card .shipping th,
.jrr-co-summary-card .shipping td {
    padding: 0 !important;
    background: transparent !important;
}

/* Grand total row — uses border-bottom of last .jrr-os-row as separator */
.jrr-os-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0 0;
    border-top: none;
    gap: 12px;
    margin-top: 0;
}
.jrr-os-total-row > span:first-child {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--jrr-text) !important;
}
.jrr-os-total-amt {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--jrr-navy) !important;
    letter-spacing: -0.3px;
}
.jrr-os-total-amt bdi,
.jrr-os-total-amt .woocommerce-Price-amount {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* ── WooCommerce notices inline ─────────────────────────────── */
.jrr-shop-page .woocommerce-error,
.jrr-shop-page .woocommerce-message,
.jrr-shop-page .woocommerce-info {
    background: var(--jrr-card) !important;
    border-left: 4px solid var(--jrr-focus) !important;
    border-radius: 0 var(--jrr-r-sm) var(--jrr-r-sm) 0 !important;
    box-shadow: var(--jrr-shadow) !important;
    padding: 14px 18px !important;
    margin: 0 auto 20px !important;
    max-width: 1200px !important;
    color: var(--jrr-text) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    list-style: none !important;
}
.jrr-shop-page .woocommerce-error {
    border-left-color: #DC2626 !important;
}
.jrr-shop-page .woocommerce-error li,
.jrr-shop-page .woocommerce-message li {
    list-style: none !important;
    padding: 0 !important;
}

/* ── Select2 (country/state dropdowns) ─────────────────────── */
.jrr-shop-page .select2-container .select2-selection--single {
    height: 46px !important;
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    background: var(--jrr-card) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04) !important;
}
.jrr-shop-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding: 0 40px 0 14px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--jrr-text) !important;
}
.jrr-shop-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
}
.jrr-shop-page .select2-container--open .select2-selection--single,
.jrr-shop-page .select2-container--focus .select2-selection--single {
    border-color: var(--jrr-focus) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04), var(--jrr-focus-ring) !important;
    outline: none !important;
}
.jrr-shop-page .select2-dropdown {
    border: 1.5px solid var(--jrr-border) !important;
    border-radius: var(--jrr-r-sm) !important;
    box-shadow: var(--jrr-shadow-lg) !important;
    font-size: 14px !important;
}
.jrr-shop-page .select2-results__option--highlighted {
    background: var(--jrr-focus) !important;
    color: #fff !important;
}

/* ── WC table in sidebar ────────────────────────────────────── */
.jrr-co-summary-card table.shop_table,
.jrr-summary-card table.shop_table {
    width: 100%;
    border-collapse: collapse;
}
.jrr-co-summary-card table.shop_table th,
.jrr-co-summary-card table.shop_table td,
.jrr-summary-card table.shop_table th,
.jrr-summary-card table.shop_table td {
    font-size: 13px !important;
    padding: 8px 0 !important;
    border: none !important;
    color: var(--jrr-muted) !important;
    background: transparent !important;
}
.jrr-co-summary-card table.shop_table td,
.jrr-summary-card table.shop_table td {
    text-align: right;
    font-weight: 500 !important;
    color: var(--jrr-text) !important;
}

/* ── Notes card ─────────────────────────────────────────────── */
.jrr-co-notes-card .jrr-co-card-bd { padding: 18px 22px; }
.jrr-co-notes-card .form-row { margin-bottom: 0 !important; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .jrr-cart-grid,
    .jrr-checkout-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .jrr-cart-col-side,
    .jrr-checkout-col-side { position: static; }
    /* On tablet, checkout summary comes AFTER the form */
    .jrr-checkout-col-side { order: 2; }
    .jrr-checkout-col-main { order: 1; }
    .jrr-shop-head-inner { padding: 0 20px; }
}

@media (max-width: 768px) {
    /* Cart — stack rows vertically */
    .jrr-cart-th-row { display: none !important; }
    .jrr-cart-row {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 16px;
        position: relative;
    }
    /* On mobile, show price + qty + subtotal in a row below product info */
    .jrr-cr-price,
    .jrr-cr-qty,
    .jrr-cr-subtotal { text-align: left; }
    .jrr-cr-qty { justify-content: flex-start; }

    /* Cart actions stack */
    .jrr-cart-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px 16px;
        gap: 10px;
    }
    .jrr-coupon-wrap { max-width: 100% !important; }

    /* Checkout billing — single column */
    .jrr-billing-grid {
        grid-template-columns: 1fr !important;
        overflow: visible;
    }
    .jrr-billing-grid .form-row-first,
    .jrr-billing-grid .form-row-last {
        grid-column: 1 !important;
        width: 100% !important;
    }

    /* Cards */
    .jrr-co-card-bd { padding: 14px 16px !important; }
    .jrr-co-card-hd { padding: 14px 16px !important; }
    .jrr-summary-card,
    .jrr-co-summary-card { padding: 16px; }

    /* Typography */
    .jrr-shop-title { font-size: 20px !important; }

    /* Grids */
    .jrr-cart-grid,
    .jrr-checkout-grid { padding: 0 12px !important; }
    .jrr-shop-head-inner { padding: 0 12px !important; }
    .jrr-shop-head { margin-bottom: 20px; padding: 16px 0; }

    /* Cart column header hidden on mobile, add inline labels */
    .jrr-cr-price::before  { content: "Price: "; font-weight: 600; color: var(--jrr-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }
    .jrr-cr-subtotal::before { content: "Total: "; font-weight: 600; color: var(--jrr-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }

    /* Stepper smaller on mobile */
    .jrr-qty-wrap { height: 40px; }
    .jrr-qb { width: 38px !important; height: 40px !important; }
    .jrr-qty-input { width: 44px; height: 40px; }

    /* Payment options */
    .jrr-shop-page #payment .payment_methods li label { padding: 12px 14px 12px 42px !important; }
    .jrr-shop-page #payment #place_order { height: 50px !important; line-height: 50px !important; }

    /* Summary sidebar on mobile — keep inline */
    .jrr-os-coupon-row { flex-direction: row !important; flex-wrap: nowrap !important; }
    .jrr-os-coupon-field { flex: 1 !important; min-width: 0 !important; }
    .jrr-coupon-field { flex: 1 !important; min-width: 0 !important; }
}

/* ── Mobile checkout polish ─────────────────────────────────── */
@media (max-width: 768px) {
    html,
    body.woocommerce-checkout {
        overflow-x: hidden !important;
    }

    .jrr-checkout-page {
        padding-bottom: 42px !important;
    }

    .jrr-checkout-page .jrr-shop-head {
        padding: 18px 0 14px !important;
        margin-bottom: 14px !important;
    }

    .jrr-checkout-page .jrr-shop-title {
        font-size: 26px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.7px !important;
    }

    /* Checkout should show the order summary first on phones. */
    .jrr-checkout-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 0 12px !important;
        width: 100%;
        max-width: 100%;
    }

    .jrr-checkout-col-side {
        order: 0 !important;
        position: static !important;
        width: 100%;
        min-width: 0;
    }

    .jrr-checkout-col-main {
        order: 1 !important;
        width: 100%;
        min-width: 0;
    }

    .jrr-co-card,
    .jrr-co-summary-card {
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(15,23,42,0.07) !important;
        margin-bottom: 14px !important;
    }

    .jrr-co-payment-card {
        background: #FFFFFF !important;
    }

    .jrr-co-card-hd {
        padding: 15px 16px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    .jrr-step-badge {
        width: 26px !important;
        height: 26px !important;
    }

    .jrr-co-card-bd {
        padding: 16px !important;
    }

    .jrr-billing-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    .jrr-billing-grid .form-row,
    .jrr-billing-grid .form-row-first,
    .jrr-billing-grid .form-row-last,
    .jrr-billing-grid .form-row-wide {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
    }

    .jrr-shop-page label {
        font-size: 12px !important;
        line-height: 1.25 !important;
        margin-bottom: 7px !important;
    }

    .jrr-shop-page input[type="text"],
    .jrr-shop-page input[type="email"],
    .jrr-shop-page input[type="tel"],
    .jrr-shop-page input[type="number"],
    .jrr-shop-page input[type="password"],
    .jrr-shop-page select,
    .jrr-shop-page textarea,
    .jrr-shop-page .select2-container .select2-selection--single {
        min-height: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }

    .jrr-co-notes-card .jrr-co-card-bd {
        padding: 16px !important;
    }

    .jrr-co-notes-card textarea,
    .jrr-shop-page textarea#order_comments {
        min-height: 150px !important;
        height: 150px !important;
        padding: 14px 16px !important;
        line-height: 1.5 !important;
        resize: vertical !important;
    }

    .jrr-shop-page .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 46px !important;
        font-size: 15px !important;
    }

    .jrr-co-payment-card .jrr-co-card-bd {
        padding: 16px !important;
    }

    .jrr-co-payment-card .jrr-co-card-bd #payment {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .jrr-co-card-bd #payment .woocommerce-info,
    .jrr-shop-page #payment .woocommerce-info {
        border-radius: 12px !important;
        border: 1px solid #FDE68A !important;
        border-left: 4px solid #F59E0B !important;
        padding: 18px 18px 18px 20px !important;
        margin: 0 0 18px 0 !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        background: #FFFBEB !important;
        color: #78350F !important;
        box-shadow: none !important;
    }

    .jrr-shop-page #payment .payment_methods {
        gap: 8px !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .jrr-shop-page #payment .payment_methods li {
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: none !important;
    }

    .jrr-shop-page #payment .payment_methods li label {
        min-height: 0 !important;
        padding: 18px 18px 8px !important;
        font-size: 15px !important;
    }

    .jrr-shop-page #payment .payment_box {
        margin: 0 !important;
        padding: 0 18px 18px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        font-size: 13px !important;
        box-shadow: none !important;
    }

    .jrr-shop-page .woocommerce-terms-and-conditions-wrapper,
    .jrr-shop-page .woocommerce-privacy-policy-text,
    .jrr-shop-page .woocommerce-checkout__terms {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin: 14px 0 !important;
    }

    .jrr-shop-page .woocommerce-form__label-for-checkbox {
        align-items: flex-start !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    .jrr-shop-page .woocommerce-form__label-for-checkbox input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }

    .jrr-shop-page #payment #place_order,
    .jrr-shop-page #payment .button.alt,
    .jrr-shop-page #payment button[type="submit"] {
        height: 52px !important;
        line-height: 52px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }

    .jrr-co-summary-card {
        padding: 16px !important;
    }

    .jrr-cos-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }

    .jrr-os-item {
        gap: 10px !important;
        padding: 12px 0 !important;
    }

    .jrr-os-img-wrap,
    .jrr-os-img-wrap img {
        width: 58px !important;
        height: 58px !important;
    }

    .jrr-os-img-wrap img {
        object-fit: contain !important;
        padding: 5px !important;
    }

    .jrr-os-name {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .jrr-os-price {
        font-size: 13px !important;
    }

    .jrr-os-coupon-area {
        padding: 14px 0 !important;
    }

    .jrr-os-coupon-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
    }

    .jrr-shop-page .jrr-os-coupon-field .jrr-os-coupon-in,
    .jrr-os-coupon-btn {
        height: 42px !important;
        border-radius: 10px !important;
    }

    .jrr-os-total-row {
        padding-top: 14px !important;
    }

    .jrr-os-total-amt {
        font-size: 22px !important;
    }

    .jrr-co-return-row {
        text-align: center;
        padding: 2px 0 10px !important;
    }

    .jrr-return-link {
        min-height: 42px;
        justify-content: center;
    }

    /* The add-to-cart success notice can appear above checkout. Make it compact. */
    body.woocommerce-checkout > .woocommerce-message,
    body.woocommerce-checkout .woocommerce-message {
        max-width: calc(100% - 24px) !important;
        margin: 12px auto !important;
        padding: 12px 14px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 16px rgba(15,23,42,0.08) !important;
    }

    body.woocommerce-checkout .woocommerce-message .button {
        float: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 34px !important;
        padding: 0 12px !important;
        margin: 0 0 0 8px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 420px) {
    .jrr-os-coupon-row {
        grid-template-columns: 1fr !important;
    }

    .jrr-os-coupon-btn {
        width: 100% !important;
    }

    .jrr-os-item {
        display: grid !important;
        grid-template-columns: 58px 1fr;
    }

    .jrr-os-price {
        grid-column: 2;
        justify-self: start;
    }
}

/* ── Sticky menu harmony: cart/checkout title as page intro, not another white header ── */
.jrr-shop-page .jrr-shop-head {
    background: transparent !important;
    border-bottom: 0 !important;
    padding: 30px 0 12px !important;
    margin-bottom: 22px !important;
}

.jrr-shop-page .jrr-shop-title {
    font-size: clamp(24px, 2.4vw, 34px) !important;
    font-weight: 540 !important;
    letter-spacing: -0.015em !important;
    line-height: 1.08 !important;
}

.jrr-shop-page .jrr-cart-badge {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(16, 24, 39, 0.08) !important;
    color: rgba(75, 85, 99, 0.92) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

@media (max-width: 768px) {
    .jrr-shop-page .jrr-shop-head {
        padding: 22px 0 6px !important;
        margin-bottom: 14px !important;
    }
}
