/* What the customer's three screens need beyond the design system (tokens.css and components.css load first).
   The shop's theme colours (--shop, --on-shop, --shop-text, --shop-soft, --shop-mid, --shop-strong) are set on <html> by the server. */

@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/rubik-latin-wght-normal.woff2") format("woff2");
}

:root {
  --brand: var(--shop);
  --brand-strong: var(--shop-strong);
  --on-brand: var(--on-shop);
}

html { -webkit-text-size-adjust: 100%; background: var(--band); }

body {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--shop-soft);
  overflow-wrap: anywhere;
}

/* Cover: light, tinted with the shop's colour, with two soft circles */
.cover { position: relative; overflow: hidden; padding: var(--space-6) var(--space-4) var(--space-8); }
.cover::before { content: ""; position: absolute; right: calc(-1 * var(--space-12) - var(--space-2)); top: calc(-1 * var(--space-12) - var(--space-2)); width: 200px; height: 200px; border-radius: 50%; background: var(--shop-mid); }
.cover::after { content: ""; position: absolute; right: calc(var(--space-12) + var(--space-2)); top: 96px; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); }
.cover > * { position: relative; }
.badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 22px; font-weight: 700; }
.cover .fx-two { margin-top: var(--space-4); font-size: 34px; line-height: 38px; }
.cover .fx-two span { color: var(--shop-text); }
.intro { margin: 0 0 var(--space-3); font-size: 14px; color: var(--ink-soft); }
.where { margin: var(--space-2) 0 0; font-size: 14px; color: var(--ink-soft); }
.open-line { margin: var(--space-1) 0 0; font-size: 14px; color: var(--ink-soft); }
.hours-note { margin: var(--space-2) 0 0; }
.phone-hint { margin: calc(-1 * var(--space-1)) 0 var(--space-2); font-size: 14px; color: var(--ink-soft); }

/* Sheet: a white sheet with large top corners that overlaps the cover */
.sheet { position: relative; flex: 1; margin-top: calc(-1 * var(--space-6) + var(--space-1)); padding: var(--space-4) var(--space-4) 176px; background: var(--ground); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sheet > p { margin: 0; }

/* Category chips, pinned while scrolling */
.chips { position: sticky; top: 0; z-index: 5; padding: var(--space-3) 0 var(--space-2); background: var(--ground); }
.panel { scroll-margin-top: calc(var(--space-12) + var(--space-6)); }
.panel[hidden] { display: none; }
.panel .heading { margin: var(--space-3) 0 var(--space-1); }

/* Service rows: the whole row is one tap target; the real checkbox is invisible but covers it */
.fx-row { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fx-row:last-child { border-bottom: 0; }
.fx-row input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fx-row:has(input:focus-visible) { outline: var(--focus-ring) solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.fx-row .name b { display: block; font-weight: 500; }
.fx-row .time { display: block; }
.fx-row:has(input:checked) .name b { font-weight: 600; }
.price { font-variant-numeric: tabular-nums; }
.add { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--ground); color: var(--ink); font-size: 20px; line-height: 1; }
.add::before { content: "+"; }
input:checked ~ .add { border-color: var(--brand); background: var(--brand); color: var(--on-brand); font-size: 16px; }
input:checked ~ .add::before { content: "\2713"; }

/* A deal: a card in the shop's own soft colour with its name, its line and its pick rows. The rows carry no price; the deal has one. */
.deal { padding: var(--space-3) var(--space-4) 0; border-radius: var(--radius-md); background: var(--shop-soft); }
.deal + .deal { margin-top: var(--space-4); }
.deal-head b { display: block; }
.deal-head small { display: block; margin: 0 0 var(--space-1); font-size: 14px; line-height: 20px; color: var(--accent-strong); }
/* A deal's rows once she has ticked its number: still readable, but clearly not tappable */
.fx-row:has(input:disabled) { opacity: 0.45; cursor: default; }

/* The form card */
.form { margin-top: var(--space-6); gap: var(--space-3); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }

footer { margin-top: var(--space-6); font-size: 13px; line-height: 18px; color: var(--ink-faint); }
footer span + span::before { content: " \00b7  "; }

/* Floating bar: a dark pill near the bottom, with the fine print under it */
.float { position: fixed; z-index: 10; left: 50%; bottom: 0; width: min(480px, 100%); transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; padding: var(--space-6) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--ground) var(--space-6));  pointer-events: none; }
.float > * { pointer-events: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px 10px 10px var(--space-6); border-radius: var(--radius-pill); background: var(--ink); color: var(--ground); box-shadow: var(--shadow-bar); }
.sum { min-width: 0; }
.sum b { display: block; font-size: 17px; line-height: 22px; font-variant-numeric: tabular-nums; }
.sum small { font-size: 13px; line-height: 18px; opacity: 0.8; }
[data-time]:not(:empty)::before { content: " \00b7  "; }
.bar .fx-btn { flex: none; min-height: 44px; background: var(--ground); color: var(--ink); }
.bar .fx-btn:hover { background: var(--band); }
.bar .fx-btn[disabled] { background: var(--band); color: var(--ink-faint); }
.fine { margin: 0; padding: var(--space-1) var(--space-2); color: var(--ink-soft); font-size: 12px; line-height: 16px; text-align: center; }
.error { margin: 0; font-weight: 600; box-shadow: var(--shadow-card); }
.error[hidden] { display: none; }

/* Sent and status screens */
.message { gap: var(--space-3); }
.message p, .message h2, .message ul { margin: 0; }
.message .fine { background: none; padding: 0; text-align: left; }
.message .status-line { font-weight: 600; }
.message .deal-name { font-weight: 600; color: var(--accent-strong); }
.status-items { padding: 0; list-style: none; }
.meta { font-size: 14px; color: var(--ink-soft); }
.ref { font-size: 14px; color: var(--ink-faint); }
.message .fx-btn { display: flex; }
.message form { margin: 0; }
.message button.fx-btn { width: 100%; }
.quiet-link { color: var(--ink-soft); font-size: 14px; text-decoration: underline; }

/* The shop's colour tints the active suggestion */
.fx-combo { --brand-soft: var(--shop-mid); }
.sent-state { display: flex; flex-direction: column; gap: var(--space-3); }
.sent-state[hidden] { display: none; }
.tick { color: var(--accent-strong); }
