/* The gift-voucher shop (shop.js, 2026-10-16): /shop, a product, the success page with the
   printable voucher. White cards like the rest of the inner pages, every gap 20px (14px on phones),
   sizes from the --step tokens so page.css's phone type scale applies. Loaded by the shop's pages
   only, after page.css. */

.shop-mode { margin: 0; padding: 12px 16px; border-radius: 12px; background: #EEF3F0; border: 1px solid #DCE6E1; color: var(--ink-2);
  font-size: 14.5px; font-weight: 700; }

/* the catalogue: one card per voucher, photo on top */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.shop-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid #E7E3DC; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(34, 51, 46, .04), 0 18px 36px -30px rgba(34, 51, 46, .4); }
.shop-grid.one { grid-template-columns: minmax(0, 1fr); }
.shop-grid.one .shop-card { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: none; }
.sc-media { display: block; background: var(--paper); }
.sc-img, .sc-img img { display: block; width: 100%; height: 100%; }
.sc-img img { aspect-ratio: 16 / 10; object-fit: cover; }
.shop-grid.one .sc-img img { aspect-ratio: auto; min-height: 320px; }
.sc-body { display: grid; gap: 12px; align-content: start; padding: 28px 32px 30px; }
.shop-grid.one .sc-body { align-content: center; padding: 36px 40px; }
.sc-body h2 { font-size: var(--step-3); margin: 0; }
.sc-body h2 a { color: inherit; text-decoration: none; }
.sc-body h2 a:hover { color: var(--accent); }
.sc-price { margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: var(--step-2); font-variant-numeric: tabular-nums; }
.sc-body p { margin: 0; }
.sc-cta { margin-top: 6px; }

/* how it works: three numbered steps inside a text card */
.shop-steps { list-style: none; counter-reset: st; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
.shop-steps li { counter-increment: st; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: start; align-content: start; }
.shop-steps li::before { content: counter(st); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #F6E9E7; color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.shop-steps b { font-family: var(--font-display); color: var(--ink); font-size: 16.5px; margin-top: 6px; }
.shop-steps span { font-size: 14.5px; color: var(--ink-3); }
.shop-phone { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.shop-phone a, .shop-phone-only a { color: var(--ink-2); font-weight: 700; }

/* a product: the photo and its words beside the form, both white cards */
.shop-product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.shop-media-card { background: #fff; border: 1px solid #E7E3DC; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(34, 51, 46, .04), 0 18px 36px -30px rgba(34, 51, 46, .4); }
.smc-img, .smc-img img { display: block; width: 100%; }
.smc-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.smc-body { display: grid; gap: 10px; padding: 22px 28px 26px; }
.smc-body p { margin: 0; }
.shop-form-card h2 { font-size: var(--step-2); }
.shop-form.enq { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; gap: 18px; }
.shop-form.enq label { font-size: 14px; }
.shop-form .opt { font-weight: 600; color: var(--ink-3); }
.shop-form textarea { min-height: 96px; }

/* the options: themed radio tiles (the input is hidden, its label is the control) */
.vo-tiles { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.vo-tiles.amounts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vo-tiles legend { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.shop-form .vo-tile { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid #CFC9BF; border-radius: 10px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink); }
.shop-form .vo-tile.is-amount { justify-content: center; font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.vo-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.vo-tile:hover { border-color: var(--ink-3); }
.vo-tile:has(input:checked) { border-color: var(--ink); background: #EEF3F0; box-shadow: inset 0 0 0 1px var(--ink); }
.vo-tile:has(input:focus-visible) { outline: 3px solid rgba(62, 90, 82, .35); outline-offset: 2px; }
.vo-price { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vo-tile:has(input:checked) .vo-price { color: var(--ink); }
.shop-pay-note { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.shop-form .enq-send .btn { min-width: 240px; }
.shop-form .form-msg { margin: 0; }
.shop-phone-only { margin: 0; padding: 12px 14px; border-radius: 10px; background: #F6E9E7; color: var(--ink); font-weight: 600; }
.shop-opts { margin: 0; display: grid; }
.shop-opts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #EFEBE4; }
.shop-opts dd { margin: 0; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop-back { margin: 0; }
.shop-back a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.shop-back a:hover { color: var(--accent); }
.shop-terms p { color: var(--ink-3); font-size: 15px; }

/* the voucher: an A5 card in the clinic's look, on screen and on paper */
.voucher-wrap { display: grid; justify-items: center; }
.voucher { position: relative; width: 100%; max-width: 760px; aspect-ratio: 210 / 148; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 14px;
  padding: 34px 40px 28px; border-radius: 18px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(232, 180, 174, .22) 0, rgba(232, 180, 174, 0) 45%), linear-gradient(135deg, var(--ink-2) 0%, #2A3E37 55%, var(--ink) 100%);
  border-top: 4px solid var(--accent); box-shadow: 0 1px 2px rgba(34, 51, 46, .08), 0 24px 48px -28px rgba(34, 51, 46, .55);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.voucher .v-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.voucher .wordmark .wm1 { color: #fff; }
.voucher .wordmark .wm2 { color: #E8B4AE; }
.voucher .v-kind { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #E8B4AE;
  border: 1px solid rgba(232, 180, 174, .55); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.voucher .v-main { display: grid; gap: 10px; align-content: center; }
.voucher .v-value { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.voucher .v-value.is-treatment { font-size: 36px; line-height: 1.15; }
.voucher .v-names { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.voucher .v-names div { display: flex; gap: 8px; align-items: baseline; }
.voucher .v-names dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #C7D2CC; }
.voucher .v-names dd { margin: 0; font-size: 19px; font-weight: 700; color: #fff; }
.voucher .v-msg { margin: 0; font-size: 16px; font-style: italic; color: rgba(255, 255, 255, .9); }
.voucher .v-code { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); }
.voucher .v-code span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.voucher .v-code strong { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.voucher .v-how, .voucher .v-terms { margin: 0; font-size: 13px; color: #C7D2CC; line-height: 1.45; }
.voucher .v-terms { font-size: 11px; }
.voucher .v-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #C7D2CC; border-top: 1px solid rgba(199, 210, 204, .25); padding-top: 10px; }
.voucher .v-demo { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: #F6E4E2; color: var(--accent); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.shop-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 899.98px) {
  .shop-grid, .shop-grid.one .shop-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shop-grid.one .sc-img img { min-height: 0; aspect-ratio: 16 / 10; }
  .shop-card { border-radius: 14px; }
  .sc-body, .shop-grid.one .sc-body { padding: 20px 18px 22px; gap: 10px; }
  .sc-cta .btn { width: 100%; }
  .shop-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-steps b { font-size: 15px; }
  .shop-steps span { font-size: 13.5px; }
  .shop-product { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shop-media-card { border-radius: 14px; }
  .smc-img img { aspect-ratio: 16 / 9; }
  .smc-body { padding: 16px 18px 18px; }
  .vo-tiles.amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vo-tiles { grid-template-columns: minmax(0, 1fr); }
  .shop-form .vo-tile { font-size: 14px; min-height: 48px; }
  .shop-form .vo-tile.is-amount { font-size: 16px; }
  .shop-form .enq-send .btn { width: 100%; min-width: 0; }
  .shop-mode { font-size: 13px; }
  .voucher { aspect-ratio: auto; padding: 46px 18px 18px; gap: 12px; border-radius: 14px; }
  .voucher .v-top { flex-direction: column; gap: 10px; }
  .voucher .v-value { font-size: 52px; }
  .voucher .v-value.is-treatment { font-size: 24px; }
  .voucher .v-names dd { font-size: 16px; }
  .voucher .v-msg { font-size: 14px; }
  .voucher .v-code { flex-direction: column; align-items: flex-start; gap: 2px; }
  .voucher .v-code strong { font-size: 22px; }
  .shop-actions .btn { width: 100%; }
}

/* Paper: only the voucher, A5 landscape, full colour */
@media print {
  @page { size: A5 landscape; margin: 0; }
  html, body { height: 148mm; overflow: hidden; background: #fff; }
  body * { visibility: hidden; }
  .voucher, .voucher * { visibility: visible; }
  .voucher { position: fixed; inset: 0; width: 210mm; height: 148mm; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; padding: 12mm 14mm 10mm; }
  .voucher .v-top { flex-direction: row; }
  .voucher .v-code { flex-direction: row; align-items: center; }
}

/* buttons that are <button>s carry no browser border */
.shop-form button.btn, .shop-actions button.btn { border: 0; cursor: pointer; font-family: var(--font-body); }
