:root {
    --csc-accent: #1fb271;
    --csc-accent-soft: #eaf8f1;
    --csc-text: #1a1a1a;
    --csc-muted: #7a7a7a;
    --csc-border: #ececec;
    --csc-card-bg: #f7f8fa;
    --csc-radius: 12px;
    --csc-radius-sm: 8px;
    --csc-danger: #d32f2f;
}

/* Overlay */
.chillgoza-sc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
.chillgoza-sc-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.chillgoza-sc-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(420px, 100vw);
    background: #fff;
    z-index: 99999;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--csc-text);
    -webkit-font-smoothing: antialiased;
}
.chillgoza-sc-drawer.csc-pos-right { right: 0; transform: translateX(100%); }
.chillgoza-sc-drawer.csc-pos-left { left: 0; transform: translateX(-100%); }
.chillgoza-sc-drawer.is-open { transform: translateX(0); }

#chillgoza-sc-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.chillgoza-sc-drawer button,
.chillgoza-sc-drawer a {
    -webkit-tap-highlight-color: transparent;
}

/* Header */
.csc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid var(--csc-border);
    flex-shrink: 0;
}
.csc-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.csc-close {
    background: #f2f2f2;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    color: var(--csc-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.csc-close:hover { background: #e6e6e6; color: var(--csc-text); }

/* Announcement bar */
.csc-announcement {
    padding: 6px;
    font-size: 13px;
    text-align: center;
    flex-shrink: 0;
    font-weight: 500;
}

/* Body scroll area */
.csc-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px;
}
.csc-body-empty { display: flex; flex-direction: column; }
.csc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 70px 0;
    color: var(--csc-muted);
    flex: 1;
}
.csc-empty svg { opacity: 0.35; }
.csc-empty p { margin: 0; font-size: 13.5px; }
.csc-empty-actions { display: flex; gap: 10px; margin-top: 8px; width: 100%; max-width: 260px; }
.csc-empty-shop-btn,
.csc-empty-continue-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}
.csc-empty-shop-btn {
    background: var(--csc-accent);
    color: #fff !important;
    border: none;
}
.csc-empty-shop-btn:hover { opacity: 0.92; }
.csc-empty-continue-btn {
    background: #fff;
    color: var(--csc-text);
    border: 1px solid var(--csc-border);
}
.csc-empty-continue-btn:hover { background: var(--csc-card-bg); }

/* Generic section wrapper — every block below the items list (cross-sell,
   protection, coupon) shares this spacing + card pattern so the drawer reads
   as a set of distinct, breathing sections instead of one long stacked list. */
.csc-section { margin-bottom: 15px; }
.csc-section-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--csc-muted);
    margin-bottom: 12px;
}
.csc-section-icon { font-size: 13px; line-height: 1; }
.csc-section-count {
    margin-left: auto;
    background: var(--csc-card-bg);
    color: var(--csc-text);
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
}

/* Cart items — each row is its own compact card, mirroring the app's
   light-grey rounded item cards, but kept tight (8px gaps, 10px padding)
   so a multi-item cart doesn't waste vertical space in a 420px drawer. */
.csc-items { display: flex; flex-direction: column; gap: 14px; }
.csc-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding: 14px 36px 14px 14px;
    background: var(--csc-card-bg);
    border-radius: var(--csc-radius);
}
.csc-item-image { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--csc-radius-sm); overflow: hidden; background: #fff; }
.csc-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csc-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.csc-item-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.csc-item-meta { font-size: 12px; color: var(--csc-muted); }
.csc-item-meta p { margin: 0; }
.csc-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* Regular (strikethrough) + sale price shown together per item */
.csc-item-price { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; }
.csc-price-regular { text-decoration: line-through; color: var(--csc-muted); font-weight: 500; font-size: 11.5px; }
.csc-item-price.is-on-sale .csc-price-sale { color: var(--csc-accent); }

.csc-item-remove {
    position: absolute; top: 10px; right: 10px;
    background: none; border: none; font-size: 18px; color: var(--csc-muted); cursor: pointer;
    width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.csc-item-remove:hover { color: var(--csc-danger); background: #fdeaea; }

.csc-qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--csc-border);
    border-radius: 7px;
    overflow: hidden;
    width: fit-content;
}
.csc-qty-stepper button {
    background: #fff;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    color: var(--csc-text);
}
.csc-qty-stepper button:hover { background: #f0f0f0; }
.csc-qty-input {
    width: 32px;
    height: 28px;
    text-align: center;
    background: #fff;
    border: none;
    border-left: 1px solid var(--csc-border);
    border-right: 1px solid var(--csc-border);
    font-size: 13px;
    -moz-appearance: textfield;
}

/* Cross-sell — horizontal row, sized so exactly 2 cards are visible in the
   drawer viewport at a time; additional cards scroll into view with snapping. */
.csc-crosssell-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}
.csc-crosssell-card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    background: var(--csc-card-bg);
    border-radius: var(--csc-radius);
    padding: 12px;
    text-align: center;
}
.csc-crosssell-image { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: var(--csc-radius-sm); overflow: hidden; background: #fff; }
.csc-crosssell-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csc-crosssell-name { font-size: 12px; font-weight: 500; margin-bottom: 4px; line-height: 1.35; }
.csc-crosssell-price { display: flex; align-items: baseline; justify-content: center; gap: 5px; font-size: 12px; color: var(--csc-muted); margin-bottom: 10px; font-weight: 600; }
.csc-crosssell-price.is-on-sale .csc-price-sale { color: var(--csc-accent); }
.csc-crosssell-price .csc-price-regular { font-size: 10.5px; }
.csc-crosssell-add {
    width: 100%;
    background: var(--csc-accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 0;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.csc-crosssell-add:hover { opacity: 0.88; }
.csc-crosssell-add:disabled { opacity: 0.5; cursor: default; }

/* Progress bar */
.csc-progress { margin-bottom: 15px; background: var(--csc-card-bg); border-radius: var(--csc-radius); padding: 16px 18px 18px; }
.csc-progress-message { font-size: 13px; margin-bottom: 15px; text-align: center; }
.csc-progress-complete { color: var(--csc-accent); font-weight: 700; }
.csc-progress-track {
    position: relative;
    height: 6px;
    background: #e6e6e6;
    border-radius: 3px;
    margin: 0 4px 28px;
}
.csc-progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: var(--csc-accent);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.csc-progress-milestone {
    position: absolute;
    top: -7px;
    transform: translateX(-50%);
    text-align: center;
}
.csc-progress-milestone.csc-progress-start { transform: translateX(0); }
.csc-progress-milestone.csc-progress-start .csc-progress-dot { border-color: var(--csc-accent); background: #fff; font-size: 10px; }
.csc-progress-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    font-size: 11px;
    color: var(--csc-accent);
    margin: 0 auto;
}
.csc-progress-milestone.is-reached .csc-progress-dot { border-color: var(--csc-accent); background: var(--csc-accent); color: #fff; }
.csc-progress-label {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--csc-muted);
}
.csc-progress-milestone.is-reached .csc-progress-label { color: var(--csc-text); font-weight: 600; }
/* Last milestone sits at the right edge of the track (100%) — center-aligning
   its label like the others makes half of it spill past the drawer's edge,
   so it's right-aligned to the dot instead of centered on it. */
.csc-progress-milestone:last-child:not(.csc-progress-start) .csc-progress-label {
    left: auto;
    right: 0;
    transform: translateX(0);
    text-align: right;
}
.csc-progress-milestone.csc-progress-start .csc-progress-label {
    left: 0;
    transform: translateX(0);
    text-align: left;
}

/* Shipping protection */
.csc-protection { background: var(--csc-card-bg); border-radius: var(--csc-radius); padding: 15px 18px; }
.csc-protection label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.csc-protection input[type="checkbox"] { margin-top: 2px; accent-color: var(--csc-accent); width: 16px; height: 16px; }
.csc-protection-desc { margin: 2px 0 0 26px; font-size: 12px; color: var(--csc-muted); }

/* Coupon */
.csc-coupon-box { display: flex; gap: 10px; }
.csc-coupon-box input {
    flex: 1;
    padding: 12px 14px;
    background: var(--csc-card-bg);
    border: 1px solid transparent;
    border-radius: var(--csc-radius-sm);
    font-size: 13px;
}
.csc-coupon-box input:focus { outline: none; border-color: var(--csc-accent); background: #fff; }
.csc-coupon-box button {
    background: var(--csc-text);
    color: #fff;
    border: none;
    border-radius: var(--csc-radius-sm);
    padding: 0 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.csc-coupon-message { font-size: 12px; color: var(--csc-danger); margin-top: 8px; }
.csc-coupon-applied {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--csc-accent-soft); border-radius: var(--csc-radius-sm);
    padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--csc-accent);
}
.csc-coupon-remove { background: none; border: none; color: var(--csc-muted); text-decoration: underline; cursor: pointer; font-size: 12px; font-weight: 500; }

/* Footer */
.csc-footer {
    flex-shrink: 0;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--csc-border);
}

/* Order Summary — collapsed by default, expands on click via the chevron.
   The Total row always stays visible outside the collapsible area. */
.csc-summary-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 4px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--csc-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
.csc-summary-toggle:hover,
.csc-summary-toggle:focus,
.csc-summary-toggle:active,
.csc-summary-toggle:focus-visible {
    background: none;
    outline: none;
    box-shadow: none;
}
.csc-summary-toggle-label { flex: 1; text-align: left; }
.csc-summary-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.csc-summary-toggle.is-open .csc-summary-chevron,
.csc-summary-toggle[aria-expanded="true"] .csc-summary-chevron { transform: rotate(180deg); }

.csc-summary-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.csc-summary-details.is-open { max-height: 400px; }

.csc-summary { padding-top: 8px; }
.csc-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--csc-border);
}
.csc-summary-row:first-child { padding-top: 0; }
.csc-summary-discount span:last-child { color: var(--csc-accent); font-weight: 600; }
.csc-summary-total {
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 14px;
    padding-top: 12px;
    border-top: 2px solid var(--csc-accent);
    font-size: 14px;
    font-weight: 600;
}

.csc-tnc { margin-bottom: 14px; }
.csc-tnc label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; cursor: pointer; color: var(--csc-muted); }
.csc-tnc input[type="checkbox"] { margin-top: 2px; accent-color: var(--csc-accent); }
.csc-tnc a { color: var(--csc-text); text-decoration: underline; }

.csc-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--csc-accent);
    color: #fff !important;
    border: none;
    border-radius: 5px;
    padding: 10px 0;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 4px 14px rgba(31, 178, 113, 0.28);
}
.csc-checkout-btn:hover { opacity: 0.92; background: #333333; }
.csc-checkout-btn[disabled] {
    pointer-events: none;
    opacity: 0.4;
    box-shadow: none;
}

.csc-footer-text { text-align: center; font-size: 10.5px; color: var(--csc-muted); margin: 10px 0 0; }

.csc-payment-icons { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.csc-payment-icon svg { display: block; }

/* Sticky cart icon */
.chillgoza-sc-sticky {
    position: fixed;
    bottom: 24px;
    z-index: 99997;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--csc-accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.chillgoza-sc-sticky.bottom-right { right: 24px; }
.chillgoza-sc-sticky.bottom-left { left: 24px; }
.chillgoza-sc-sticky .chillgoza-sc-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (max-width: 480px) {
    .chillgoza-sc-drawer { width: 100vw; }
    .csc-header { padding: 10px 15px; }
    .csc-body { padding: 10px; }
    .csc-footer { padding: 16px 18px 18px; }
}

/* ─────────────────────────────────────────────
   OFFERS POPUP (coupon wallet)
   Lives OUTSIDE the drawer's DOM tree (#csc-offers-wrap is a sibling of
   #chillgoza-sc-drawer at the wp_footer level) so its position:fixed is
   relative to the real viewport — the drawer itself has a CSS transform,
   which would otherwise trap a fixed child inside its own 400px box.
   ───────────────────────────────────────────── */
.csc-offers-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, 0.55);
    z-index: 100010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}
.csc-offers-overlay.is-open { opacity: 1; visibility: visible; }

.csc-offers-modal {
    position: fixed;
    right: 0;
    bottom: 0;
    left: auto;
    transform: translateY(100%);
    width: min(420px, 100vw);
    max-height: 78vh;
    background: #fff;
    z-index: 100011;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--csc-text);
}
/* Mirror the drawer's own side — if the cart drawer opens on the left,
   the offers popup should slide up over that same side, not the right. */
.csc-offers-modal.csc-pos-left { left: 0; right: auto; }
.csc-offers-modal.is-open { transform: translateY(0); }

.csc-offers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--csc-border);
    flex-shrink: 0;
}
.csc-offers-header h4 { margin: 0; font-size: 15.5px; font-weight: 700; }
.csc-offers-close {
    background: #f2f2f2;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--csc-muted);
    -webkit-tap-highlight-color: transparent;
}
.csc-offers-close:hover { background: #e6e6e6; color: var(--csc-text); }

.csc-offers-list {
    overflow-y: auto;
    padding: 14px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.csc-offers-empty { text-align: center; color: var(--csc-muted); font-size: 13px; padding: 30px 0; }

.csc-offer-card {
    position: relative;
    background: var(--csc-accent-soft);
    border: 1px solid rgba(31, 178, 113, 0.25);
    border-radius: var(--csc-radius);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.csc-offer-blurred { flex: 1; min-width: 0; }
.csc-offer-code-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.csc-offer-code { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.csc-offer-amount { font-size: 12px; font-weight: 700; color: var(--csc-accent); white-space: nowrap; }
.csc-offer-desc { font-size: 11.5px; color: var(--csc-text); opacity: 0.85; margin-bottom: 4px; }
.csc-offer-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--csc-muted); }

.csc-offer-action { flex-shrink: 0; }
.csc-offer-apply {
    background: var(--csc-accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s;
}
.csc-offer-apply:hover { opacity: 0.9; }
.csc-offer-apply:disabled { opacity: 0.6; cursor: default; }

.csc-offer-applied-tag {
    display: inline-block;
    background: var(--csc-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 20px;
}
.csc-offer-card.is-applied { background: #fff; border-color: var(--csc-accent); box-shadow: 0 0 0 2px rgba(31, 178, 113, 0.12) inset; }

/* Locked (not currently applicable) — content stays blurred/greyed and
   non-interactive, but the reason text below is left sharp and legible
   so the customer knows exactly what to do to unlock it (not a dark
   pattern — it's genuinely informative, not just a tease). */
.csc-offer-card.is-locked { background: #f7f7f8; border-color: var(--csc-border); }
.csc-offer-card.is-locked .csc-offer-blurred {
    opacity: 0.55;
}
.csc-offer-card.is-locked .csc-offer-code { color: var(--csc-muted); }
.csc-offer-card.is-locked .csc-offer-amount { color: var(--csc-muted); }
.csc-offer-lock { font-size: 15px; opacity: 0.5; }
.csc-offer-reason {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    color: #b5680a;
    background: #fff6e8;
    border-radius: 6px;
    padding: 6px 9px;
    margin-top: 2px;
}

/* "View Offers" trigger next to the Discount Code section header */
.csc-view-offers-link {
    margin-left: auto;
    background: none !important;
    border: none;
    color: var(--csc-accent);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}
.csc-view-offers-link:hover,
.csc-view-offers-link:focus,
.csc-view-offers-link:active,
.csc-view-offers-link:focus-visible {
    background: none !important;
    outline: none;
    box-shadow: none;
    opacity: 0.8;
}
.csc-view-offers-link::-moz-focus-inner { border: 0; }

/* Robust scroll lock while the drawer or offers popup is open (item 1) —
   position:fixed on <body>, restored to the exact scroll offset on close. */
body.csc-body-locked {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

/* Coupon-removed toast (item 5) */
.csc-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 12px);
    background: #1a1a1a;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 100020;
    max-width: 88vw;
    text-align: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.csc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Delivery options (item 9) */
.csc-shipping-list { display: flex; flex-direction: column; gap: 7px; }
.csc-shipping-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    background: var(--csc-card-bg);
    border: 1.5px solid transparent;
    border-radius: var(--csc-radius-sm);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.csc-shipping-option.is-selected { background: var(--csc-accent-soft); border-color: var(--csc-accent); }
.csc-shipping-radio { accent-color: var(--csc-accent); width: 15px; height: 15px; flex-shrink: 0; }
.csc-shipping-option-label { flex: 1; font-size: 12.5px; font-weight: 600; }
.csc-shipping-option-cost { font-size: 12.5px; font-weight: 700; color: var(--csc-accent); }

/* ─────────────────────────────────────────────
   PHASE 1 — Login / Register popup (fast checkout gate)
   Reuses the same overlay + bottom-sheet/modal shell as the offers popup
   (.csc-offers-overlay / .csc-offers-modal), just with its own body content.
   ───────────────────────────────────────────── */
.csc-auth-modal .csc-offers-header { border-bottom: 1px solid var(--csc-border); }
.csc-auth-body { padding: 16px 18px 22px; overflow-y: auto; }

.csc-auth-tabs {
    display: flex;
    background: var(--csc-card-bg);
    border-radius: 24px;
    padding: 3px;
    margin-bottom: 16px;
}
.csc-auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 9px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--csc-muted);
    border-radius: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s;
}
.csc-auth-tab.is-active { background: #fff; color: var(--csc-text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }

.csc-auth-message {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--csc-danger);
    background: #fdeaea;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
}
.csc-auth-message.is-visible { display: block; }

.csc-auth-form { display: none; flex-direction: column; }
.csc-auth-form.is-active { display: flex; }

.csc-auth-label { font-size: 11.5px; font-weight: 700; color: var(--csc-muted); margin: 10px 0 5px; }
.csc-auth-label:first-child { margin-top: 0; }
.csc-auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    background: var(--csc-card-bg);
    border: 1.5px solid transparent;
    border-radius: var(--csc-radius-sm);
    font-size: 13px;
    font-family: inherit;
}
.csc-auth-input:focus { outline: none; border-color: var(--csc-accent); background: #fff; }

.csc-auth-password-row { position: relative; display: flex; }
.csc-auth-password-row .csc-auth-input { padding-right: 40px; }
.csc-auth-toggle-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 8px;
    -webkit-tap-highlight-color: transparent;
}

.csc-auth-forgot { align-self: flex-end; font-size: 11.5px; color: var(--csc-muted); margin-top: 8px; text-decoration: underline; }
.csc-auth-hint { font-size: 10.5px; color: var(--csc-muted); margin: 5px 0 0; }

.csc-auth-submit {
    margin-top: 18px;
    background: linear-gradient(135deg, var(--csc-accent), #17995f);
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(31, 178, 113, 0.3);
    -webkit-tap-highlight-color: transparent;
}
.csc-auth-submit:hover { opacity: 0.94; }
.csc-auth-submit:disabled { opacity: 0.6; cursor: default; }

/* ─────────────────────────────────────────────
   PHASE 2 — Address selection / entry
   ───────────────────────────────────────────── */
.csc-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csc-address-ship-toggle { display: flex !important; align-items: center; gap: 7px; margin-top: 14px; cursor: pointer; color: var(--csc-text); }
.csc-address-ship-toggle input { accent-color: var(--csc-accent); width: 15px; height: 15px; }

#csc-ship-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}
#csc-ship-fields.is-open { max-height: 400px; opacity: 1; margin-top: 10px; }

.csc-address-summary-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--csc-muted); margin-bottom: 8px; }
.csc-address-summary-card {
    background: var(--csc-card-bg);
    border-radius: var(--csc-radius);
    padding: 14px;
    margin-bottom: 12px;
}
.csc-address-summary-card strong { font-size: 13.5px; }
.csc-address-summary-card p { font-size: 12.5px; color: var(--csc-text); margin: 6px 0 0; line-height: 1.5; }
.csc-address-summary-phone { color: var(--csc-muted) !important; }

.csc-address-edit-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: 1.5px solid var(--csc-border);
    border-radius: 24px;
    padding: 10px 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--csc-text);
    cursor: pointer;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
}
.csc-address-edit-link:hover { background: var(--csc-card-bg); }
