/* Shared store checkout shell (membership + gift card), aligned with reserve. */
:root {
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --success: #15803d;
    --danger: #dc2626;
    --warn: #b54708;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 30px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { height: 100%; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
body.store-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
body.store-page > main.wrap { flex: 1 0 auto; }
body.store-page > .site-footer {
    margin-top: auto;
    flex-shrink: 0;
}
a { color: var(--brand); }
.hidden { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 48px; }
.wrap.wrap-checkout { max-width: 1080px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    text-decoration: none;
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
}
.page-intro { margin: 0 0 20px; padding: 0 0 18px; border-bottom: 1px solid var(--border); }
.page-kicker {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.page-title { font-size: 26px; font-weight: 750; margin: 0; letter-spacing: -.02em; }
.page-type { margin: 4px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.page-price {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.page-price .page-price-cadence {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.include-card { margin-bottom: 20px; }
.product-copy {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}
.product-copy:last-child { margin-bottom: 0; }
.product-copy-secondary { color: var(--muted); }
.product-copy-footer { margin-top: 16px; color: var(--muted); font-size: 13px; }
.details-sub {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--muted);
}
.details-sub:first-child { margin-top: 0; }
.save-card-note {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}
.include-list {
    margin: 0;
    padding: 0 0 0 18px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}
.include-list li + li { margin-top: 6px; }

.layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 920px) {
    .layout { grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr); }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card + .card { margin-top: 20px; }
.card-head { padding: 18px 22px 0; }
.card-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.card-head p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.card-body { padding: 18px 22px 22px; }
.summary { position: sticky; top: 20px; }

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label,
label.flbl {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.req { color: var(--danger); }
.field .hint { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 5px; }
.control,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    background: #fff;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.control:focus,
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.field input[readonly],
.control[readonly] {
    background: var(--bg-soft);
    cursor: default;
}
.field textarea { resize: vertical; min-height: 84px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.check input { margin: 0; width: 16px; height: 16px; }

.input-wrap { position: relative; }
.input-wrap > .control,
.input-wrap > input { padding-right: 38px; }
.valid-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}
.valid-icon.ok { display: block; color: var(--success); }
.valid-icon.err { display: block; color: var(--danger); }

.disclaimer { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.45; }
.disclaimer.footer { margin: 14px 0 0; }

.privilege-hint {
    font-size: 13px;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 16px;
    line-height: 1.45;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.privilege-hint-btn {
    background: none;
    border: 0;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}

.lines { width: 100%; border-collapse: collapse; }
.lines td {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.lines td.amt {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.lines .muted { color: var(--muted); font-size: 12px; margin-top: 2px; }
.totals { margin-top: 4px; }
.totals .ln {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    padding: 4px 0;
    color: var(--muted);
}
.totals .ln.grand {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    padding-top: 12px;
    margin-top: 6px;
    border-top: 2px solid var(--border);
}

.pay-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pay-venue {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}
.pay-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.pay-summary .pay-mode { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pay-summary .pay-amt { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay-summary .pay-note { margin: 2px 0 0; }
.saved-card { margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.saved-card-display { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.saved-card-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; line-height: 1.35; }
.saved-card-text { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.saved-card-brand { height: 28px; width: auto; max-width: 46px; object-fit: contain; flex: 0 0 auto; }
.saved-card-brand[hidden] { display: none; }
.saved-card-title { font-size: 14px; font-weight: 650; text-transform: capitalize; }
.saved-card-exp { font-size: 12px; color: var(--muted); }
.promo-toggle { border: 0; background: transparent; color: var(--brand); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.promo-toggle:hover { text-decoration: underline; }
#payUseNewCardBtn { margin-top: 2px; align-self: flex-start; }
#cardElement {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    min-height: 44px;
}
#cardElement.StripeElement--focus,
#cardElement:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.gb-processor-powered-by-wrap { margin-top: 8px; text-align: center; }
.gb-processor-powered-by-wrap img { display: block; height: auto; margin: 0 auto; }
.card-error,
#cardError { color: var(--danger); font-size: 12px; min-height: 14px; margin-top: 6px; }
.card-status,
#cardStatus { color: var(--muted); font-size: 12px; margin-top: 6px; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn {
    border: 0;
    background: var(--brand);
    border-radius: 12px;
    width: 100%;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .15s, transform .05s;
}
.btn:hover:not(:disabled) { background: var(--brand-dark); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 14px;
    padding: 11px 16px;
}
.btn.secondary:hover:not(:disabled) { background: var(--bg-soft); }
.btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.btn.secondary:disabled { opacity: .65; }

.banner {
    display: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.banner.show { display: block; }
.banner.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.banner.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.banner.ok { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.store-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}
.store-nav-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    line-height: 1.3;
}
.store-nav-btn:hover { border-color: #bfdbfe; color: var(--brand); }
.store-nav-btn.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.store-notice {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.45;
}
.store-notice a { font-weight: 700; }

.store-sections { display: grid; grid-template-columns: 1fr; gap: 28px; }
.store-section-title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.store-section-body.loading,
.store-section-body.unavailable { color: var(--muted); font-size: 14px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .product-grid { grid-template-columns: 1fr; }
}
.product-tile {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    height: 100%;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-tile:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.product-tile.is-clickable { cursor: pointer; }
.product-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.product-kicker .badge { margin-left: 0; }
.product-name { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.3; }
.product-blurb {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.product-price { margin: 14px 0 16px; color: var(--text); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.product-price .product-cadence { color: var(--muted); font-size: 13px; font-weight: 600; }
.product-actions { margin-top: auto; }
.product-tile .btn {
    width: auto;
    min-width: 118px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.product-story { margin-bottom: 20px; }
.product-story .card-head { padding-bottom: 0; }
.details-body .product-copy,
.details-body p { margin: 0 0 12px; color: var(--text); font-size: 14px; line-height: 1.55; }
.details-body .include-list,
.details-body ul,
.details-body ol {
    margin: 0 0 12px;
    padding: 0 0 0 18px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}
.details-body li + li { margin-top: 6px; }
.details-body ul.include-list + .details-sub,
.details-body .product-copy + .details-sub { margin-top: 18px; }

.summary-product { margin-bottom: 12px; }
.summary-product-name { font-size: 15px; font-weight: 750; }
.summary-product-meta { margin-top: 2px; color: var(--muted); font-size: 13px; }
.summary-recurring {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}
.summary-recurring strong { font-weight: 750; }

.muted { color: var(--muted); font-size: 13px; }
.status { min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.status.err { color: var(--danger); }
.status.ok { color: var(--success); }
.badge.ok { background: #ecfdf3; color: var(--success); }
.badge.err { background: #fef3f2; color: var(--danger); }
