/* Revel Puck box office. Colours, fonts and heading style follow
   revelpuckcircus.com (css/site.css): purple pages, gold, orange, red and
   pink, with the Wonky display font in capitals for headings. */

@font-face {
  font-family: 'Wonky';
  src: url('/fonts/WowThatsWonky.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colours from the website. */
  --page: #4a2b8c;
  --deep: #2e1a5c;
  --ink: #1a1030;
  --gold: #ffc72c;
  --orange: #f26b21;
  --red: #ff5a5f;
  --pink: #ff3e8a;
  --cream: #faf6ee;
  --muted: #d8d3c8;

  /* Names used across the booking and admin pages. */
  --purple-950: var(--ink);
  --purple-900: var(--page);
  --purple-800: var(--deep);
  --purple-700: #5b3a9f;
  --sunglow: var(--gold);
  --coral: var(--red);
  --line: rgba(255, 255, 255, 0.22);
  --ok: #7ce0b5;
  --danger: #ffb3b5;

  --zone-ringside: var(--gold);
  --zone-premium: var(--pink);
  --zone-standard: var(--orange);
  --zone-value: #b9a2ff;
  --zone-wheelchair: #ffffff;
  --zone-companion: #ffffff;

  --radius: 14px;
  --display: 'Wonky', Impact, 'Arial Black', sans-serif;
  --body: Calibri, 'Segoe UI', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--cream);
  font: 18px/1.45 var(--body);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 199, 44, 0.14), transparent 45%),
    radial-gradient(ellipse at 90% 90%, rgba(255, 62, 138, 0.16), transparent 40%),
    var(--page);
  background-color: var(--page);
  background-attachment: fixed;
}
a { color: var(--gold); }
p { margin: 0 0 1em; }

/* Headings: Wonky, in capitals, as on the website. */
h1, h2, h3, .wonky {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 0.95;
  margin: 0 0 0.45em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(40px, 8vw, 72px); color: var(--gold); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); }
h1:focus, h2:focus { outline: none; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small-label { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin: 6px 0 0; }

header.site, footer.site { padding: 14px 16px; }
header.site { border-bottom: 1px solid var(--line); }
.brand { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.5px; color: var(--cream); text-decoration: none; font-size: 1.3rem; }
footer.site { color: var(--muted); font-size: 0.85rem; text-align: center; margin-top: 32px; }

main { max-width: 680px; margin: 0 auto; padding: 24px 16px; }
main.wide { max-width: 1080px; }
.loading { color: var(--muted); }

.show-meta { color: var(--muted); margin-bottom: 24px; }
.show-meta p { margin: 0 0 4px; }
.show-meta .when { color: var(--cream); font-weight: 700; font-size: 1.15rem; }
.show-meta .preview-note { color: var(--pink-text, #ffa9cf); margin-top: 6px; }

.card {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 18px;
}

/* Buttons */
button, .button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 48px;
}
.primary { background: var(--gold); color: var(--ink); font-weight: 700; width: 100%; }
.primary:disabled { background: transparent; color: var(--muted); border: 2px dashed var(--line); cursor: not-allowed; }
.secondary { background: transparent; color: var(--cream); border: 2px solid rgba(255, 255, 255, 0.7); }
.link { background: none; color: var(--gold); text-decoration: underline; padding: 8px 0; min-height: 0; border-radius: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Choose: how many, Chosen Family, then seats */
.top-row { display: grid; gap: 0 18px; }
@media (min-width: 760px) { .top-row { grid-template-columns: 1fr 1fr; } }

.stepper { display: flex; align-items: center; gap: 18px; justify-content: center; }
.stepper button { width: 56px; height: 56px; padding: 0; font-size: 1.7rem; background: var(--purple-700); color: var(--cream); }
.stepper output { font-family: var(--display); font-size: 3rem; line-height: 1; min-width: 2ch; text-align: center; color: var(--gold); }

.family-card {
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.18), rgba(255, 62, 138, 0.14)), var(--deep);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 18px;
}
.family-card h2 { color: var(--gold); margin-bottom: 0.2em; }
.family-card p { margin-bottom: 0.7em; }
.family-price { font-family: var(--display); font-size: clamp(30px, 5vw, 40px); line-height: 1; color: var(--cream); }
.family-price span { font-family: var(--body); font-size: 1rem; color: var(--muted); }
.family-button { background: var(--gold); color: var(--ink); font-weight: 700; width: 100%; }
.family-applied { background: var(--ink); border-radius: 10px; padding: 10px 12px; margin: 0; font-weight: 700; color: var(--gold); }
.family-callout { display: grid; gap: 2px; border: 2px solid var(--gold); background: rgba(255, 199, 44, 0.12); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.family-callout strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--gold); font-size: 1.3rem; }

.seat-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.seat-layout > * { min-width: 0; }
@media (min-width: 900px) { .seat-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.zone-pick h3 { color: var(--gold); }

/* Zones */
.zones { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.zone {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--purple-700);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.zone:not(:disabled):hover { outline: 2px solid var(--gold); }
.zone .swatch { width: 14px; height: 14px; border-radius: 50%; }
.zone .name { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.5px; font-size: 1.25rem; line-height: 1; }
.zone .note { display: block; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--muted); margin-top: 3px; }
.zone .price { font-family: var(--display); font-size: 1.5rem; text-align: right; line-height: 1; }
.zone .price small { display: block; font-family: var(--body); font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.zone:disabled { opacity: 0.5; cursor: not-allowed; }
.family-note { display: none; }
.zone .family-note { display: none; color: var(--gold); font-weight: 700; }
main.group .zone .family-note { display: block; }
.tag { display: inline-block; vertical-align: middle; font-family: var(--display); font-size: 0.8rem; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--pink); color: var(--ink); margin-left: 6px; }
.tag.soldout { background: var(--muted); }

/* Seat map */
.map { width: 100%; height: auto; display: block; }
.map .ring { fill: var(--ink); stroke: var(--gold); stroke-width: 0.014; }
.map .ring-label { font-family: var(--display); font-size: 0.11px; fill: var(--gold); text-anchor: middle; dominant-baseline: middle; }
.map text { fill: var(--muted); font-size: 0.055px; font-family: var(--display); text-anchor: middle; letter-spacing: 0.002px; }
.map .map-label { dominant-baseline: middle; }
/* The transparent edge widens each seat's tap area to just under half the
   gap to the next seat, so taps never land on a neighbour. Rings for chosen
   and focused seats are drawn inside that edge, never over the next seat. */
.map .seat { cursor: pointer; transition: opacity 0.15s ease; stroke: transparent; stroke-width: 0.009; }
.map .seat:focus-visible { outline: none; stroke: #fff; stroke-width: 0.009; }
.map .seat.taken { fill: rgba(255, 255, 255, 0.14); cursor: not-allowed; }
/* Chosen seats: white with a thick zone-coloured ring, so they stand out without growing. */
.map .seat.picked { stroke: currentColor; stroke-width: 0.009; fill: #fff; }
.map .seat.picked:focus-visible { stroke: var(--ink); }
.map .seat.z-ringside { color: var(--zone-ringside); }
.map .seat.z-premium { color: var(--zone-premium); }
.map .seat.z-standard { color: var(--zone-standard); }
.map .seat.z-value { color: var(--zone-value); }
.map[data-focus] .seat { opacity: 0.2; }
.map[data-focus=ringside] .z-ringside, .map[data-focus=premium] .z-premium,
.map[data-focus=standard] .z-standard, .map[data-focus=value] .z-value { opacity: 1; }
/* Walkways: kept quiet so the seats stand out. */
.map .aisle rect, .map .aisle.stairs > path:first-child { fill: rgba(255, 255, 255, 0.06); stroke: none; }
.map .aisle .tread { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 0.004; }
.map .aisle.ramp rect { fill: rgba(124, 224, 181, 0.22); }
.map .aisle.walkway > path { fill: rgba(124, 224, 181, 0.22); }
.map .aisle.catwalk rect { fill: rgba(255, 255, 255, 0.1); }
.map .aisle.walkway rect { fill: rgba(124, 224, 181, 0.16); }
.map .area { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.18); stroke-width: 0.004; }
.map .row-label { font-family: var(--display); font-size: 0.045px; fill: var(--cream); dominant-baseline: middle; opacity: 0.8; }
.map .block-label rect { fill: var(--ink); stroke: rgba(255, 255, 255, 0.35); stroke-width: 0.004; }
.map .block-label text { font-family: var(--display); font-size: 0.05px; fill: var(--cream); text-anchor: middle; dominant-baseline: middle; letter-spacing: 0.003px; }
/* Wheelchair spaces: a symbol, booked with the companion seat beside it. */
.map .wheelchair { cursor: pointer; }
.map .wheelchair-bg { fill: var(--cream); }
.map .wheelchair-head { fill: var(--ink); }
.map .wheelchair-line { fill: none; stroke: var(--ink); stroke-width: 0.0045; stroke-linecap: round; stroke-linejoin: round; }
.map .wheelchair.picked .wheelchair-bg { stroke: var(--gold); stroke-width: 0.012; }
.map .wheelchair.taken { opacity: 0.3; cursor: not-allowed; }
.map .wheelchair:focus-visible { outline: none; }
.map .wheelchair:focus-visible .wheelchair-bg { stroke: #fff; stroke-width: 0.012; }
.map[data-focus] .wheelchair { opacity: 0.2; }
.legend .key-wheelchair { background: var(--cream); }
.legend-small { font-size: 0.82rem; margin: 10px 0 0; gap: 6px 14px; }
.legend .key-stairs { border-radius: 2px; width: 14px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.3) 0 1px, rgba(255, 255, 255, 0.08) 1px 4px); }
.legend .key-ramp { border-radius: 2px; width: 14px; background: rgba(124, 224, 181, 0.45); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.9rem; color: var(--muted); margin: 0 0 8px; padding: 0; list-style: none; }
.legend span { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; }
.legend .taken-dot { background: rgba(255, 255, 255, 0.14); outline: 1px solid var(--line); }
.map-status { text-align: center; color: var(--muted); margin: 8px 0 10px; }

/* Held seats and checkout */
.timer { display: flex; justify-content: space-between; align-items: center; background: var(--ink); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 18px; }
.timer strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.entrance-note { color: var(--cream); font-weight: 700; margin: -4px 0 14px; }
.seat-line { padding: 14px 0; }
.seat-line + .seat-line { border-top: 1px solid var(--line); }
.seat-line .where { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.5px; line-height: 1.05; }
.line-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 6px; }
.line-meta small { color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.seat-line .small-label { margin-top: 12px; }
.seat-line select { margin-top: 4px; }
.line-price { display: flex; align-items: center; gap: 8px; flex: none; }
.line-price strong { font-family: var(--display); font-weight: 400; color: var(--cream); font-size: 1.5rem; line-height: 1; }
.line-price .badge { font-family: var(--display); text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 6px; padding: 4px 8px; font-size: 0.75rem; line-height: 1; white-space: nowrap; }
.saving { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.5px; background: var(--gold); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 6px; font-size: 1.1rem; line-height: 1.15; }

/* Forms */
label { display: block; font-weight: 700; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field small { display: block; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=search], input[type=tel], select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 48px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--gold); }

.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: 8px 0 14px; }
.total strong { font-family: var(--display); font-weight: 400; font-size: 2.2rem; color: var(--gold); }

.preview-banner { font-family: var(--display); text-transform: uppercase; background: var(--pink); color: var(--ink); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; }
.error { background: rgba(255, 179, 181, 0.12); border: 1px solid var(--danger); color: var(--danger); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.notice { color: var(--muted); font-size: 0.95rem; }
#payment-element { margin-bottom: 16px; }

/* Tickets */
.ticket { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; }
.ticket h3 { color: var(--page); margin-bottom: 4px; font-size: 1.6rem; }
.ticket p { margin: 0; font-size: 0.95rem; }
.ticket .qr svg { width: 120px; height: 120px; display: block; }

@media (min-width: 560px) {
  .ticket { grid-template-columns: 1fr 150px; }
  .ticket .qr svg { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: no-preference) {
  .zone, .primary, .family-button { transition: transform 0.12s ease; }
  .zone:not(:disabled):active, .primary:not(:disabled):active, .family-button:active { transform: scale(0.98); }
}

/* Calendar: choose a date, then a time */
.back { margin: 0 0 10px; font-size: 0.95rem; }
.about { max-width: 60ch; }
.cal-layout { display: grid; gap: 0 18px; }
@media (min-width: 900px) { .cal-layout { grid-template-columns: 3fr 2fr; align-items: start; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.cal-head h3 { margin: 0; color: var(--gold); }
.cal-nav { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 1.6rem; line-height: 1; background: var(--purple-700); color: var(--cream); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-bottom: 2px; }
.cal-day {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 62px; padding: 6px 2px; border-radius: 10px;
  background: var(--purple-700); color: var(--cream); font: inherit;
}
.cal-day .num { font-family: var(--display); font-size: 1.25rem; line-height: 1; }
.cal-day .from { font-size: 0.72rem; color: var(--muted); line-height: 1.1; }
.cal-day .from small { display: block; font-size: 0.62rem; opacity: 0.85; }
.cal-day.none { background: transparent; color: #a99bd0; min-height: 0; padding: 8px 2px; }
.cal-day.none .num { font-family: var(--body); font-size: 0.95rem; }
.cal-day.soldout { background: transparent; border: 1px dashed var(--line); color: var(--muted); cursor: not-allowed; }
.cal-day.soldout .num { text-decoration: line-through; }
.cal-day:not(:disabled):not(.none):hover { outline: 2px solid var(--gold); }
.cal-day.selected { background: var(--gold); color: var(--ink); }
.cal-day.selected .from { color: var(--ink); }
.cal-day .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.cal-day.last .dot { background: var(--red); box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.35); }
.legend .key-fast { background: var(--pink); }
.legend .key-last { background: var(--red); }
@media (max-width: 380px) { .cal-grid { gap: 4px; } .cal-day { min-height: 56px; } .cal-day .from { font-size: 0.66rem; } }

.times { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.time {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  width: 100%; text-align: left; background: var(--purple-700); color: var(--cream);
  border-radius: var(--radius); padding: 14px 16px;
}
.time:not(:disabled):hover { outline: 2px solid var(--gold); }
.time:disabled { opacity: 0.55; cursor: not-allowed; }
.time .clock { font-family: var(--display); text-transform: uppercase; font-size: 1.7rem; line-height: 1; color: var(--gold); min-width: 3.4ch; }
.time .details { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 0.9rem; color: var(--muted); }
.time .details .tag { margin-left: 0; }
.time .price { font-family: var(--display); font-size: 1.5rem; text-align: right; line-height: 1; }
.time .price small { display: block; font-family: var(--body); font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.stand-link { text-decoration: none; grid-template-columns: 1fr auto; }

/* Payment link and refunded tickets */
.pay-lines, .plain-list { list-style: none; padding: 0; margin: 0 0 8px; }
.pay-lines li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pay-lines small { color: var(--muted); }
.pay-lines .amount { font-family: var(--display); font-size: 1.4rem; }
.plain-list li { padding: 6px 0; color: var(--muted); }

/* A pounds input with its £ sign, shared with the admin pages. */
.money-input { display: flex; align-items: center; gap: 6px; }
.money-input span { font-family: var(--display); font-size: 1.3rem; }

/* Community Fund gift at checkout. */
.gift { border: 2px solid var(--pink); background: rgba(255, 62, 138, 0.1); border-radius: 10px; padding: 12px 14px 4px; margin: 16px 0 8px; }
.gift legend { font-family: var(--display); text-transform: uppercase; color: var(--cream); font-size: 1.3rem; padding: 0 6px; margin-left: -6px; }
.gift p { margin: 0 0 10px; }
.gift-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gift-choices label { position: relative; }
.gift-choices input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.gift-choices span { display: inline-block; min-width: 64px; min-height: 44px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 999px; text-align: center; font-weight: 600; }
.gift-choices input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gift-choices input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 2px; }
.gift-choices input:disabled + span { opacity: 0.6; }
.gift-other { max-width: 220px; }
.gift-line { display: flex; justify-content: space-between; color: var(--muted); }
.gift-thanks { border-left: 4px solid var(--pink); padding-left: 10px; }

/* Booking steps: 1 date and time, 2 seats, 3 checkout. */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.9rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; flex: 1; padding-bottom: 8px; border-bottom: 3px solid var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); font-weight: 700; font-size: 0.8rem; flex: none; }
.steps li.now { color: var(--cream); font-weight: 700; border-color: var(--gold); }
.steps li.now .n { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.steps li.done { border-color: rgba(255, 199, 44, 0.45); }
.steps li.done .n { border-color: var(--gold); color: var(--gold); }

.count-card .notice { text-align: center; margin: 12px 0 0; }
.family-card { margin-top: 18px; }
.map-status.picked-note { color: var(--cream); font-weight: 700; }

/* Pill buttons: ticket types at checkout and gift amounts. */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label, .gift-choices label { position: relative; margin: 0; }
.pills input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pills label > span { display: grid; min-width: 104px; min-height: 48px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; text-align: center; align-content: center; }
.pills strong { font-size: 1rem; }
.pills small { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.pills input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pills input:checked + span small { color: var(--ink); }
.pills input:focus-visible + span { outline: 3px solid var(--cream); outline-offset: 2px; }
.pills input:disabled + span { opacity: 0.6; }
.type-choice { border: 0; padding: 0; margin: 12px 0 0; }
.type-choice legend { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; padding: 0; }
.concession-note { margin: 4px 0 10px; }
.terms-line { margin: 4px 0 10px; text-align: center; }

/* Booking terms */
.terms { max-width: 46rem; }
.terms h2 { margin-top: 1.6em; font-size: 1.4rem; }
.terms ul { padding-left: 1.2em; }
.terms li { margin-bottom: 0.5em; }

/* Seat map zoom */
.map-frame { position: relative; }
.map-frame .map { border-radius: 12px; }
.map-frame.zoomed .map { outline: 1px solid var(--line); }
.map-zoom { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.map-zoom button { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.4rem; line-height: 1; background: var(--ink); color: var(--cream); border: 2px solid var(--line); }
.map-zoom button:disabled { opacity: 0.4; cursor: default; }
.checkout-row { display: flex; align-items: center; gap: 14px; }
.checkout-row .primary { flex: 1; }
.checkout-row .clear-seats { flex: none; margin: 0; }

/* Questions under the map, and the chosen seats with prices */
.map-choice { background: var(--ink); border: 2px solid var(--gold); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; }
.map-choice p { margin: 0 0 10px; font-weight: 700; }
.map-choice .row { display: flex; flex-wrap: wrap; gap: 8px; }
.map .seat.candidate { stroke: var(--gold); stroke-width: 0.009; stroke-dasharray: 0.006 0.004; }
.picked-summary { margin: 0 0 12px; }
.picked-summary ul { list-style: none; padding: 0; margin: 0; }
.picked-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.picked-summary li small { color: var(--muted); }
.picked-total { display: flex; justify-content: space-between; margin: 8px 0 4px; }
.picked-total strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--gold); }
.map-choice .row button { width: auto; flex: 1 1 auto; }

/* On phones the seat question is a panel fixed to the bottom of the screen,
   so it's always seen, however far the page is scrolled. */
@media (max-width: 899px) {
  .map-choice:not([hidden]) {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; margin: 0;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.45);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Robot check: invisible unless Turnstile needs a click */
.human-check { display: none; position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 40; background: var(--ink); border: 2px solid var(--gold); border-radius: var(--radius); padding: 10px 12px; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45); }
.human-check.needed { display: block; }
.human-check p { margin: 0 0 6px; font-weight: 700; }

/* Chosen Family: the usual price crossed out beside the Chosen Family one */
.was { color: var(--muted); font-weight: 400; font-size: 0.75em; margin-right: 4px; }
.zone .price .fam { display: none; }
main.group .zone .price .solo { display: none; }
main.group .zone .price .fam { display: block; }
.zone .price .fam strong { font-weight: 400; }
.line-price .was { font-family: var(--body); font-size: 0.95rem; }
.cal-layout .time .price .was { font-size: 0.6em; }
.type-choice .fam { display: none; }
.type-choice.family-priced .fam { display: inline; }
.type-choice.family-priced .solo { display: none; }
.type-choice.family-priced .type-price { display: none; }
.legend .key-full { border-radius: 3px; border: 1px dashed var(--line); background: transparent; }
.picked-summary .was { font-size: 0.85rem; }
