.commerce,
.commerce-dialog,
.shop-site-header,
.commerce-toast {
  --commerce-gold: #f2c318;
  --commerce-gold-strong: #dca90d;
  --commerce-success: #21c17a;
  --commerce-danger: #ef6a6a;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.commerce-body { min-height: 100vh; }
.shop-body {
  background:
    radial-gradient(circle at 15% -10%, rgba(242, 195, 24, .13), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(70, 96, 255, .08), transparent 26rem),
    var(--bg);
}

.commerce button,
.commerce a.shop-button,
.commerce-dialog button,
.commerce-dialog a.shop-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 15px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}
.commerce button:hover,
.commerce a.shop-button:hover,
.commerce-dialog button:hover,
.commerce-dialog a.shop-button:hover { border-color: color-mix(in srgb, var(--commerce-gold) 52%, var(--line)); }
.commerce button:active,
.commerce a.shop-button:active,
.commerce-dialog button:active,
.commerce-dialog a.shop-button:active { transform: translateY(1px); }
.commerce button:disabled,
.commerce-dialog button:disabled { cursor: default; opacity: .55; transform: none; }
.commerce button.is-added:disabled,
.commerce-dialog button.is-added:disabled { opacity: 1; }
.commerce :focus-visible,
.commerce-dialog :focus-visible,
.shop-site-header :focus-visible { outline: 3px solid color-mix(in srgb, var(--commerce-gold) 72%, white); outline-offset: 3px; }
.commerce .gold,
.commerce .primary-action,
.commerce-dialog .gold,
.commerce-dialog .primary-action {
  border-color: transparent;
  background: linear-gradient(135deg, #ffe34b 0%, var(--commerce-gold) 48%, #dca90d 100%);
  color: #141100;
  box-shadow: 0 10px 28px rgba(220, 169, 13, .18);
}
.commerce .gold:hover,
.commerce .primary-action:hover,
.commerce-dialog .gold:hover,
.commerce-dialog .primary-action:hover { border-color: transparent; box-shadow: 0 13px 34px rgba(220, 169, 13, .25); }
.commerce .text-button,
.commerce-dialog .text-button { min-height: 36px; padding: 6px 4px; border: 0; background: transparent; color: var(--muted); box-shadow: none; }
.ui-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: block; }
.commerce .icon-action,
.commerce-dialog .icon-action { width: 42px; min-width: 42px; min-height: 42px; padding: 0; }

.shop-site-header { position: sticky; top: 0; z-index: 80; padding: 14px 20px 0; pointer-events: none; }
.shop-header-inner {
  width: min(1180px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: auto;
}
html[data-theme="dark"] .shop-header-inner { background: rgba(13, 16, 23, .84); border-color: rgba(255, 255, 255, .1); }
.shop-brand { color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: -.035em; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.shop-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffe85f, #dba509);
  color: #171300;
  display: grid;
  place-items: center;
  font-size: .9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}
.shop-nav { display: flex; align-items: center; gap: 4px; }
.shop-nav a,
.route-back-link {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.route-back-link { gap: 6px; }
.route-back-link svg { width: 18px; height: 18px; }
.shop-nav a:hover,
.shop-nav a.is-active,
.route-back-link:hover { color: var(--text); background: var(--surface2); }
.shop-header-actions { display: flex; align-items: center; gap: 8px; }
.shop-site-header .icon-button,
.shop-site-header .header-cart-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.shop-site-header .icon-button { width: 44px; padding: 0; }
.shop-site-header .header-cart-button { padding: 8px 13px; display: inline-flex; align-items: center; gap: 8px; }
.shop-site-header .icon-button svg,
.shop-site-header .header-cart-button > svg { width: 19px; height: 19px; }
.header-cart-button strong { min-width: 24px; height: 24px; border-radius: 999px; background: var(--commerce-gold); color: #171300; display: grid; place-items: center; font-size: .74rem; }
.theme-light-icon,
html[data-theme="light"] .theme-light-icon { display: none; }
html[data-theme="dark"] .theme-dark-icon { display: none; }
html[data-theme="dark"] .theme-light-icon { display: inline; }
.commerce-route-header .shop-header-inner { width: min(1100px, 100%); }
.checkout-back-link { display: none; }
.checkout-mode .shop-nav,
.checkout-mode .header-cart-button { display: none; }
.checkout-mode .checkout-back-link { display: inline-flex; margin-left: auto; }

.shop-page,
.commerce-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.shop-page { min-height: calc(100vh - 80px); padding: 58px 0 130px; }
.commerce-shell { max-width: 1100px; padding: 46px 0 100px; }
.shop-page-loading { min-height: 260px; color: var(--muted); display: grid; place-content: center; justify-items: center; gap: 14px; }
.loading-orb { width: 38px; height: 38px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--line) 70%, transparent); border-top-color: var(--commerce-gold); animation: commerce-spin .8s linear infinite; }
@keyframes commerce-spin { to { transform: rotate(360deg); } }

.shop-hero {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 34px;
  color: #f8fafc;
  background: linear-gradient(125deg, rgba(9, 11, 16, .98) 20%, rgba(17, 20, 27, .9)), radial-gradient(circle at 80% 20%, rgba(242, 195, 24, .35), transparent 26rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .18);
}
.shop-hero::before,
.shop-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.shop-hero::before { width: 340px; height: 340px; top: -180px; right: -80px; border: 1px solid rgba(255, 221, 63, .35); box-shadow: 0 0 0 50px rgba(255, 221, 63, .035), 0 0 0 100px rgba(255, 221, 63, .025); }
.shop-hero::after { width: 9px; height: 9px; right: 23%; top: 31%; background: var(--commerce-gold); box-shadow: 62px 60px 0 rgba(242, 195, 24, .36), -52px 112px 0 rgba(255, 255, 255, .24); }
.shop-kicker,
.commerce-kicker { color: var(--commerce-gold); font-size: .75rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.shop-hero h1 { max-width: 730px; margin: 16px 0; color: #fff; font-size: clamp(2.35rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.065em; }
.shop-hero p { max-width: 610px; margin: 0; color: #aeb8c8; font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.75; }
.shop-trust-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.shop-trust-row span { padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #d9dfeb; font-size: .78rem; font-weight: 700; }

.shop-catalog { padding-top: 58px; }
.catalog-heading,
.shop-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.catalog-heading h2,
.shop-heading .section-title { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.055em; }
.catalog-heading p,
.shop-heading p { max-width: 610px; margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.catalog-result-count { color: var(--muted); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.shop-controls {
  position: sticky;
  top: 88px;
  z-index: 30;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
}
.shop-search-wrap { position: relative; }
.shop-search-wrap span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.commerce input,
.commerce select,
.commerce-dialog input,
.commerce-dialog select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface2); color: var(--text); font: inherit; }
.shop-search-wrap input { padding-left: 40px; }
.shop-sort { width: 190px; }
.category-filters { grid-column: 1 / -1; padding-top: 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.commerce .filter-chip { min-height: 38px; padding: 8px 13px; border-radius: 999px; color: var(--muted); white-space: nowrap; font-size: .78rem; box-shadow: none; }
.commerce .filter-chip.is-active { border-color: var(--commerce-gold); background: color-mix(in srgb, var(--commerce-gold) 14%, var(--panel)); color: var(--text); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--commerce-gold) 42%, var(--line)); box-shadow: 0 20px 44px rgba(0, 0, 0, .12); }
.product-media { position: relative; overflow: hidden; display: block; background: #080e18; aspect-ratio: 16 / 10; }
.product-media img,
.product-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-body { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.product-body h3 { min-height: 2.8em; margin: 0; font-size: .96rem; line-height: 1.4; letter-spacing: -.02em; }
.product-price { margin-top: 12px; font-size: 1.05rem; font-weight: 900; letter-spacing: -.025em; }
.product-meta { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.product-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.product-actions [data-add] { width: 100%; }
.product-actions [data-add].is-added { border-color: color-mix(in srgb, var(--commerce-success) 50%, var(--line)); background: color-mix(in srgb, var(--commerce-success) 12%, var(--panel)); color: var(--commerce-success); box-shadow: none; }
.shop-status,
.shop-error,
.catalog-empty { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface2); color: var(--muted); text-align: center; }
.shop-error { border-color: color-mix(in srgb, var(--commerce-danger) 38%, var(--line)); color: color-mix(in srgb, var(--commerce-danger) 78%, var(--text)); text-align: left; white-space: pre-wrap; }
.shop-note { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.home-store-heading { align-items: center; }
.home-store-heading > div:first-child { max-width: 680px; }
.home-catalog { padding-top: 4px; }
.catalog-meta { min-height: 24px; margin: -12px 0 14px; text-align: right; }

.commerce-dialog { color: var(--text); background: var(--panel); }
.commerce-dialog::backdrop { background: rgba(3, 6, 12, .72); backdrop-filter: blur(5px); }
.shop-dialog { width: min(560px, calc(100% - 24px)); max-height: 90dvh; margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 28px 90px rgba(0, 0, 0, .35); }
.dialog-header { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-header h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.035em; }
.dialog-header .dialog-close { width: 42px; min-height: 42px; padding: 0; border-radius: 50%; font-size: 1.25rem; }
.cart-drawer { width: min(470px, 100%); height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -26px 0 80px rgba(0, 0, 0, .28); }
.cart-drawer-shell { height: 100%; display: flex; flex-direction: column; }
.cart-drawer .dialog-header { margin: 0; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.cart-content { min-height: 0; flex: 1; overflow-y: auto; padding: 0 20px; }
.cart-line { padding: 17px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 13px; align-items: center; }
.cart-line img { width: 82px; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; background: #08101d; }
.cart-line-copy { min-width: 0; }
.cart-line-copy strong { display: block; overflow: hidden; color: var(--text); font-size: .87rem; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: .73rem; }
.commerce-dialog .cart-remove { border-color: #dc2626; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 7px 18px rgba(220, 38, 38, .2); }
.commerce-dialog .cart-remove:hover { border-color: #b91c1c; background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; box-shadow: 0 9px 22px rgba(220, 38, 38, .3); }
.cart-summary { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); box-shadow: 0 -14px 32px rgba(0, 0, 0, .06); }
.cart-total { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 1.15rem; font-weight: 900; }
.cart-summary p { margin: 0 0 14px; color: var(--muted); font-size: .77rem; line-height: 1.55; }
.cart-summary-actions { display: grid; grid-template-columns: auto 1fr; gap: 9px; }
.commerce-dialog a.shop-button.cart-checkout-action { border-color: transparent; background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; box-shadow: 0 12px 28px rgba(22, 163, 74, .24); }
.commerce-dialog a.shop-button.cart-checkout-action:hover { border-color: transparent; background: linear-gradient(135deg, #16a34a, #166534); color: #fff; box-shadow: 0 15px 34px rgba(22, 163, 74, .32); }
.cart-empty { min-height: 55vh; text-align: center; display: grid; place-content: center; justify-items: center; }
.cart-empty-icon { width: 64px; height: 64px; margin-bottom: 14px; border-radius: 20px; background: var(--surface2); display: grid; place-items: center; font-size: 1.5rem; }
.cart-empty h3 { margin: 0; }
.cart-empty p { max-width: 270px; color: var(--muted); line-height: 1.6; }

.floating-cart { display: block; position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 97; width: min(520px, calc(100% - 28px)); transform: translateX(-50%); }
.commerce .floating-cart-button { width: 100%; min-height: 58px; padding: 10px 12px 10px 18px; border-color: rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(12, 15, 21, .93); color: #f8fafc; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); backdrop-filter: blur(16px); display: flex; justify-content: space-between; }
.floating-cart-button span:first-child { text-align: left; }
.floating-cart-button small { display: block; margin-top: 3px; color: #aeb8c8; font-size: .68rem; }
.floating-cart-button strong { padding: 10px 13px; border-radius: 12px; background: var(--commerce-gold); color: #151100; font-size: .78rem; display: inline-flex; align-items: center; gap: 5px; }
.commerce-toast { position: fixed; z-index: 120; left: 50%; bottom: calc(164px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 11px 15px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px; background: #11151d; color: #f8fafc; box-shadow: 0 16px 42px rgba(0, 0, 0, .3); font-size: .82rem; font-weight: 700; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.commerce-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.checkout-page { padding-top: 4px; }
.checkout-single { width: min(620px, 100%); margin: 0 auto; padding-top: 12px; }
.checkout-entry-panel > h1 { margin: 8px 0 6px; font-size: clamp(1.75rem, 4vw, 2.35rem); line-height: 1.12; letter-spacing: -.045em; }
.checkout-entry-intro { margin: 0 0 8px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.commerce-panel { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 16px 42px rgba(0, 0, 0, .07); }
.commerce-panel h2,
.commerce-panel h3 { margin-top: 0; letter-spacing: -.035em; }
.checkout-form label { display: block; margin: 18px 0 7px; font-size: .84rem; font-weight: 800; }
.checkout-form .field-help { margin: 8px 0 18px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.checkout-form .primary-action { width: 100%; min-height: 52px; margin-top: 16px; }
.button-spinner { width: 18px; height: 18px; border: 2px solid rgba(20, 17, 0, .28); border-top-color: #141100; border-radius: 50%; animation: commerce-spin .72s linear infinite; }
.checkout-note { margin: 18px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.checkout-assurances { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: .76rem; }
.checkout-assurances li::before { content: "✓"; margin-right: 8px; color: var(--commerce-success); font-weight: 900; }
.payment-order-list { display: grid; gap: 12px; }
.payment-order-line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 11px; align-items: center; }
.payment-order-line strong { min-width: 0; font-size: .8rem; }
.payment-order-line span { color: var(--muted); font-size: .75rem; }

.payment-header { margin-bottom: 30px; text-align: center; }
.payment-header h1 { margin: 10px 0; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.055em; }
.payment-header .intro { max-width: 620px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.payment-layout { width: min(720px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 18px; }
.payment-qr-card { text-align: center; }
.payment-card-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; }
.payment-card-heading h2 { margin: 4px 0 0; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.payment-eyebrow { color: var(--commerce-gold-strong); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.payment-timer { min-width: 92px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--commerce-gold) 34%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--commerce-gold) 8%, var(--surface2)); text-align: right; }
.payment-timer > span { display: block; color: var(--muted); font-size: .64rem; font-weight: 800; }
.payment-qr-wrap { width: min(100%, 340px); margin: 0 auto; padding: 13px; border: 1px solid #e9edf3; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .08); }
.payment-qr { width: 100%; margin: 0 auto; display: block; }
.payment-qr-card .qr-download-action { min-width: 168px; margin-top: 14px; }
.payment-qr-help { max-width: 480px; margin: 14px auto 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.commerce-clock { color: var(--commerce-gold-strong); font-size: 1.55rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.payment-detail-heading { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.payment-detail-heading h2 { margin: 0; }
.payment-detail-heading p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.payment-detail-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface2); }
.payment-detail-row { min-height: 54px; padding: 10px 11px 10px 14px; display: grid; grid-template-columns: minmax(104px, .45fr) minmax(0, 1fr) 42px; align-items: center; gap: 12px; }
.payment-detail-row + .payment-detail-row { border-top: 1px solid var(--line); }
.payment-detail-row:not(:has(.copy-button)) { grid-template-columns: minmax(104px, .45fr) minmax(0, 1fr); padding-right: 14px; }
.payment-field-label { color: var(--muted); font-size: .72rem; font-weight: 800; }
.payment-field-value { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: .92rem; font-weight: 850; text-align: right; }
.payment-detail-emphasis .payment-field-value { color: var(--commerce-gold-strong); font-size: 1rem; }
.payment-recipient { text-transform: uppercase; }
.payment-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .035em; }
.commerce .copy-button { background: var(--panel); color: var(--muted); }
.commerce .copy-button:hover { color: var(--text); }
.commerce .copy-button.is-copied { border-color: color-mix(in srgb, var(--commerce-success) 50%, var(--line)); color: var(--commerce-success); }
.payment-instructions { max-width: 540px; margin: 16px auto 0; padding: 0; list-style: none; counter-reset: payment-step; color: var(--muted); font-size: .75rem; line-height: 1.5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: left; }
.payment-instructions li { padding: 9px 10px; border-radius: 12px; background: var(--surface2); }
.payment-instructions li::before { counter-increment: payment-step; content: counter(payment-step); width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: color-mix(in srgb, var(--commerce-gold) 18%, var(--panel)); color: var(--commerce-gold-strong); font-weight: 900; display: inline-grid; place-items: center; }
.payment-order-summary { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.payment-order-summary h3 { margin-bottom: 12px; font-size: .9rem; }
.payment-order-line { grid-template-columns: 1fr auto; }
#payment-state { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }

.success-state,
.expired-state,
.recovery-state { max-width: 680px; margin: 30px auto 0; padding: clamp(28px, 6vw, 52px); border: 1px solid var(--line); border-radius: 28px; background: var(--panel); text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .1); }
.state-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 24px; background: color-mix(in srgb, var(--commerce-success) 14%, var(--surface2)); color: var(--commerce-success); display: grid; place-items: center; font-size: 2rem; font-weight: 900; }
.state-icon .ui-icon { width: 31px; height: 31px; }
.expired-state .state-icon,
.recovery-state .state-icon { background: color-mix(in srgb, var(--commerce-gold) 12%, var(--surface2)); color: var(--commerce-gold-strong); }
.success-state h1,
.expired-state h1,
.recovery-state h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.05em; }
.success-state p,
.expired-state p,
.recovery-state p { color: var(--muted); line-height: 1.65; }
.shop-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.shop-actions > * { flex: 1; }

.access-hero { margin-bottom: 26px; }
.access-hero h1 { margin: 10px 0; font-size: clamp(2.1rem, 5vw, 3.7rem); letter-spacing: -.055em; }
.access-hero .intro { color: var(--muted); line-height: 1.65; }
.license-link { margin: 24px 0 30px; padding: 22px; border: 1px solid color-mix(in srgb, var(--commerce-gold) 38%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--commerce-gold) 7%, var(--panel)); }
.license-link p { color: var(--muted); overflow-wrap: anywhere; line-height: 1.6; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.access-state { align-self: flex-start; margin: 10px 0 4px; padding: 5px 9px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: .72rem; font-weight: 800; }
.access-grid .product-card .shop-button { width: 100%; margin-top: 8px; }
.access-grid .commerce-clock { margin: 10px 0; font-size: 1.2rem; }

.play-layout { width: 100%; height: 100dvh; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #080f1b; color: #f1f5f9; display: flex; flex-direction: column; }
.play-layout header { min-height: 48px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.play-layout header a { color: #f5dc5c; text-decoration: none; }
.play-layout header a { display: inline-flex; align-items: center; gap: 7px; }
.play-layout iframe { width: 100%; min-height: 0; flex: 1; border: 0; border-radius: 16px; background: #080f1b; }
.play-layout .commerce-clock { font-size: 1.05rem; }
.play-message { margin: auto; padding: 24px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .shop-nav { display: none; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shop-site-header { padding: 9px 10px 0; }
  .shop-header-inner { min-height: 58px; padding: 7px 8px 7px 12px; border-radius: 18px; }
  .shop-brand { font-size: .95rem; }
  .shop-brand-mark { width: 32px; height: 32px; }
  .header-cart-label,
  .commerce-route-header .shop-brand > span:last-child { display: none; }
  .route-back-link { padding: 8px; font-size: .78rem; }
  .shop-site-header .header-cart-button { padding: 7px 9px; }
  .shop-page,
  .commerce-shell { width: min(100% - 28px, 1180px); }
  .shop-page { padding-top: 30px; padding-bottom: 115px; }
  .commerce-shell { padding-top: 28px; padding-bottom: 60px; }
  .checkout-mode .shop-page { padding-top: 24px; }
  .shop-hero { min-height: 0; padding: 32px 24px; border-radius: 26px; }
  .shop-hero h1 { font-size: clamp(2.25rem, 12vw, 3.55rem); }
  .shop-hero p { font-size: .93rem; line-height: 1.65; }
  .shop-trust-row { margin-top: 24px; gap: 7px; }
  .shop-trust-row span { font-size: .68rem; }
  .shop-catalog { padding-top: 0; }
  .catalog-heading,
  .shop-heading { align-items: start; flex-direction: column; gap: 8px; }
  .shop-controls { top: 75px; grid-template-columns: 1fr; border-radius: 17px; }
  .shop-sort { width: 100%; }
  .category-filters { grid-column: auto; margin-inline: -2px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { display: flex; border-radius: 16px; }
  .product-card:hover { transform: none; }
  .product-media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .product-body { min-width: 0; padding: 11px; }
  .product-body h3 { min-height: 2.9em; font-size: .84rem; }
  .product-price { margin-top: 9px; font-size: .94rem; }
  .product-actions { margin-top: 10px; }
  .product-actions button { min-height: 44px; padding: 8px 7px; font-size: .7rem; }
  .cart-drawer { width: 100vw; max-width: none; height: fit-content; max-height: min(90dvh, 760px); margin: auto 0 0; border-top: 1px solid var(--line); border-left: 0; border-radius: 24px 24px 0 0; }
  .cart-drawer-shell { height: auto; max-height: min(90dvh, 760px); }
  .cart-content { flex: 0 1 auto; max-height: calc(90dvh - 270px); }
  .cart-line { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .cart-line img { width: 70px; }
  .cart-summary-actions { grid-template-columns: 1fr; }
  .cart-summary-actions .text-button { order: 2; }
  .floating-cart { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.has-floating-cart #store { padding-bottom: 190px; }
  .commerce-toast { bottom: calc(158px + env(safe-area-inset-bottom)); }
  .commerce-panel { padding: 20px; border-radius: 20px; }
  .payment-header { text-align: left; }
  .payment-header .intro { margin: 0; }
  .payment-header h1 { margin: 7px 0; font-size: clamp(1.9rem, 10vw, 2.55rem); }
  .payment-layout { gap: 15px; }
  .payment-qr-card { padding: 16px; }
  .payment-detail-card { padding: 19px; }
  .payment-card-heading { margin-bottom: 14px; }
  .payment-card-heading h2 { font-size: 1.25rem; }
  .payment-timer { min-width: 80px; padding: 7px 10px; }
  .payment-timer .commerce-clock { font-size: 1.28rem; }
  .payment-qr-wrap { width: min(100%, 310px); padding: 10px; border-radius: 17px; }
  .payment-instructions { grid-template-columns: 1fr; }
  .payment-detail-row { grid-template-columns: 92px minmax(0, 1fr) 42px; gap: 8px; }
  .payment-detail-row:not(:has(.copy-button)) { grid-template-columns: 92px minmax(0, 1fr); }
  .payment-field-value { font-size: .84rem; }
  .payment-detail-emphasis .payment-field-value { font-size: .92rem; }
  .shop-actions { flex-direction: column; }
  .access-grid { grid-template-columns: 1fr; }
  .access-grid .product-card { grid-template-columns: 116px minmax(0, 1fr); }
  .access-grid .product-card > img { min-height: 210px; }
}

@media (max-width: 380px) {
  .product-body { padding: 9px; }
  .product-body h3 { font-size: .78rem; }
  .product-price { font-size: .88rem; }
  .product-actions button { font-size: .66rem; }
  .payment-detail-row { grid-template-columns: 78px minmax(0, 1fr) 40px; padding-left: 11px; }
  .payment-detail-row:not(:has(.copy-button)) { grid-template-columns: 78px minmax(0, 1fr); }
  .payment-field-label { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .commerce *,
  .commerce-dialog *,
  .commerce-toast { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Storefront and purchase workspace, October 2026. */

#store {
  background:
    linear-gradient(
      180deg,
      var(--bg),
      var(--surface2));
  border-block: 1px solid var(--line);
}
.home-store-heading {
  align-items: center;
  margin-bottom: 26px;
}
.home-store-heading > div:first-child { max-width: 820px; flex: 1; min-width: 0; }
.home-store-heading .section-title {
  max-width: 800px;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.home-store-heading .section-label {
  font-size: .65rem;
  letter-spacing: .16em;
}
.home-store-heading p {
  max-width: 580px;
  font-size: .94rem;
}
.catalog-signature {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}
.catalog-signature strong {
  font-size: 4rem;
  letter-spacing: -.06em;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.catalog-signature span {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
}
.store-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: .75rem;
  margin-bottom: 26px;
}
.store-benefits > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.store-benefits .ui-icon {
  color: #168357;
  width: 16px;
  height: 16px;
}
.home-catalog {
  padding-top: 0;
}
.home-catalog .shop-controls {
  box-shadow: none;
  border-radius: 16px;
}
.home-catalog .product-grid {
  gap: 18px;
}
.product-card {
  border-radius: 18px;
  box-shadow: 0 5px 20px #18233105;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px #18233112;
}
.product-media {
  position: relative;
  overflow: hidden;
}
.product-category {
  display: block;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-body {
  padding: 17px;
}
.product-body h3 {
  margin: 7px 0 0;
  font-size: .96rem;
  line-height: 1.4;
}
.product-runtime {
  color: var(--muted);
  font-size: .7rem;
  margin: 8px 0 14px;
}
.product-price {
  font-size: 1.15rem;
  letter-spacing: -.025em;
}
.product-actions {
  margin-top: 12px;
}
.product-actions .gold {
  box-shadow: none;
  border-radius: 10px;
  font-size: .75rem;
}
.store-help {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  margin: 30px 0 0;
}
.store-help a {
  color: var(--text);
  text-underline-offset: 4px;
}
.purchase-steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
}
.purchase-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.purchase-steps li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
}
.purchase-steps .is-current {
  color: var(--text);
}
.purchase-steps .is-current > span {
  background: var(--commerce-gold);
  border-color: var(--commerce-gold);
  color: #181300;
}
.purchase-steps .is-complete > span {
  color: #168357;
  border-color: #168357;
}
.purchase-steps .ui-icon {
  width: 15px;
  height: 15px;
}
.checkout-single {
  max-width: 1060px;
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.checkout-single .checkout-entry-panel {
  max-width: none;
  margin: 0;
}
.checkout-entry-panel h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -.045em;
}
.checkout-review h2 {
  margin: 8px 0 22px;
  letter-spacing: -.035em;
  font-size: 1.4rem;
}
.checkout-review-items {
  display: grid;
  gap: 15px;
  margin-bottom: 24px;
  max-height: 420px;
  overflow: auto;
}
.checkout-review-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.checkout-review-line img {
  width: 54px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}
.checkout-review-line strong {
  display: block;
  font-size: .78rem;
  line-height: 1.5;
}
.checkout-review-line small {
  display: block;
  font-size: .65rem;
  color: var(--muted);
  margin-top: 3px;
}
.checkout-review-line > span {
  font-size: .75rem;
  white-space: nowrap;
}
.checkout-review .cart-total {
  padding-top: 0;
}
.checkout-review .cart-total strong {
  font-size: 1.3rem;
}
.checkout-review .text-button {
  margin-top: 10px;
}
.commerce-panel {
  box-shadow: 0 10px 35px #18233106;
  border-radius: 20px;
}
.payment-layout {
  width: min(1040px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.payment-header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}
.payment-qr-wrap {
  width: min(100%, 270px);
  box-shadow: none;
  border-radius: 16px;
}
.payment-instructions {
  grid-template-columns: 1fr;
  gap: 6px;
}
.payment-instructions li {
  padding: 8px 10px;
}
.payment-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 16px;
  text-decoration: none;
}
#payment-state {
  padding: 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--commerce-success) 8%, var(--panel));
  color: var(--text);
  line-height: 1.5;
}
.license-link {
  border-radius: 16px;
}
.cart-drawer .cart-summary {
  background: var(--surface2);
}
@media (max-width: 900px) {
  .catalog-signature {
    padding: 18px;
  }
  .catalog-signature strong {
    font-size: 3rem;
  }
  .checkout-single {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
  .checkout-review {
    order: -1;
  }
  .checkout-review-items {
    max-height: 240px;
  }
  .payment-layout {
    max-width: 700px;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .home-store-heading {
    gap: 12px;
  }
  .home-store-heading .section-title {
    font-size: clamp(1.85rem, 7.2vw, 2.6rem);
  }
  .home-store-heading p {
    font-size: .8rem;
  }
  .catalog-signature {
    display: none;
  }
  .store-benefits {
    gap: 9px 14px;
    font-size: .65rem;
    margin-bottom: 18px;
  }
  .store-benefits > span:last-child {
    display: none;
  }
  .home-catalog .product-grid {
    gap: 10px;
  }
  .product-body {
    padding: 12px;
  }
  .product-body h3 {
    font-size: .81rem;
    min-height: 2.8em;
  }
  .product-category {
    font-size: .57rem;
  }
  .product-runtime {
    font-size: .62rem;
    margin: 6px 0 10px;
  }
  .product-price {
    font-size: 1rem;
  }
  .product-actions .gold {
    font-size: .67rem;
    min-height: 44px;
    padding: 9px 7px;
  }
  .purchase-steps {
    gap: 14px;
    font-size: .62rem;
    margin-bottom: 24px;
  }
  .purchase-steps li {
    gap: 5px;
  }
  .purchase-steps li > span {
    width: 24px;
    height: 24px;
  }
  .checkout-single {
    gap: 16px;
  }
  .checkout-review {
    padding: 18px;
  }
  .checkout-review h2 {
    margin-bottom: 16px;
  }
  .checkout-review-line {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .checkout-review-line img {
    width: 42px;
    height: 36px;
  }
  .checkout-review-line strong {
    font-size: .71rem;
  }
  .checkout-review-line small {
    font-size: .59rem;
  }
  .checkout-review-line > span {
    font-size: .69rem;
  }
  .checkout-review .cart-total strong {
    font-size: 1.15rem;
  }
  .payment-layout {
    gap: 16px;
  }
  .store-help {
    font-size: .72rem;
    line-height: 1.6;
  }
  .product-card:hover {
    transform: none;
  }
}

/* QR is the primary action; the purchased experience stays visible and locked. */
.payment-content .purchase-steps { margin-bottom: 24px; }
.payment-content .payment-layout { width: min(980px, 100%); grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; }
.payment-content .payment-qr-card { padding: 24px; }
.payment-content .payment-card-heading { gap: 12px; margin-bottom: 14px; }
.payment-card-heading h1 { margin: 6px 0 0; font-size: clamp(1.15rem, 2.5vw, 1.5rem); line-height: 1.25; letter-spacing: -.035em; }
.payment-content .payment-eyebrow { font-size: .61rem; letter-spacing: .08em; }
.payment-content .payment-timer { min-width: 70px; padding: 6px 9px; border-radius: 10px; }
.payment-content .payment-timer .commerce-clock { font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.payment-total { margin: 0 0 16px; display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.payment-total > strong { font-size: 2rem; font-weight: 850; letter-spacing: -.045em; }
.payment-total > span { font-size: .75rem; color: var(--muted); }
.payment-content .payment-qr-wrap { width: min(100%, 244px); padding: 10px; }
.payment-content .payment-qr-help { margin-top: 12px; font-size: .73rem; }
.payment-content .qr-download-action { min-width: 150px; margin-top: 10px; }
.payment-wait-note { margin: 8px 0 16px; font-size: .7rem; line-height: 1.5; color: var(--muted); }
.payment-manual { border-top: 1px solid var(--line); text-align: left; }
.payment-manual > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-size: .78rem; font-weight: 700; }
.payment-manual > summary::-webkit-details-marker { display: none; }
.payment-manual > summary .ui-icon { width: 16px; height: 16px; transform: rotate(90deg); }
.payment-manual[open] > summary .ui-icon { transform: rotate(-90deg); }
.payment-manual .payment-detail-row { grid-template-columns: 82px minmax(0, 1fr) 40px; gap: 7px; padding: 8px; }
.payment-manual .payment-detail-row:not(:has(.copy-button)) { grid-template-columns: 82px minmax(0, 1fr); }
.payment-manual .payment-field-value { font-size: .78rem; }
.payment-support { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .64rem; }
.payment-support strong { font-family: ui-monospace, monospace; font-weight: 500; overflow-wrap: anywhere; }
.payment-support a { color: var(--text); text-underline-offset: 3px; }
.payment-preview { padding: 24px; min-width: 0; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-count { font-size: .68rem; color: var(--muted); }
.payment-preview > h2 { margin: 8px 0 18px; font-size: 1.3rem; letter-spacing: -.035em; }
.preview-picker { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 4px; }
.commerce .preview-choice { flex-shrink: 0; max-width: 240px; font-size: .72rem; padding: 8px 12px; }
.commerce .preview-choice[aria-pressed="true"] { border-color: var(--commerce-gold-strong); background: color-mix(in srgb, var(--commerce-gold) 12%, var(--panel)); color: var(--text); }
.preview-product[hidden] { display: none; }
.preview-screen { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #0b1220; aspect-ratio: 4 / 3; }
.preview-screen::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #030711a6); pointer-events: none; }
.preview-screen > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview-image-label { position: absolute; top: 10px; left: 10px; border-radius: 6px; padding: 5px 8px; background: #0b1220d9; color: #e2e8f0; font-size: .61rem; }
.preview-lock { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #ffffff30; border-radius: 30px; background: #101724eb; color: #fff; font-size: .7rem; font-weight: 600; }
.preview-lock .ui-icon { width: 14px; height: 14px; }
.preview-placeholder { height: 100%; padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; color: #d4dae5; text-align: center; }
.preview-placeholder > .ui-icon { width: 36px; height: 36px; opacity: .6; }
.preview-product-heading { margin-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.preview-product-heading h3 { min-width: 0; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.preview-product-heading > span { flex-shrink: 0; font-size: .75rem; color: var(--muted); }
.preview-description { margin: 8px 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.preview-runtime { color: var(--muted); font-size: .71rem; margin: 8px 0 16px; }
.commerce .preview-start:disabled { width: 100%; opacity: 1; background: var(--surface2); border-color: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.preview-unlock-note { color: var(--muted); font-size: .7rem; line-height: 1.5; text-align: center; margin: 10px 0 0; }
.payment-manual > summary:focus-visible { outline: 3px solid var(--commerce-gold-strong); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 760px) {
  .payment-content .payment-layout { grid-template-columns: 1fr; max-width: 480px; gap: 16px; }
  .payment-content .payment-qr-card, .payment-preview { padding: 18px; }
  .payment-content .purchase-steps { margin-bottom: 20px; }
  .payment-total { margin-bottom: 12px; }
  .payment-total > strong { font-size: 1.8rem; }
  .payment-preview > h2 { font-size: 1.15rem; }
}
.payment-qr-wrap[hidden], .commerce .qr-download-action[hidden] { display: none; }

/* Paid access keeps the link and each product's independent Start visible. */
.access-content { max-width: 980px; margin: 0 auto; }
.access-content .purchase-steps { margin-bottom: 24px; }
.access-content .access-hero { margin-bottom: 20px; }
.access-confirmed { display: inline-flex; align-items: center; gap: 6px; color: #168357; font-size: .75rem; font-weight: 750; }
html[data-theme="dark"] .access-confirmed { color: var(--commerce-success); }
.access-confirmed .ui-icon { width: 16px; height: 16px; }
.access-content .access-hero h1 { margin: 8px 0 6px; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.2; }
.access-content .access-hero .intro { margin: 0; font-size: .84rem; }
.access-content .license-link { margin: 0 0 28px; padding: 20px; }
.access-link-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.access-link-heading h2 { margin: 0; font-size: 1rem; }
.access-link-heading p { margin: 5px 0 12px; font-size: .78rem; }
.access-link-heading > .ui-icon { color: #168357; }
.access-link-actions { display: flex; align-items: center; gap: 10px; }
.commerce .access-link-actions input { flex: 1; min-width: 0; font-size: .76rem; font-family: ui-monospace, monospace; }
.commerce .access-link-actions button { flex-shrink: 0; font-size: .8rem; }
.license-link .access-device-note { margin: 10px 0 0; font-size: .69rem; }
.access-return-note { padding: 12px 16px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .76rem; background: var(--surface2); }
.access-return-note a { color: var(--text); }
.access-products-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.access-products-heading h2 { font-size: 1.1rem; margin: 0; }
.access-products-heading > span { font-size: .73rem; color: var(--muted); }
.access-content .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.access-content .access-grid:has(> :only-child) { max-width: 620px; grid-template-columns: 1fr; }
.access-content .access-product:hover { transform: none; }
.access-preview-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1220; }
.access-preview-screen > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.access-preview-screen .access-state { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; margin: 0; background: #101724ed; color: #fff; border: 1px solid #ffffff30; }
.access-state .ui-icon { width: 14px; height: 14px; }
.access-preview-screen .access-state-not_started { color: #86efac; }
.access-content .product-body { padding: 20px; }
.access-content .product-body h3 { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
.access-description { margin: 8px 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }
.access-duration { font-size: .8rem; margin: 14px 0 4px; color: var(--muted); }
.access-duration strong { color: var(--text); }
.access-deadline { font-size: .71rem; color: var(--muted); margin: 0 0 16px; }
.commerce .access-start { width: 100%; justify-content: space-between; }
.access-timing-note { font-size: .69rem; line-height: 1.5; color: var(--muted); text-align: center; margin: 10px 0 0; }
.access-active-clock { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.access-active-clock > span { font-size: .75rem; color: var(--muted); }
.access-content .access-active-clock .commerce-clock { font-variant-numeric: tabular-nums; margin: 0; font-size: 1.25rem; }
.access-ended-note { color: var(--muted); font-size: .78rem; margin: 16px 0; }
.access-product-ended .access-preview-screen > img { opacity: .6; }
.access-support { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: .72rem; color: var(--muted); }
.access-support strong { font-family: ui-monospace, monospace; font-weight: 500; }
.access-support a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 620px) {
  .access-content .access-grid { grid-template-columns: 1fr; gap: 16px; }
  .access-content .license-link, .access-content .product-body { padding: 16px; }
  .access-link-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .commerce .access-link-actions input { width: 100%; flex: auto; }
  .access-content .access-hero .intro { font-size: .78rem; }
}
.access-content .product-body h3 { min-height: 0; }
.commerce .access-product a.shop-button.gold { border-color: transparent; background: linear-gradient(135deg, #ffe34b 0%, var(--commerce-gold) 48%, #dca90d 100%); color: #141100; box-shadow: 0 10px 28px rgba(220, 169, 13, .18); }
