@charset "UTF-8";
/*
 * BoundID demo sites: one shared system, one accent per site.
 * Demo Issuer (vc) uses ink blue, Bound Cellar (demo) uses wine.
 * Green is reserved for a successful check, red for revocation and errors.
 * System font stacks only: the CSP allows no third-party font hosts.
 */

:root {
  --paper: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --field: #fbfaf7;
  --tint: #f1eee8;
  --ink: #15171c;
  --text-2: #4a4740;
  --muted: #5b5850;
  --line: #e2ded5;
  --line-2: #eeebe4;
  --line-strong: #cfc9bd;
  --ok: #2c6e4f;
  --ok-ink: #235a40;
  --ok-soft: #e3efe8;
  --warn-ink: #7a4b0f;
  --warn-dot: #b7791f;
  --warn-soft: #f6ecd9;
  --danger: #a23732;
  --danger-line: #e3bdb8;
  --danger-soft: #f8e9e7;
  --accent: #1d3557;
  --accent-hover: #2a4a72;
  --accent-soft: #eef1f6;
  --accent-ink: #1d3557;
  --radius-control: 12px;
  --radius-card: 20px;
  --page: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
body[data-role=issuer] { --accent: #1d3557; --accent-hover: #2a4a72; --accent-soft: #eef1f6; --accent-ink: #1d3557; }
body[data-role=merchant] { --accent: #6a1b2a; --accent-hover: #7e2536; --accent-soft: #f4ebe9; --accent-ink: #4a111c; --blush: #ebddd8; --page: 1180px; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { --gutter: max(20px, calc((100% - var(--page)) / 2)); margin: 0; min-height: 100vh; background: var(--paper); font-size: 16px; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code { font-family: var(--mono); font-size: .875em; }
img { max-width: 100%; }
:is(button, a, input, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h2[tabindex="-1"]:focus { outline: none; }

.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }

/* Page frame */
.site-header, main, .site-footer { padding-inline: var(--gutter); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 76px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-site-link, .cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #d5d0c5; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.header-site-link:hover, .cart-link:hover { color: var(--ink); border-color: var(--line-strong); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px 44px; margin-top: 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer > :first-child { font-weight: 600; color: var(--ink); }

/* Controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius-control); font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.button-danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger-line); }
.button-danger:hover:not(:disabled) { background: var(--danger-soft); }
.button:disabled { background: #e7e3da; color: var(--muted); border-color: transparent; cursor: not-allowed; }
button:active:not(:disabled) { transform: translateY(1px); }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--text-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:hover:not(:disabled) { color: var(--ink); }
.text-button:disabled { opacity: .55; cursor: wait; }
label { display: block; font-size: 14px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=date] { display: block; width: 100%; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--field); font-size: 16px; }
input::placeholder { color: #7a766d; }
input:disabled { opacity: .7; cursor: not-allowed; }
.field-hint { font-size: 13px; color: var(--muted); }
.form-message { font-size: 14px; color: var(--muted); }
.form-message:empty { display: none; }
.form-message.is-error, .flow-message.is-error { color: var(--danger); }

/* Status pill */
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.status-pill:empty { display: none; }
.status-pill.is-pending { background: var(--warn-soft); color: var(--warn-ink); }
.status-pill.is-pending::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn-dot); animation: bid-pulse 1.6s ease-in-out infinite; }
.status-pill.is-success { background: var(--ok-soft); color: var(--ok); }
.status-pill.is-error { background: var(--danger-soft); color: var(--danger); }
@keyframes bid-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Step indicator, shared by both sites */
.checkout-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.checkout-progress li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid transparent; border-radius: 14px; color: var(--muted); font-size: 15px; line-height: 1.3; }
.checkout-progress li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--line-strong); border-radius: 50%; font-size: 13px; font-weight: 600; }
.checkout-progress li[aria-current=step] { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; }
.checkout-progress li[aria-current=step] > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.checkout-progress li[data-state=done] > span { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ok); color: transparent; }

/* Cards and panels */
.login-card, .workbench, .cart-empty, .public-cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.role-panel { padding: 40px; }
.global-message { margin: 20px 20px 0; padding: 12px 16px; border-radius: var(--radius-control); background: var(--danger-soft); color: var(--danger); font-size: 15px; }
.flow-area { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.flow-empty { display: flex; flex-direction: column; gap: 10px; }
.flow-empty h2, .offer-content h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.flow-empty p:not(.eyebrow), .qr-caption, .result-description, .flow-message { color: var(--text-2); max-width: 520px; }
.offer-content { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.qr-image { display: block; width: 260px; height: auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 6px 0; }
.expiry { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.flow-message:empty { display: none; }
.flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }

.flow-result { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.result-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 22px; font-weight: 700; }
.flow-result.is-rejected .result-icon { background: var(--danger-soft); color: var(--danger); }
.flow-result h3 { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }

.scan-alternative { width: 100%; max-width: 520px; font-size: 14px; color: var(--text-2); }
.scan-alternative summary { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }
.scan-alternative > p { margin-bottom: 10px; }
.scan-alternative label { margin-bottom: 6px; color: var(--ink); }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field); font-family: var(--mono); font-size: 12px; line-height: 1.5; resize: none; overflow-wrap: anywhere; }
.copy-button { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.copy-button:hover:not(:disabled) { border-color: var(--muted); }
.copy-button:disabled { opacity: .5; cursor: not-allowed; }

/* Collapsible sections: issuer tools, shop about */
.demo-details { margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.demo-details > summary::-webkit-details-marker { display: none; }
.demo-details > summary > span { display: flex; flex-direction: column; gap: 2px; }
.demo-details > summary small { font-size: 14px; font-weight: 400; color: var(--muted); }
.demo-details > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .15s ease; }
.demo-details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.demo-details-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 760px; padding: 4px 0 32px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.demo-details-body h3 { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.demo-details-body code { padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }

.credential-card { width: 100%; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.credential-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.credential-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.credential-header > div { display: flex; flex-direction: column; }
.card-overline { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.credential-header strong { font-size: 16px; color: var(--ink); }
.credential-fields > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.credential-fields dt { color: var(--muted); }
.credential-fields dd { color: var(--ink); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.highlight-claim dd { color: var(--ok-ink); }
.credential-footer { padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.issuer-technical { display: flex; justify-content: space-between; gap: 16px; width: 100%; font-size: 14px; }
.issuer-technical dt { color: var(--muted); }
.issuer-technical dd { font-family: var(--mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; text-align: right; }
.confirmation { width: 100%; padding: 16px 18px; border: 1px solid var(--danger-line); border-radius: 14px; background: var(--danger-soft); color: var(--ink); }
.confirmation > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }

/* ===================== Demo Issuer (vc) ===================== */
.issuer-wordmark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.issuer-wordmark:hover { color: var(--ink); }
.issuer-wordmark > span:last-child { display: flex; flex-direction: column; }
.issuer-wordmark small { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.issuer-brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.issuer-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; padding-block: 64px 56px; }
.issuer-intro { display: flex; flex-direction: column; gap: 20px; }
.issuer-intro .eyebrow { color: var(--accent); }
.issuer-intro h1 { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.issuer-intro > p:not(.eyebrow) { max-width: 480px; font-size: 18px; color: var(--text-2); text-wrap: pretty; }

.issuer-specimen-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.issuer-id-specimen { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; width: 100%; max-width: 440px; aspect-ratio: 1.586; padding: 26px 28px; border-radius: 22px; background: var(--accent); color: #fff; box-shadow: 0 30px 60px -28px rgba(21, 23, 28, .55); transform: rotate(-2deg); }
.issuer-id-specimen::before { content: ""; position: absolute; inset: 0; background-image: repeating-radial-gradient(circle at 110% -10%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 14px); pointer-events: none; }
.issuer-id-specimen > * { position: relative; }
.specimen-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.specimen-top strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1; }
.specimen-issuer { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.specimen-chip { flex: none; width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e9d9a6, #c9b06a); }
.specimen-person { display: flex; align-items: center; gap: 16px; }
.specimen-avatar { position: relative; flex: none; width: 58px; height: 68px; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.specimen-avatar::before { content: ""; position: absolute; left: 50%; top: 12px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.specimen-avatar::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 42px; height: 30px; margin-left: -21px; border-radius: 21px 21px 0 0; background: rgba(255, 255, 255, .55); }
.specimen-person > div { display: flex; flex: 1; flex-direction: column; gap: 7px; min-width: 0; }
.specimen-person > div > span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.specimen-person i { display: block; width: 70%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.specimen-person i + i { width: 48%; background: rgba(255, 255, 255, .22); }
.specimen-bottom { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255, 255, 255, .8); }
.specimen-caption { max-width: 340px; font-size: 13px; color: var(--muted); text-align: center; }

.issuer-journey { display: flex; flex-direction: column; gap: 16px; }
.issuer-login-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 40px; align-items: end; padding: 40px; }
.issuer-login-card > div { display: flex; flex-direction: column; gap: 10px; }
.issuer-login-card h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.issuer-login-card p:not(.eyebrow):not(.form-message) { color: var(--text-2); }
#login-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.login-input-row { display: flex; flex-wrap: wrap; gap: 10px; }
.login-input-row input { flex: 1 1 200px; width: auto; }
.login-input-row .button { flex: 0 0 auto; }
.issuer-workbench .flow-area { max-width: 640px; }
.issuance-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px 24px; width: 100%; margin-block: 24px; text-align: left; }
.issuance-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.issuance-field .field-hint { line-height: 1.5; }
.issuance-form-note { grid-column: 1 / -1; margin: 0; }
.issuer-tools { margin-top: 24px; }

/* ===================== Bound Cellar (demo) ===================== */
.cellar-wordmark { display: inline-flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 28px; letter-spacing: .08em; line-height: 1; }
.cellar-wordmark:hover { color: var(--ink); }
.cellar-wordmark > span { margin-top: 4px; padding-left: .42em; font-family: var(--mono); font-size: 10px; letter-spacing: .42em; color: var(--muted); }
.shop-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.shop-nav > a:not(.cart-link) { color: var(--ink); text-decoration: none; }
.shop-nav > a:not(.cart-link):hover { text-decoration: underline; }
#cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.shop-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 56px; align-items: center; padding-block: 64px 72px; }
.shop-hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.shop-hero h1 { font-family: var(--serif); font-size: clamp(46px, 6.4vw, 74px); font-weight: 400; line-height: .98; letter-spacing: -.02em; }
.shop-hero h1 em { color: var(--accent); }
.shop-description { max-width: 470px; font-size: 18px; color: var(--text-2); text-wrap: pretty; }
.hero-product-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 6px; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-product-info h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; }
.hero-product-info p { font-size: 14px; color: var(--muted); }
.hero-product-info > strong { font-size: 26px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.hero-product-info > strong span, .cart-total span { font-size: 14px; font-weight: 500; color: var(--muted); }
.shop-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.shop-cta { min-height: 54px; min-width: 220px; padding-inline: 26px; }
.hero-footnote { font-size: 14px; color: var(--muted); }

.shop-hero-art { position: relative; display: flex; align-items: flex-end; justify-content: center; justify-self: center; width: 100%; max-width: 460px; height: 560px; overflow: hidden; border-radius: 230px 230px 28px 28px; background: var(--blush); }
.shop-hero-art::before { content: ""; position: absolute; top: 60px; left: 50%; width: 340px; height: 340px; margin-left: -170px; border: 1px solid rgba(106, 27, 42, .14); border-radius: 50%; }
.hero-art-number { position: absolute; top: 140px; left: 34px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: #6e5a55; writing-mode: vertical-rl; }
.bottle-stage { position: relative; margin-bottom: 64px; transform: rotate(5deg); }
.wine-bottle { display: flex; flex-direction: column; align-items: center; }
.bottle-neck { position: relative; width: 38px; height: 92px; margin-top: 34px; border-radius: 4px 4px 0 0; background: #2e0b12; }
.bottle-neck::before { content: ""; position: absolute; bottom: 100%; left: 4px; width: 30px; height: 34px; border-radius: 6px 6px 2px 2px; background: var(--accent); }
.bottle-body { display: flex; align-items: center; justify-content: center; width: 160px; height: 300px; margin-top: -2px; border-radius: 70px 70px 20px 20px; background: #3a0e17; box-shadow: inset -18px 0 30px rgba(0, 0, 0, .25), inset 14px 0 24px rgba(255, 255, 255, .06); }
.bottle-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 120px; height: 140px; margin-top: 60px; border-radius: 4px; background: #f4ede1; color: #2e0b12; text-align: center; }
.bottle-label > span:first-child { font-family: var(--serif); font-size: 26px; letter-spacing: .08em; line-height: 1; }
.bottle-label-line { width: 40px; height: 1px; background: #2e0b12; opacity: .4; }
.bottle-label small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; }
.bottle-label b { font-family: var(--serif); font-size: 16px; font-style: italic; font-weight: 400; }

.checkout-section { display: flex; flex-direction: column; gap: 20px; padding-block: 48px 8px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(38px, 5vw, 52px); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.checkout-step-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; }
.empty-cart-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-family: var(--mono); }
.cart-empty h3 { font-size: 24px; font-weight: 600; }
.cart-empty p { color: var(--text-2); margin-bottom: 8px; }
#cart-content { display: flex; flex-direction: column; gap: 20px; }
.public-cart-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; }
.cart-product-symbol { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--blush); color: var(--accent-ink); font-family: var(--serif); font-size: 26px; }
.cart-product-copy { display: flex; flex: 1 1 180px; flex-direction: column; min-width: 0; }
.cart-product-copy strong { font-weight: 600; }
.cart-product-copy span { font-size: 14px; color: var(--muted); }
.cart-total { font-size: 20px; font-weight: 600; white-space: nowrap; }
.shop-profile { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ok-soft); color: var(--ok-ink); }
.profile-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 14px; }
.shop-profile strong { font-weight: 600; }

.shop-login-card { padding: 40px; }
.auth-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 48px; align-items: start; }
.shop-login-copy { display: flex; flex-direction: column; gap: 12px; }
.shop-login-copy .eyebrow, .checkout-stage-copy .eyebrow { color: var(--accent); }
.shop-login-copy h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.shop-login-copy p:not(.eyebrow) { color: var(--text-2); }
.shop-login-copy strong { color: var(--ink); }
.shop-login-controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.auth-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border-radius: var(--radius-control); background: var(--tint); }
.auth-modes button { min-height: 44px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-weight: 500; cursor: pointer; }
.auth-modes button[aria-pressed=true] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(21, 23, 28, .12); }
.auth-modes button:disabled { cursor: not-allowed; opacity: .6; }
#auth-username-field, #auth-display-name-field { display: flex; flex-direction: column; gap: 10px; }
.shop-login-controls #login-button { width: 100%; margin-top: 4px; }
.shop-login-card > .form-message { margin-top: 18px; }
.shop-login-card:has(> .auth-request:not([hidden])) > :is(.form-message, #session-retry) { max-width: 640px; margin-inline: auto; display: block; }
.shop-login-card > #session-retry { margin-top: 4px; }

.auth-request { max-width: 640px; margin: 0 auto; }
.auth-request .flow-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.auth-request .flow-topline > strong { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.auth-account { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2); color: var(--text-2); }
.auth-account:empty { display: none; }
.auth-wallet-instruction { color: var(--text-2); }
.auth-request .qr-image { margin: 20px auto; }
.pairing-check { margin: 8px 0 12px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: center; }
.auth-pairing-label { font-size: 14px; color: var(--text-2); }
.auth-pairing-code { display: block; margin: 6px 0 10px; font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: .12em; }
.pairing-check .auth-wallet-instruction { font-size: 14px; line-height: 1.6; }
.auth-request .expiry { margin-top: 8px; }

.checkout-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 48px; align-items: start; }
.checkout-panel:has(> .checkout-stage-copy[hidden]) { grid-template-columns: 1fr; }
.checkout-stage-copy { display: flex; flex-direction: column; gap: 12px; }
.checkout-stage-copy h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.checkout-stage-copy > p:not(.eyebrow) { color: var(--text-2); }
.request-summary { margin-top: 6px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 14px; }
.request-summary > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--muted); }
.request-summary > div + div { border-top: 1px solid var(--line-2); }
.request-summary dt code { font-size: 13px; color: var(--ink); }
.request-summary dd { font-size: 13px; white-space: nowrap; }
.request-summary dd.is-requested { padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-weight: 600; }
.flow-empty p { color: var(--text-2); }

.order-result { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 16px 0 8px; text-align: center; }
.order-result .card-overline { color: var(--accent); }
.order-result h3 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 48px); font-weight: 400; line-height: 1.05; }
.order-result p { color: var(--text-2); }
.order-result code { font-size: 13px; color: var(--muted); }
.checkout-panel:has(> .checkout-stage-copy[hidden]) .flow-area { align-items: center; }

.context-help { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.context-help > strong { font-size: 15px; color: var(--ink); }
.context-help a { font-size: 15px; font-weight: 600; }

#presentation-debug { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
#presentation-debug h3 { margin: 0; font-size: 15px; }
.disclosure-heading { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.disclosed-fields, .hidden-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.disclosed-fields li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok-ink); font-size: 13px; }
.disclosed-fields code { padding: 0; background: none; color: inherit; }
.hidden-fields li { padding: 4px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted); }
.result-empty { color: var(--muted); }

.shop-footer .cellar-wordmark { flex-direction: row; align-items: baseline; font-size: 22px; font-weight: 400; }
.shop-footer .cellar-wordmark > span { margin: 0 0 0 .3em; padding: 0; font-family: var(--serif); font-size: inherit; letter-spacing: .08em; color: var(--ink); }

/* Guest checkout and optional wallet-assisted delivery. */
.guest-choice { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.guest-choice .button { width: 100%; }
.guest-choice p { color: var(--muted); font-size: 13px; text-align: center; }
.button-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.button-secondary:hover { background: var(--surface-2); }
.delivery-section { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.delivery-heading { display: flex; flex-direction: column; gap: 8px; }
.delivery-heading h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.02em; }
.delivery-heading p, .delivery-wallet p { color: var(--text-2); font-size: 14px; }
.delivery-wallet { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.delivery-wallet > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.delivery-wallet .offer-content, .delivery-wallet .button { width: 100%; }
.delivery-form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.delivery-form > div { display: flex; flex-direction: column; gap: 8px; }
.delivery-form input { width: 100%; }
.post-order-account { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.post-order-account > div { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.post-order-account h3 { font-size: 24px; }
.post-order-account p:not(.eyebrow) { color: var(--text-2); }
.post-order-account .button { flex-shrink: 0; }
#workbench:not([hidden]) + .shop-login-card:not([hidden]) { margin-top: 24px; }

/* ===================== Responsive ===================== */
@media (max-width: 760px) {
  .post-order-account { flex-direction: column; align-items: stretch; padding: 24px 22px; }
  .post-order-account .button { width: 100%; }
  .site-header { min-height: 68px; }
  .role-panel, .issuer-login-card, .shop-login-card { padding: 28px 22px; }
  .issuer-overview, .shop-hero { gap: 36px; padding-block: 40px 44px; }
  .shop-hero-art { height: 460px; max-width: 380px; border-radius: 190px 190px 24px 24px; }
  .shop-hero-art::before { width: 280px; height: 280px; margin-left: -140px; }
  .bottle-stage { margin-bottom: 40px; transform: rotate(5deg) scale(.85); transform-origin: bottom center; }
  .checkout-progress li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 14px; }
  .flow-empty h2, .offer-content h2, .flow-result h3 { font-size: 26px; }
  .shop-login-copy h2, .checkout-stage-copy h2 { font-size: 28px; }
}
@media (max-width: 540px) {
  .shop-nav { gap: 14px; }
  .shop-nav > a:first-child { display: none; }
  .header-site-link, .cart-link { padding-inline: 12px; font-size: 14px; }
  .issuer-wordmark small { display: none; }
  .shop-hero-art { height: 380px; max-width: 320px; border-radius: 160px 160px 22px 22px; }
  .shop-hero-art::before { top: 44px; width: 230px; height: 230px; margin-left: -115px; }
  .hero-art-number { top: 110px; left: 22px; }
  .bottle-stage { margin-bottom: 26px; transform: rotate(5deg) scale(.68); }
  .shop-cta { width: 100%; }
  .login-input-row .button { flex: 1 1 100%; }
  .flow-actions { width: 100%; }
  .flow-actions > .button { flex: 1 1 100%; }
  .issuer-id-specimen { padding: 20px 22px; }
  .specimen-top strong { font-size: 28px; }
  .auth-pairing-code { font-size: 30px; }
  .qr-image { width: 240px; }
  .credential-fields > div, .issuer-technical { flex-direction: column; gap: 2px; }
  .credential-fields dd, .issuer-technical dd { text-align: left; }
}
@media (max-width: 380px) {
  .shop-nav > a:nth-child(2) { display: none; }
  .checkout-progress { gap: 6px; }
  .checkout-progress li { padding: 10px 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
