/* Sized for a 7" touch screen. 1rem = 16px at 800x480 and scales up
   proportionally on larger displays (e.g. Touch Display 2 at 1280x720).
   Colours and serif follow the Monewden Airfield logo: black and grey
   ink on cream. */

@font-face {
  font-family: "Caladea";
  src: url("fonts/caladea-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Caladea";
  src: url("fonts/caladea-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #fffde8;       /* logo background */
  --ink: #241e20;         /* "Monewden" and the aeroplane */
  --grey: #6e6f71;        /* "Airfield" */
  --paper: #fffff7;       /* raised surfaces */
  --cream-2: #f4f0d2;     /* pressed / secondary fill */
  --line: #d8d2b2;
  --line-strong: #a9a38a;
  --text: var(--ink);
  --muted: var(--grey);
  --ok: #2f6b3b;
  --ok-bg: #e7f0dc;
  --warn: #8a5a00;
  --warn-bg: #fbefc9;
  --bad: #b3261e;
  --bad-bg: #fbe3dc;
  --radius: 0.75rem;
  --serif: "Caladea", Cambria, Georgia, "DejaVu Serif", serif;
  --sans: "Inter", "Segoe UI", Roboto, "DejaVu Sans", "Liberation Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  font-size: min(2vw, 3.3333vh);
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body.kiosk, body.kiosk * { cursor: none !important; }

.hidden { display: none !important; }
.bad { color: var(--bad); }
.small { font-size: 0.9rem; color: var(--muted); }

h1, h2 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: 0.005em; }
p { margin: 0; }

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ---------- top bar ---------- */

.topbar {
  flex: 0 0 2.8rem;
  height: 2.8rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.brand {
  padding: 0;
  border: 0;
  background: none;
}
.brand img { height: 2.3rem; width: auto; display: block; }
/* The home screen shows the big logo; keep the small one tappable for staff. */
body[data-screen="home"] .brand img { opacity: 0; }
body[data-screen="home"] .brand { pointer-events: none; }
.topbar-right { display: flex; gap: 0.75rem; align-items: center; }
.clock { font-family: var(--serif); font-size: 1.4rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.clock-date { font-weight: 400; color: var(--grey); margin-right: 0.3rem; }
.web .clock { font-size: 1.15rem; white-space: nowrap; }
.mode-badge {
  background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn);
  font-weight: 800; font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 0.3rem;
}

#screen {
  flex: 1;
  min-height: 0;
  padding: 0.6rem 1rem 0.8rem;
  display: flex;
  flex-direction: column;
}
#screen > div { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.screen-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.screen-head h1 { font-size: 1.7rem; }

/* ---------- buttons ---------- */

.btn {
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0 1.3rem;
  min-height: 3.3rem;
  background: var(--paper);
  transition: transform 0.05s, background 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; }
.btn.primary { background: var(--ink); color: var(--cream); box-shadow: 0 0.2rem 0 #000; }
.btn.primary:active { background: #000; box-shadow: none; }
.btn.secondary { background: var(--paper); border: 2px solid var(--ink); }
.btn.secondary:active { background: var(--cream-2); }
.btn.ghost { background: transparent; border: 2px solid var(--line-strong); color: var(--grey); min-height: 2.8rem; font-size: 1rem; padding: 0 0.9rem; }
.btn.pay { min-width: 18rem; }

.actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.6rem;
}
.actions .btn { min-height: 3.6rem; }
.actions.stacked { flex-direction: column; align-items: stretch; }
.actions.stacked .btn { font-size: 1.3rem; min-height: 4.2rem; }

/* ---------- home ---------- */

.home { justify-content: space-between; }
.home-title { text-align: center; }
.home-logo { width: 22rem; max-width: 70%; display: block; margin: 0 auto; }
.home-title p { color: var(--muted); font-size: 1.1rem; margin-top: 0.2rem; }
.home-buttons {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.7rem 0;
}
.big-choice {
  font: inherit;
  color: var(--cream);
  border: 0;
  border-radius: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-shadow: 0 0.3rem 0 rgba(0, 0, 0, 0.45);
}
.big-choice:active { transform: translateY(0.2rem); box-shadow: 0 0.1rem 0 rgba(0, 0, 0, 0.45); }
a.big-choice { text-decoration: none; text-align: center; padding: 1rem; }
.big-choice.in { background: var(--ink); }
.big-choice.out { background: var(--grey); }
.plane { font-size: 4rem; line-height: 1; display: inline-block; }
.plane.land { transform: rotate(25deg); }
.plane.depart { transform: rotate(-25deg); }
.big-label { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; }
.big-sub { font-size: 1.1rem; opacity: 0.9; }
.home-foot { text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ---------- registration entry ---------- */

.reg-entry {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}
.reg-hint { color: var(--grey); font-size: 0.9rem; text-align: center; margin: 0 0 0.4rem; min-height: 1.2rem; }
.reg-hint.bad { color: var(--bad); font-weight: 700; }
.reg-display {
  flex: 1;
  height: 4.4rem;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DejaVu Sans Mono", "Liberation Mono", Menlo, monospace;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 0.2rem solid var(--ink);
}
.reg-placeholder { color: #c9c4a8; }
.reg-entry .btn { min-width: 11rem; font-size: 1.3rem; }

.caret {
  display: inline-block;
  width: 0.15rem;
  height: 1em;
  background: currentColor;
  margin-left: 0.1rem;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- keyboard ---------- */

.kb { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.kb-row { flex: 1; display: flex; gap: 0.35rem; justify-content: center; }
.key {
  flex: 1 1 0;
  max-width: 5rem;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 0 var(--line-strong);
}
.key.pressed { background: var(--cream-2); transform: translateY(0.1rem); box-shadow: none; }
.key-bksp, .key-shift, .key-clear { background: var(--cream-2); font-size: 1.3rem; max-width: 7rem; flex-grow: 1.4; }
.key-clear { font-size: 1rem; }
.key-shift.on { background: var(--ink); color: var(--cream); }
.key-space { flex-grow: 5; max-width: none; font-size: 1rem; }
.key-wide { flex-grow: 2.2; max-width: 11rem; font-size: 1.1rem; }
.kb-phone .key { max-width: 9rem; font-size: 1.9rem; }
.kb-phone { padding: 0 12rem; }

/* ---------- field editor overlay ---------- */

.editor {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1rem 0.8rem;
  gap: 0.4rem;
}
.editor-head { display: flex; align-items: center; gap: 0.8rem; }
.editor-head .btn { min-height: 3rem; }
.editor-label { flex: 1; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; text-align: center; }
.editor-display {
  height: 3.6rem;
  background: #fff;
  color: var(--ink);
  border: 0.15rem solid var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 1.9rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}
.editor-hint { color: var(--muted); font-size: 0.95rem; min-height: 1.2rem; text-align: center; }
.editor-hint.bad { color: var(--bad); font-weight: 700; }
.editor .kb { margin-top: 0.2rem; }

/* ---------- form tiles ---------- */

.banner {
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.banner.ok { background: var(--ok-bg); border: 1px solid var(--ok); color: var(--ok); }
.banner.info { background: var(--paper); border: 1px solid var(--line-strong); color: var(--grey); }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn); color: var(--warn); }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 4.7rem;
  gap: 0.6rem;
}
.tile {
  font: inherit;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}
button.tile:active { background: var(--cream-2); }
.tile.filled { border-color: var(--line-strong); }
.tile.missing { border-color: var(--bad); background: var(--bad-bg); }
.tile-label { font-size: 0.85rem; color: var(--grey); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.tile-value { font-size: 1.3rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-value i { font-style: normal; color: #a19b80; font-weight: 500; font-size: 1.05rem; }

.stepper { display: flex; align-items: center; gap: 1rem; }
.stepper button {
  font: inherit;
  width: 3.2rem;
  height: 2.6rem;
  border-radius: 0.5rem;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.7rem;
  font-weight: 700;
}
.stepper button:active { background: #000; }
.stepper span { font-size: 1.7rem; font-weight: 700; min-width: 2rem; text-align: center; }

/* ---------- messages / done ---------- */

.center-screen .message, .message {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}
.message h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 0.2rem; }
.message p { font-size: 1.2rem; line-height: 1.45; color: var(--muted); max-width: 38rem; }

.done-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.75rem; }
.done-screen h1 { line-height: 1.2; margin-bottom: 0.15rem; }
.done-screen p { line-height: 1.45; max-width: 38rem; }
.done-screen .tick { margin-bottom: 0.25rem; }
.done-screen .tick {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-size: 2.6rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.done-screen h1 { font-size: 2.3rem; }
.done-screen .big-line { font-size: 1.4rem; font-weight: 700; }
.done-screen p { font-size: 1.1rem; }
.done-screen .actions { margin-top: 0.9rem; justify-content: center; }
.done-screen .actions .btn { min-width: 14rem; }

/* ---------- paying ---------- */

.paying-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.75rem; }
.pay-amount { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; }
.paying-screen h2 { font-size: 1.7rem; line-height: 1.2; }
.paying-screen p { font-size: 1.15rem; line-height: 1.45; color: var(--muted); max-width: 38rem; }
.paying-screen .actions { margin-top: 0.6rem; justify-content: center; }

.card-anim { position: relative; width: 8rem; height: 5.5rem; }
.card-anim .card {
  position: absolute; left: 1.5rem; top: 0.8rem;
  width: 5rem; height: 3.3rem; border-radius: 0.4rem;
  background: var(--ink);
  box-shadow: inset 0 -0.6rem 0 var(--grey);
  animation: tap 1.8s ease-in-out infinite;
}
.card-anim .waves {
  position: absolute; right: 0; top: 1rem;
  width: 2rem; height: 2rem; border: 0.3rem solid var(--grey);
  border-left-color: transparent; border-bottom-color: transparent;
  border-radius: 50%; transform: rotate(45deg);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1rem); } }
@keyframes pulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

/* ---------- overlays ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(36, 30, 32, 0.55);
  display: flex; align-items: center; justify-content: center;
}
.overlay-card {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 1rem;
  padding: 1.5rem 2rem; text-align: center; display: flex; flex-direction: column; gap: 0.8rem;
}
.overlay-card h2 { font-size: 2rem; }
.overlay-card p { font-size: 1.2rem; color: var(--muted); }
.big-touch { min-height: 4rem; font-size: 1.3rem; }

.spinner {
  width: 4rem; height: 4rem; border-radius: 50%;
  border: 0.45rem solid var(--cream-2); border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; top: 3.4rem; transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: var(--cream); font-weight: 700; font-size: 1.1rem;
  padding: 0.8rem 1.4rem; border-radius: 0.7rem; width: max-content; max-width: calc(100vw - 2rem); text-align: center;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}

/* ---------- payment choices (card / cash side by side) ---------- */

.actions.pay-choices { justify-content: stretch; }
.pay-choice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 4.4rem !important;
}
.pay-choice b { font-size: 1.25rem; }
.pay-choice small { font-size: 0.85rem; font-weight: 500; opacity: 0.8; }

/* ---------- phone / web mode (no ?kiosk=1) ---------- */

html.web { font-size: 16px; }
html.web, html.web body {
  height: auto;
  min-height: 100%;
  overflow: auto;
  overscroll-behavior: auto;
}
.web #app { height: auto; min-height: 100vh; min-height: 100dvh; }
.web #screen { width: 100%; max-width: 40rem; margin: 0 auto; padding: 1rem; }
.web .topbar { position: sticky; top: 0; z-index: 10; padding: 0 1rem; }
.web .screen-head { flex-wrap: wrap; }
.web .screen-head h1 { font-size: 1.45rem; }

.web input, .web label { user-select: text; -webkit-user-select: text; }
.web .tiles { grid-template-columns: 1fr; grid-auto-rows: auto; }
.web .tile { padding: 0.7rem 0.9rem; gap: 0.35rem; }
.web .tile.field { cursor: text; }
.field-input {
  font: inherit;
  font-size: 1.15rem; /* 16px+ stops iOS zooming into the field */
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 0.5rem;
}
/* iOS Safari draws date/time pickers at their own fixed width, so they spill out of
   narrow boxes. Dropping the native look makes them fill the box like other fields. */
.field-input[type="date"], .field-input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: calc(1.5em + 1.4rem + 4px); /* keeps an empty picker the same height as a filled one */
  line-height: 1.5;
}
select.field-input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23241e20' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  cursor: pointer;
}
.field-input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(36, 30, 32, 0.15); }
.field-input::placeholder { color: #a19b80; }
.tile.missing .field-input { border-color: var(--bad); }

.reg-form { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.5rem; }
.reg-input {
  font-family: "DejaVu Sans Mono", "Liberation Mono", Menlo, monospace;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  padding: 0.6rem;
  color: var(--ink);
  background: #fff;
  border: 0.2rem solid var(--ink);
  border-radius: var(--radius);
}
.reg-input::placeholder { color: #c9c4a8; }
.reg-form .btn { min-height: 3.6rem; font-size: 1.25rem; }

.web .home-logo { width: 100%; max-width: 24rem; }
.web .home-buttons { grid-template-columns: 1fr; gap: 0.8rem; }
.web .big-choice { min-height: 8.5rem; }
.web .big-label { font-size: 2.1rem; }
.web .plane { font-size: 3rem; }
.web .home-foot { margin-top: 0.5rem; }

.web .actions {
  position: sticky;
  bottom: 0;
  flex-direction: column;
  align-items: stretch;
  margin-top: 1rem;
  padding: 0.8rem 0 calc(0.8rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--cream) 0.8rem);
}
.web .message { padding: 2rem 0; }
.web .done-screen, .web .paying-screen { padding: 2rem 0; }
.web .done-screen .actions, .web .paying-screen .actions { position: static; background: none; }
.web .kb-phone { padding: 0; }

@media (min-width: 40rem) {
  .web .tiles { grid-template-columns: 1fr 1fr; }
  .web .home-buttons { grid-template-columns: 1fr 1fr; }
  .web .actions { flex-direction: row; justify-content: flex-end; }
}

/* ---------- closure notice and links (home) ---------- */

.home-info .banner { margin: 0 0 0.5rem; text-align: center; }
.home-foot a { color: var(--ink); font-weight: 700; }
.web .home-foot a { display: inline-block; margin-top: 0.8rem; font-size: 1.1rem; }

/* ---------- PPR form ---------- */

.ppr-page h1 { font-size: 2rem; margin: 0.3rem 0 0.4rem; }
.ppr-page .lead { color: var(--grey); font-size: 1.05rem; margin-bottom: 0.9rem; }
.ppr-page .banner { margin-bottom: 0.9rem; }
.ppr-form .tile.wide { grid-column: 1 / -1; }
.ppr-form textarea.field-input { resize: vertical; min-height: 4.5rem; font-family: inherit; }
.reg-like { text-transform: uppercase; font-family: "DejaVu Sans Mono", Menlo, monospace; font-weight: 700; letter-spacing: 0.08em; }
.field-error { color: var(--bad); font-size: 0.9rem; font-weight: 600; }
.field-error:empty { display: none; }
.declaration { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1rem 0 0.4rem; font-size: 1rem; }
.declaration input { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; accent-color: var(--ink); flex: none; }
.form-error { color: var(--bad); font-weight: 700; min-height: 1.2rem; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.brand { display: block; }
.mode-badge { white-space: nowrap; }
@media (max-width: 26rem) {
  .web .mode-badge { font-size: 0.6rem; padding: 0.15rem 0.3rem; }
  .web .topbar-right { gap: 0.4rem; }
}

.done-screen .tick.waiting { background: var(--warn-bg); color: var(--warn); border: 2px solid var(--warn); }
.done-screen .banner { text-align: left; max-width: 34rem; line-height: 1.45; padding: 0.7rem 1rem; }
.declaration a { color: var(--ink); font-weight: 700; text-underline-offset: 0.15em; }

/* Email / phone carried over from a PPR */
.prefill-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.prefill-row .tile-value { min-width: 0; }
.btn.change { min-height: 2.4rem; font-size: 0.9rem; padding: 0 0.8rem; flex: none; }

/* Kiosk sleep layer: shown just before the display turns off, catches the waking tap */
.sleep {
  position: fixed; inset: 0; z-index: 60;
  background: #000; color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  text-align: center; cursor: none;
}
.sleep-name { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; }
.sleep-tap { font-size: 1.4rem; color: #b9b49a; }

/* ---------- booking steps ---------- */

.step-of { margin-left: auto; font-size: 0.9rem; font-weight: 700; color: var(--grey); white-space: nowrap; }
.tile-wide { grid-column: 1 / -1; display: grid; }
.stepper button:disabled { opacity: 0.3; }
.stepper.wide { justify-content: space-between; }
.stepper.wide span { flex: 1; font-size: 1.45rem; }

/* Overnight parking */
.parking { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; text-align: center; }
.parking-lead { font-size: 1.15rem; color: var(--ink); }
.stepper.big { gap: 1.6rem; }
.stepper.big button { width: 4.6rem; height: 3.6rem; font-size: 2.2rem; border-radius: 0.8rem; }
.stepper.big span { font-family: var(--serif); font-size: 2.6rem; min-width: 6rem; display: flex; flex-direction: column; line-height: 1; }
.stepper.big small { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--grey); margin-top: 0.2rem; }

/* Fee breakdown (parking and payment steps) */
.breakdown { border-collapse: collapse; min-width: 18rem; font-size: 1.05rem; }
.breakdown td { padding: 0.25rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown tr.total td { border-bottom: 0; padding-top: 0.45rem; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.fee-summary { gap: 0.6rem; }

/* Shop */
.shop-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; align-content: center; }
.tile.product { align-items: center; text-align: center; gap: 0.5rem; padding: 1rem; }
.product-name { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; }
.product-price { font-size: 1.2rem; color: var(--grey); font-weight: 700; }
.tile.product .stepper { justify-content: center; }

.web .step-of { width: 100%; margin-left: 0; }
.web .tile-wide { grid-column: auto; }
.web .breakdown { width: 100%; min-width: 0; }

.big-icon { width: 4rem; height: 4rem; color: var(--cream); }
.web .big-icon { width: 3rem; height: 3rem; }
select.field-input:invalid { color: #a19b80; } /* "Choose a time" looks like a placeholder */
select.field-input option { color: var(--ink); }
.ppr-note { margin: -0.2rem 0 1rem; padding: 0.6rem 0.8rem; background: var(--paper, #fff); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 0.4rem; color: var(--ink); }
