/* Customer surfaces only. Keep theme.css before tailwind.css; these scoped
   components do not change admin styles or the legacy palette shim. */
:root {
  --store-primary: var(--brand-deep, #1a63bd);
  --store-ink: #17263d;
  --store-muted: #596a7f;
  --store-bg: #f6f8fb;
  --store-surface: #fff;
  --store-line: #dde5ef;
  --store-soft: #eef5fc;
  --store-success: #176346;
  --store-danger: #a52b35;
  --store-radius: 20px;
  --store-shadow: 0 8px 28px rgb(24 49 79 / 4%);
  --store-focus: 0 0 0 3px rgb(26 99 189 / 22%);
}
body.customer-site {
  background: var(--store-bg);
  color: var(--store-ink);
  min-height: 100vh;
  margin: 0;
}
.customer-site *,
.customer-site *::before,
.customer-site *::after {
  box-sizing: border-box;
}
.customer-site [hidden] {
  display: none !important;
}
.customer-site button,
.customer-site input {
  font: inherit;
}
.customer-site a {
  text-decoration: none;
}
.customer-site button,
.customer-site a {
  -webkit-tap-highlight-color: transparent;
}
.customer-site :where(button, a, input, summary, textarea):focus-visible {
  outline: 2px solid var(--store-primary);
  outline-offset: 4px;
}
.customer-site button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.site-header {
  background: var(--store-surface);
  border-bottom: 1px solid var(--store-line);
  position: relative;
  z-index: 40;
}
.site-nav-wrap {
  max-width: 1248px;
  margin: auto;
  min-height: 80px;
  padding: 16px 32px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--store-ink);
  font-size: 17px;
  font-weight: 750;
  white-space: nowrap;
}
.site-brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #c7def7;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--store-primary);
  background: var(--store-soft);
}
.site-brand-mark svg {
  width: 22px;
  height: 22px;
}
.site-brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--store-muted);
  letter-spacing: 1px;
  margin-top: 1px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.site-nav a {
  color: var(--store-muted);
  padding: 11px 13px;
  font-size: 14px;
  border-radius: 9px;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--store-bg);
  color: var(--store-ink);
}
.site-nav a[aria-current="page"] {
  color: var(--store-primary);
  background: var(--store-soft);
  font-weight: 650;
}
.site-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.contact-short {
  display: none;
}
.store-button,
.store-secondary,
.site-support,
.site-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  padding: 11px 18px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.site-menu {
  display: none;
}
.store-button {
  background: var(--store-ink);
  color: #fff;
}
.store-button:hover {
  background: #284361;
}
.store-button.primary {
  background: var(--store-primary);
  color: #fff;
}
.store-button.primary:hover {
  background: #15549f;
}
.store-secondary,
.site-menu {
  background: var(--store-surface);
  color: var(--store-ink);
  border-color: var(--store-line);
}
.store-secondary:hover {
  background: var(--store-soft);
}
.site-support {
  color: var(--store-primary);
  background: var(--store-soft);
  padding: 10px 16px;
  border-color: #d3e3f5;
  white-space: nowrap;
}
.store-link {
  color: var(--store-primary);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.store-shell {
  width: 100%;
  max-width: 1248px;
  margin: auto;
  padding: 44px 32px 64px;
}
.store-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 12px 0 38px;
}
.store-eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: var(--store-primary);
  margin: 0 0 12px;
}
.store-hero h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -1.4px;
  margin: 0;
  text-wrap: balance;
}
.store-hero p:not(.store-eyebrow) {
  color: var(--store-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 16px 0 0;
}
.store-path {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  border-left: 1px solid var(--store-line);
  padding-left: 36px;
}
.store-path span {
  color: var(--store-muted);
  font-size: 12px;
  display: block;
}
.store-path strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-top: 6px;
}
.store-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 4px 0 24px;
}
.store-filters {
  display: flex;
  gap: 6px;
  border-radius: 12px;
  background: #edf1f6;
  padding: 4px;
}
.store-filters button {
  border: 0;
  border-radius: 9px;
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--store-muted);
  background: transparent;
  cursor: pointer;
}
.store-filters button[aria-pressed="true"] {
  background: #fff;
  color: var(--store-ink);
  font-weight: 650;
  box-shadow: 0 2px 5px #102e4e08;
}
.store-count {
  color: var(--store-muted);
  font-size: 13px;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  box-shadow: var(--store-shadow);
}
.plan-card.featured {
  border-color: #8fbbee;
  box-shadow: 0 8px 30px #215da60b;
}
.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.plan-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--store-soft);
  color: var(--store-primary);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 750;
}
.plan-badge {
  font-size: 11px;
  color: var(--store-primary);
  background: var(--store-soft);
  border-radius: 20px;
  padding: 4px 9px;
}
.plan-card h2 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.5px;
  font-weight: 700;
  margin: 0 0 8px;
}
.plan-intro {
  font-size: 13px;
  line-height: 1.8;
  color: var(--store-muted);
  margin: 0;
  min-height: 47px;
}
.plan-features {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 24px;
  border-top: 1px solid #edf1f5;
  font-size: 13px;
  color: #41556d;
  line-height: 2.2;
}
.plan-features li::before {
  content: "✓";
  color: var(--store-primary);
  margin-right: 9px;
}
.plan-price {
  margin-top: auto;
  color: var(--store-ink);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.plan-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--store-muted);
  letter-spacing: 0;
  margin-left: 5px;
}
.plan-stock {
  font-size: 12px;
  color: var(--store-success);
  margin: 12px 0 18px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.plan-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.plan-stock.paused {
  color: var(--store-muted);
}
.plan-card .store-button {
  width: 100%;
}
.store-band {
  margin-top: 28px;
  border: 1px solid var(--store-line);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fafdff;
}
.store-band h2 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 6px;
}
.store-band p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--store-muted);
  margin: 0;
}
.store-section-head {
  margin: 46px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.store-section-head h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.store-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.store-step {
  border-top: 1px solid var(--store-line);
  padding-top: 18px;
}
.store-step span {
  font-size: 12px;
  color: var(--store-primary);
  font-weight: 650;
}
.store-step h3 {
  font-size: 15px;
  margin: 10px 0 7px;
  font-weight: 650;
}
.store-step p {
  font-size: 13px;
  color: var(--store-muted);
  line-height: 1.8;
  margin: 0;
}
.store-state {
  border: 1px solid var(--store-line);
  background: #fff;
  border-radius: var(--store-radius);
  text-align: center;
  padding: 48px 24px;
  grid-column: 1/-1;
}
.store-state h1,
.store-state h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}
.store-state p {
  color: var(--store-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.store-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 14px;
  color: var(--store-muted);
  margin-bottom: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
}
.detail-panel,
.checkout-panel,
.order-panel,
.lookup-panel {
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  padding: 32px;
  box-shadow: var(--store-shadow);
  min-width: 0;
}
.detail-panel h1 {
  font-size: 32px;
  letter-spacing: -0.8px;
  line-height: 1.35;
  font-weight: 750;
  margin: 22px 0 12px;
}
.detail-lead {
  font-size: 15px;
  color: var(--store-muted);
  line-height: 1.8;
  margin: 0 0 24px;
}
.detail-price {
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -1.4px;
  font-variant-numeric: tabular-nums;
}
.detail-price small {
  font-size: 14px;
  color: var(--store-muted);
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0;
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px 0;
  margin: 24px 0;
  border-block: 1px solid var(--store-line);
}
.detail-facts dt {
  font-size: 12px;
  color: var(--store-muted);
  margin-bottom: 6px;
}
.detail-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.detail-panel h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 24px 0 10px;
}
.detail-panel ul {
  color: var(--store-muted);
  font-size: 14px;
  line-height: 2;
  padding-left: 20px;
}
.store-disclosure {
  border-top: 1px solid var(--store-line);
  margin-top: 24px;
  padding-top: 16px;
}
.store-disclosure summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--store-primary);
  font-size: 14px;
  font-weight: 600;
}
.store-disclosure p {
  color: var(--store-muted);
  font-size: 14px;
  line-height: 1.9;
}
.checkout-panel {
  position: sticky;
  top: 24px;
}
.checkout-panel h2,
.order-panel h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 24px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 14px;
  margin: 16px 0;
}
.order-line span {
  color: var(--store-muted);
}
.order-line strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.order-total {
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--store-line);
}
.order-total strong {
  font-size: 30px;
  color: var(--store-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.7px;
}
.store-form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 24px 0 9px;
}
.store-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #9cabbc;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  color: var(--store-ink);
}
.store-input:focus {
  border-color: var(--store-primary);
  outline: none;
  box-shadow: var(--store-focus);
}
.store-input[aria-invalid="true"] {
  border-color: var(--store-danger);
}
.store-form .store-button {
  width: 100%;
  margin-top: 18px;
  min-height: 50px;
}
.store-hint {
  color: var(--store-muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 12px 0 0;
}
.store-error {
  color: var(--store-danger);
  background: #fff3f4;
  border: 1px solid #f0ccd1;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 14px;
  margin-top: 14px;
}
.store-error:empty {
  display: none;
}
.store-note {
  background: var(--store-soft);
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
  color: #365577;
  line-height: 1.8;
  margin: 22px 0 0;
}
.order-shell {
  max-width: 800px;
}
.page-title {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.7px;
  margin: 0 0 12px;
}
.page-subtitle {
  color: var(--store-muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 28px;
}
.lookup-row {
  display: flex;
  align-items: end;
  gap: 12px;
}
.lookup-row .field {
  flex: 1;
  min-width: 0;
}
.lookup-row label {
  margin-top: 0;
}
.lookup-row .store-button {
  margin: 0;
  width: auto;
  min-height: 48px;
  white-space: nowrap;
}
.recent-orders {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--store-muted);
}
.recent-orders button {
  font-size: 12px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--store-bg);
  cursor: pointer;
  color: var(--store-ink);
  min-height: 36px;
}
.order-panel {
  margin-top: 24px;
}
.order-status-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 18px;
}
.order-status-head h2 {
  margin: 0 0 7px;
}
.order-status-head p {
  margin: 0;
  font-size: 13px;
  color: var(--store-muted);
}
.status-symbol {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--store-primary);
  background: var(--store-soft);
  font-size: 20px;
}
.status-symbol.success {
  color: var(--store-success);
  background: #eaf8f0;
}
.order-progress {
  display: flex;
  list-style: none;
  margin: 24px 0;
  padding: 0;
  gap: 8px;
}
.order-progress li {
  flex: 1;
  font-size: 12px;
  padding-top: 10px;
  color: var(--store-muted);
  border-top: 3px solid var(--store-line);
}
.order-progress li.current {
  color: var(--store-primary);
  border-color: var(--store-primary);
}
.payment-block {
  text-align: center;
  background: var(--store-bg);
  border: 1px solid var(--store-line);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}
.payment-block img {
  width: 210px;
  height: 210px;
  max-width: 100%;
  margin: 16px auto;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  object-fit: contain;
}
.payment-block strong {
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
.payment-block p {
  font-size: 13px;
  color: var(--store-muted);
}
.code-delivery {
  margin: 22px 0;
  padding: 24px;
  background: #eff9f4;
  border: 1px solid #cbe6d6;
  border-radius: 14px;
}
.code-delivery code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 650;
  margin: 14px 0 18px;
  user-select: all;
}
.code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store-feedback {
  color: var(--store-muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 14px;
}
.store-feedback:empty {
  display: none;
}
.order-meta {
  margin: 20px 0;
}
.order-meta div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  margin: 12px 0;
  font-size: 13px;
}
.order-meta dt {
  color: var(--store-muted);
}
.order-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.store-faq {
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  padding: 8px 26px;
}
.store-faq details + details {
  border-top: 1px solid var(--store-line);
}
.store-faq summary {
  cursor: pointer;
  min-height: 64px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
}
.store-faq details p {
  color: var(--store-muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 22px;
}
.help-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.help-step {
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  padding: 28px;
}
.help-step::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--store-primary);
  font-weight: 700;
  font-size: 14px;
}
.help-step h2 {
  font-weight: 650;
  font-size: 20px;
  margin: 14px 0 10px;
}
.help-step p {
  color: var(--store-muted);
  font-size: 14px;
  line-height: 1.9;
}
.site-footer {
  border-top: 1px solid var(--store-line);
  background: #fff;
}
.site-footer-inner {
  max-width: 1248px;
  margin: auto;
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: start;
}
.site-footer p {
  font-size: 12px;
  color: var(--store-muted);
  margin: 9px 0 0;
  line-height: 1.9;
}
.site-footer strong {
  font-size: 14px;
  font-weight: 650;
}
.site-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer-links a {
  color: var(--store-muted);
  font-size: 13px;
  padding: 10px 0;
}
.support-dialog {
  padding: 28px;
  border: 1px solid var(--store-line);
  border-radius: 22px;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  color: var(--store-ink);
  background: #fff;
  box-shadow: 0 24px 80px #10263c30;
}
.support-dialog::backdrop {
  background: rgb(15 28 46 / 48%);
}
.support-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.support-heading h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.support-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--store-bg);
  font-size: 24px;
  cursor: pointer;
}
.support-tabs {
  display: flex;
  gap: 5px;
  background: var(--store-bg);
  padding: 5px;
  border-radius: 12px;
  margin: 22px 0;
}
.support-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 8px;
  min-height: 44px;
  cursor: pointer;
  color: var(--store-muted);
}
.support-tabs button[aria-pressed="true"] {
  color: var(--store-primary);
  font-weight: 650;
  background: #fff;
  box-shadow: 0 1px 5px #10263c10;
}
.support-qr {
  width: 224px;
  height: 224px;
  max-width: 100%;
  display: block;
  margin: 20px auto;
  object-fit: contain;
}
.support-content {
  text-align: center;
}
.support-content p {
  color: var(--store-muted);
  font-size: 13px;
  line-height: 1.8;
}
.support-content .store-secondary {
  overflow-wrap: anywhere;
  max-width: 100%;
}
/* Existing redemption/renewal workflows keep their IDs and event handlers. */
.customer-site .customer-content {
  max-width: 100%;
}
.customer-site .app-main {
  padding: 40px 24px;
  max-width: 1120px;
}
.customer-site .clean-card {
  box-shadow: var(--store-shadow);
  border-color: var(--store-line);
}
.customer-site .legacy-main {
  padding-top: 36px;
  padding-bottom: 48px;
}
.redeem-field-heading {
  flex-wrap: wrap;
  gap: 8px;
}
.redeem-field-heading > div {
  flex-wrap: wrap;
  gap: 8px;
}
.redeem-field-heading button {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 36px;
}
.customer-site #session-len {
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 10px;
}
@media (max-width: 1150px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .store-path {
    gap: 16px;
    padding-left: 24px;
  }
  .site-nav-wrap {
    gap: 16px;
  }
  .site-nav a {
    padding: 10px;
  }
}
@media (max-width: 900px) {
  .store-hero {
    align-items: start;
  }
  .store-path {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .checkout-panel {
    position: static;
  }
  .site-menu {
    display: inline-flex;
  }
  .site-nav-wrap {
    justify-content: space-between;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    margin: 0;
    padding: 8px;
    min-width: 200px;
    border: 1px solid var(--store-line);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px #10263c18;
  }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .site-actions {
    margin-left: auto;
  }
  .site-nav a {
    min-height: 44px;
  }
  .store-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .site-nav-wrap {
    padding: 14px 18px;
    min-height: 70px;
    gap: 10px;
  }
  .site-brand {
    font-size: 14px;
    gap: 8px;
  }
  .site-brand small {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .site-brand-mark {
    width: 34px;
    height: 34px;
  }
  .site-support {
    padding: 9px 11px;
    font-size: 12px;
  }
  .site-menu {
    padding: 9px 12px;
  }
  .store-shell {
    padding: 28px 18px 40px;
  }
  .store-hero {
    padding: 0 0 24px;
  }
  .store-hero h1 {
    font-size: 33px;
    letter-spacing: -1px;
  }
  .store-hero p:not(.store-eyebrow) {
    font-size: 14px;
  }
  .store-toolbar {
    align-items: start;
  }
  .store-count {
    display: none;
  }
  .store-filters {
    width: 100%;
  }
  .store-filters button {
    flex: 1;
    padding: 9px 10px;
  }
  .store-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plan-card {
    padding: 24px;
  }
  .plan-top {
    margin-bottom: 18px;
  }
  .plan-intro {
    min-height: 0;
  }
  .plan-features {
    margin: 14px 0 18px;
    padding-top: 14px;
  }
  .plan-price {
    font-size: 32px;
  }
  .store-band {
    padding: 20px;
    display: block;
  }
  .store-band .store-link {
    margin-top: 8px;
  }
  .store-section-head {
    margin-top: 34px;
  }
  .store-section-head h2 {
    font-size: 20px;
  }
  .store-steps {
    gap: 20px;
  }
  .detail-panel,
  .checkout-panel,
  .order-panel,
  .lookup-panel {
    padding: 24px 20px;
  }
  .detail-panel h1 {
    font-size: 28px;
  }
  .detail-price {
    font-size: 36px;
  }
  .detail-grid {
    gap: 18px;
  }
  .page-title {
    font-size: 28px;
  }
  .lookup-row {
    flex-direction: column;
    align-items: stretch;
  }
  .lookup-row .store-button {
    width: 100%;
  }
  .help-steps {
    grid-template-columns: 1fr;
  }
  .site-footer-inner {
    padding: 26px 18px;
    flex-direction: column;
    gap: 14px;
  }
  .site-footer-links {
    gap: 18px;
  }
  .store-faq {
    padding: 6px 20px;
  }
  .support-dialog {
    padding: 22px;
  }
  .support-qr {
    width: 208px;
    height: 208px;
  }
  .payment-block {
    padding: 20px 12px;
  }
  .order-status-head {
    gap: 12px;
  }
  .order-status-head h2 {
    font-size: 20px;
  }
  .code-delivery {
    padding: 20px;
  }
  .customer-site .app-main {
    padding: 28px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .customer-site *,
  .customer-site *::before,
  .customer-site *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 600px) {
  .legacy-site .store-hero {
    flex-direction: column;
    gap: 18px;
  }
  .legacy-site .store-hero > .store-secondary {
    align-self: flex-start;
    white-space: nowrap;
  }
  .redeem-field-heading > label {
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .contact-long {
    display: none;
  }
  .contact-short {
    display: inline;
  }
}

/* Preserve the supplied portrait QR cards without cropping or resampling files. */
.support-dialog .support-qr {
  width: 280px;
  height: auto;
  max-width: 100%;
}
.plan-stock.low {
  color: #934500;
}

.site-fallback { display:flex; flex-wrap:wrap; gap:14px; margin-left:auto; color:var(--store-primary); font-size:14px; }

.plan-image { width:100%; height:150px; object-fit:contain; border-radius:12px; margin-bottom:16px; }
.detail-image { width:100%; max-height:280px; object-fit:contain; border-radius:16px; margin:16px 0; }
#recovered-orders { flex-wrap:wrap; max-height:320px; overflow:auto; }
#recovery-form { margin:16px 0; }

