/* The customer booking flow's look (CONTRACT.md §3e, milestone 5). It wears the
   page's own design tokens, so on Predator's site it is Predator: --bg, --surface,
   --text, --line, --red (the brand's accent) and --display/--ui fonts, each with a
   plain fallback for a page that has none. Phone first: 44px targets, 16px inputs
   (no zoom-on-focus), nothing wider than the screen. */
.twf, .twf *, .twf *::before, .twf *::after { box-sizing: border-box; }
.twf {
  --f-bg: var(--bg, #f6f5f1); --f-surface: var(--surface, #ffffff); --f-surface-2: var(--surface-2, #efeee9);
  --f-text: var(--text, #151513); --f-text-2: var(--text-2, #45443f); --f-text-3: var(--text-3, #6b6a63);
  --f-line: var(--line, #dddcd5); --f-line-strong: var(--line-strong, #a9a89f);
  --f-accent: var(--red, #c8102e); --f-on-accent: var(--on-red, #ffffff); --f-go: var(--go, #1f7a45);
  --f-display: var(--display, var(--ui, system-ui, sans-serif)); --f-ui: var(--ui, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-family: var(--f-ui); font-size: 16px; line-height: 1.45; color: var(--f-text); text-align: left;
  -webkit-text-size-adjust: 100%; letter-spacing: normal; text-transform: none;
}
.twf :where(button, input, a.twf-btn) { font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.twf :where(button) { cursor: pointer; background: none; border: 0; padding: 0; }
.twf :where(button:disabled) { cursor: not-allowed; }
.twf :focus-visible { outline: 3px solid var(--f-accent); outline-offset: 2px; }
.twf [hidden] { display: none !important; }

/* ---------- where it sits: its own page, or a sheet over the site ---------- */
.twf-page { min-height: 100vh; min-height: 100dvh; background: var(--f-bg); }
.twf-page .twf-sheet { min-height: 100vh; min-height: 100dvh; }
.twf-inline { position: fixed; inset: 0; z-index: 2147483000; background: rgba(0, 0, 0, .6); display: flex; align-items: stretch; justify-content: center; }
.twf-inline .twf-sheet { height: 100%; width: 100%; }
/* a desktop: a drawer over the site's right-hand side, the site still there beside it (milestone 17a) */
@media (min-width: 641px) {
  .twf-inline { justify-content: flex-end; background: rgba(0, 0, 0, .45); }
  .twf-inline .twf-sheet { height: 100%; max-width: 520px; border-left: 1px solid var(--f-line-strong); box-shadow: -24px 0 80px rgba(0, 0, 0, .35); animation: twf-drawer .22s ease-out; }
  .twf-page { padding: 32px 16px; }
  .twf-page .twf-sheet { min-height: 0; max-width: 600px; margin: 0 auto; border: 1px solid var(--f-line); border-radius: 14px; }
}
.twf-sheet { container: twf / inline-size; display: flex; flex-direction: column; background: var(--f-bg); color: var(--f-text); }
.twf-inline .twf-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* ---------- header and progress ---------- */
.twf-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: 10px 12px 6px; padding-top: max(10px, env(safe-area-inset-top)); }
.twf-back, .twf-close { width: 44px; height: 44px; border-radius: 10px; font-size: 28px; line-height: 1; display: grid; place-items: center; color: var(--f-text); background: var(--f-surface); border: 1px solid var(--f-line); }
.twf-back-gap { width: 44px; }
.twf-title { text-align: center; min-width: 0; }
.twf-brand { display: block; font-size: 12px; color: var(--f-text-3); text-transform: uppercase; letter-spacing: .08em; overflow-wrap: anywhere; }
.twf-title b { display: block; font-family: var(--f-display); font-size: 24px; line-height: 1.1; font-weight: 600; overflow-wrap: anywhere; }
.twf-progress { list-style: none; margin: 0; padding: 4px 16px 10px; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 4px; }
.twf-progress li { height: 4px; border-radius: 2px; background: var(--f-line); transition: background .2s; }
.twf-progress li.done, .twf-progress li.on { background: var(--f-accent); }
.twf-progress li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the step ---------- */
.twf-body { flex: 1 1 auto; padding: 8px 16px 24px; }
.twf-h { font-family: var(--f-display); font-weight: 600; font-size: 26px; line-height: 1.1; margin: 8px 0 12px; overflow-wrap: anywhere; }
.twf-h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; margin: 22px 0 8px; }
.twf-lede { color: var(--f-text-2); margin: 0 0 14px; }
.twf-note { color: var(--f-text-3); font-size: 14px; margin: 8px 0; }
.twf-poster { display: block; max-width: 100%; max-height: 60vh; border-radius: 12px; margin: 0 0 12px; object-fit: contain; }
.twf-event { display: inline-block; margin: -4px 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--f-accent); color: var(--f-on-accent); font-size: 14px; font-weight: 600; }
.twf-err { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--f-accent); background: var(--f-surface); color: var(--f-text); font-weight: 600; }

/* the day */
.twf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.twf-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--f-line-strong); background: var(--f-surface); font-weight: 600; }
.twf-chip small { font-weight: 400; color: var(--f-text-3); }
/* a day's quick pick says how busy the day is under its date (21s): the date, then the whole phrase */
.twf-quick .twf-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.twf-quick .twf-chip small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; white-space: nowrap; color: var(--f-text-2); }
/* how busy, as a dot and a word (21s): the dot takes the band's colour, the word stays the text's, so the word is
   what says it and the colour only helps. Plenty is the page's own green; a theme can set the other two. */
.twf { --f-bz-plenty: var(--f-go); --f-bz-filling: var(--bz-filling, #F2C14D); --f-bz-last: var(--bz-last, #FF6238); }
.twf-bz { flex: none; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.twf-bz-plenty { color: var(--f-bz-plenty); }
.twf-bz-filling { color: var(--f-bz-filling); }
.twf-bz-last { color: var(--f-bz-last); }
.twf-bz-full { color: var(--f-text-3); }
.twf-chip.on { border-color: var(--f-accent); box-shadow: inset 0 0 0 1px var(--f-accent); }
.twf-month { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; margin: 4px 0 8px; }
.twf-month b { font-family: var(--f-display); font-size: 20px; font-weight: 600; }
.twf-nav { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--f-line); background: var(--f-surface); font-size: 24px; }
.twf-nav:disabled { opacity: .35; }
.twf-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.twf-dow { text-align: center; font-size: 12px; color: var(--f-text-3); padding: 2px 0; }
.twf-cell { position: relative; min-height: 54px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; min-width: 0; }
.twf-cell b { font-size: 16px; font-weight: 600; line-height: 1.1; }
/* the word under the date: "Last few" with its dot is wider than a phone's box at 11px, so every word is 9.5px there;
   the line keeps the height it had (12.1px), so the date stays where it was */
.twf-cell small { display: inline-flex; align-items: center; gap: 2px; font-size: 9.5px; line-height: 12.1px; white-space: nowrap; color: var(--f-text-2); }
@container twf (min-width: 480px) { .twf-cell small { font-size: 11px; gap: 3px; } }
.twf-cell.off { color: var(--f-text-3); }
button.twf-cell { background: var(--f-surface); border: 1px solid var(--f-line-strong); }
button.twf-cell.on { background: var(--f-accent); border-color: var(--f-accent); color: var(--f-on-accent); }
button.twf-cell.on small, button.twf-cell.on .twf-bz { color: var(--f-on-accent); }
button.twf-cell.full { background: transparent; border-style: dashed; border-color: var(--f-line); color: var(--f-text-3); }
/* an event day's mark: a small diamond in the brand's colour, a shape of its own so it is not read as one of the
   round dots that say how busy a day is (21s). The lines under the calendar carry the same mark beside the event's name. */
.twf-cell i { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--f-accent); font-size: 0; overflow: hidden; }
button.twf-cell.on i { background: var(--f-on-accent); }
/* what the words are short for, once, under the calendar */
.twf-bzkey { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin: 10px 0 8px; padding: 0; list-style: none; font-size: 12px; color: var(--f-text-2); }
.twf-bzkey li { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.twf-bzkey .twf-bz { width: 6px; height: 6px; }
/* what the event mark means, in the key's own type, the mark drawn as on the day's box */
.twf-evdaykey { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--f-text-2); }
.twf-evdaykey i { flex: none; display: block; width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--f-accent); }
/* the month's event days by name: each line is a button that picks its day, as the day's box does */
.twf-evkey { display: grid; gap: 6px; margin: 6px 0 10px; }
.twf-evline { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-surface); text-align: left; font-size: 14px; font-weight: 600; }
.twf-evline i { flex: none; display: block; width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: var(--f-accent); }
.twf-evline span { min-width: 0; overflow-wrap: anywhere; }
.twf-evline.on { border-color: var(--f-accent); box-shadow: inset 0 0 0 1px var(--f-accent); }
.twf-evline:disabled { opacity: .55; }
.twf-cell em { display: none; font-style: normal; font-weight: 400; }
/* a 360 phone (18z): seven columns of 44 fit with the gaps drawn in, where 4px gaps left each day 43 wide */
@container twf (max-width: 372px) { .twf-cal { gap: 2px; } }
/* too narrow for seven 44px columns (a phone, inside a theme's margins): the days on sale as a list of their own */
@container twf (max-width: 352px) {
  .twf-cal { display: flex; flex-wrap: wrap; gap: 8px; }
  .twf-dow, .twf-cell.off, .twf-cell.out { display: none; }
  button.twf-cell { flex: 0 0 auto; min-width: 84px; min-height: 56px; padding: 6px 10px; }
  .twf-cell small { font-size: 11px; gap: 3px; }
  .twf-cell em { display: inline; }
}

/* the session, the pay choice */
.twf-list { display: grid; gap: 10px; }
.twf-opt, .twf-radio { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 14px; border-radius: 12px; border: 1px solid var(--f-line-strong); background: var(--f-surface); text-align: left; }
.twf-opt.on, .twf-radio:has(input:checked) { border-color: var(--f-accent); box-shadow: inset 0 0 0 1px var(--f-accent); }
.twf-opt:disabled { opacity: .5; }
.twf-opt-main { display: grid; gap: 2px; min-width: 0; }
.twf-opt-main b, .twf-radio b { font-size: 18px; font-weight: 600; }
.twf-opt-main small, .twf-radio small { display: block; color: var(--f-text-2); font-size: 14px; overflow-wrap: anywhere; }
.twf-opt-side { flex: none; font-weight: 600; font-size: 14px; color: var(--f-text-2); text-align: right; max-width: 40%; }
.twf-radio { justify-content: flex-start; cursor: pointer; }
.twf-radio input { width: 22px; height: 22px; flex: none; accent-color: var(--f-accent); margin: 0; }

/* players and details */
.twf-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--f-surface); border: 1px solid var(--f-line); margin-bottom: 12px; font-weight: 600; }
.twf-stepper { display: flex; align-items: center; gap: 6px; }
.twf-stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-surface-2); font-size: 24px; line-height: 1; }
.twf-stepper button:disabled { opacity: .35; }
.twf-stepper output { min-width: 2ch; text-align: center; font-size: 22px; font-weight: 700; }
.twf-player { position: relative; border: 1px solid var(--f-line); border-radius: 14px; background: var(--f-surface); padding: 6px 14px 14px; margin: 0 0 12px; min-width: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.twf-player legend { padding: 0 6px; font-weight: 700; }
.twf-player legend small { font-weight: 400; color: var(--f-text-3); }
.twf-h:focus { outline: none; }
.twf-h:focus-visible { outline: 3px solid var(--f-accent); outline-offset: 4px; }
.twf-field { display: block; margin: 10px 0 0; }
.twf-field > span { display: block; font-size: 14px; color: var(--f-text-2); margin-bottom: 4px; }
.twf-field input, .twf-field textarea { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-bg); color: var(--f-text); font-size: 16px; }
.twf-age input { max-width: 120px; }
/* the age rule under the box (18z second pass): a sentence; the refusal itself when the age typed is under it */
.twf-rule { display: block; margin-top: 6px; font-size: 14px; color: var(--f-text-3); }
.twf-age.bad .twf-rule { color: var(--f-text); font-weight: 700; }
.twf-age.bad input { border-color: var(--f-accent); box-shadow: 0 0 0 2px var(--f-accent); }
.twf-field textarea { resize: vertical; font-family: inherit; line-height: 1.4; }
.twf-field > span small { color: var(--f-text-3); }
.twf-switch { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0 0; min-height: 44px; cursor: pointer; }
.twf-switch input { width: 24px; height: 24px; flex: none; margin: 2px 0 0; accent-color: var(--f-accent); }
.twf-allhire { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--f-line-strong); background: var(--f-surface); margin: 0 0 12px; font-weight: 600; }
.twf [aria-invalid="true"] { border-color: var(--f-accent) !important; box-shadow: 0 0 0 2px var(--f-accent); }
.twf-consent { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.twf-consent legend { padding: 0; font-weight: 700; margin-bottom: 2px; }
.twf-decl { padding: 14px; border-radius: 12px; border: 1px solid var(--f-line); background: var(--f-surface-2); color: var(--f-text-2); font-size: 15px; margin-bottom: 14px; white-space: pre-line; }

/* pay and done */

.twf-testmode { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 2px dashed var(--f-accent); background: var(--f-surface-2); color: var(--f-text); font-weight: 700; font-size: 15px; }
.twf-lines { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.twf-lines td { padding: 8px 0; border-bottom: 1px solid var(--f-line); vertical-align: top; }
.twf-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.twf-lines .twf-total td { font-weight: 700; font-size: 18px; }
.twf-card { margin: 14px 0 0; padding: 14px; border-radius: 12px; background: #fff; color: #151513; }
.twf-ok { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; background: var(--f-go); color: #0b0b0b; font-weight: 700; font-size: 14px; }
.twf-ref { margin: 0 0 14px; color: var(--f-text-2); }
.twf-ref b { font-family: var(--f-display); font-size: 28px; color: var(--f-text); letter-spacing: .04em; overflow-wrap: anywhere; }
.twf-signed { list-style: none; margin: 0; padding: 0; }
.twf-signed li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--f-line); }
.twf-signed li span { min-width: 0; overflow-wrap: anywhere; }
.twf-signed b.ok { color: var(--f-go); }
.twf-signed b.todo { color: var(--f-text-2); font-weight: 600; }
.twf-copy { display: flex; gap: 8px; }
.twf-copy input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-surface); color: var(--f-text-2); font-size: 14px; }
.twf-copy button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--f-accent); color: var(--f-on-accent); font-weight: 700; }
.twf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.twf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-surface); text-decoration: none; font-weight: 600; }

/* ---------- the basket, pinned at the bottom ---------- */
.twf-foot { display: grid; gap: 10px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--f-line-strong); background: var(--f-surface); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }
.twf-page .twf-foot { position: sticky; bottom: 0; z-index: 2; }
/* framed: the frame is never taller than the host's screen (embed.js), so the basket stays pinned inside it (milestone 5b item 7) */
.tw-embed .twf-page, .tw-embed .twf-page .twf-sheet { min-height: 0; }
.tw-embed body { min-height: 0; }
.twf-basket { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 12px; row-gap: 2px; font-size: 14px; color: var(--f-text-2); min-width: 0; }
.twf-basket span { min-width: 0; overflow-wrap: anywhere; }
.twf-basket b { flex: none; font-size: 20px; color: var(--f-text); }
/* the one sentence about money (milestone 17a): what is due now, what at the gate */
.twf-basket .twf-money { flex: 1 1 0; font-size: 15px; color: var(--f-text); font-weight: 600; line-height: 1.3; }
.twf-go { min-height: 52px; width: 100%; border-radius: 12px; background: var(--f-accent) !important; color: var(--f-on-accent) !important; font-weight: 700; font-size: 18px; font-family: var(--f-display); letter-spacing: .02em; }
.twf-go:disabled { opacity: .55; }
@media (min-width: 641px) { .twf-foot { grid-template-columns: 1fr auto; align-items: center; } .twf-foot .twf-basket { grid-column: 1 / -1; } .twf-go { width: auto; min-width: 220px; padding: 0 22px; grid-column: 2; } }

.twf-loading { padding: 40px 16px; text-align: center; color: var(--text-3, #6b6a63); font-family: var(--ui, system-ui, sans-serif); }
@media (prefers-reduced-motion: reduce) { .twf * { scroll-behavior: auto !important; transition: none !important; } }
/* a box that offers something: the shop's basket on the first screen (18b). What a session offers is on the Extras
   step now, a card each (21b) */
.twf-offer { margin: 18px 0 4px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--f-accent); background: var(--f-surface); }
.twf-offer p { margin: 0; line-height: 1.45; }
.twf-offer small { color: var(--f-text-2); }
.twf-offer .twf-actions { margin: 12px 0 0; }
.twf-offer > .twf-btn { margin-top: 12px; }
.twf-btn-p { background: var(--f-accent); color: var(--f-on-accent); border-color: var(--f-accent); }
/* a weekday date a group can open (milestone 15b): offered, and marked as locked */
button.twf-cell.locked { border-style: dashed; }
button.twf-cell.locked small { font-weight: 600; }
.twf-locked { padding: 10px 12px; border: 1px dashed var(--f-line-strong); border-radius: 10px; background: var(--f-surface); }

/* ---------- milestone 17a: who is coming, on one screen ---------- */
.twf-in { animation: twf-in .18s ease-out; }
@keyframes twf-in { from { transform: translateY(8px); } to { transform: none; } }
@keyframes twf-drawer { from { transform: translateX(48px); } to { transform: none; } }
/* a link inside a sentence: a 44px target that does not push the lines apart */
.twf-link { display: inline-block; min-width: 44px; padding: 12px 0; margin: -12px 0; border: 0; background: none; color: var(--f-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.twf-link small { font-weight: 400; color: var(--f-text-2); }
.twf-more { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; margin: 6px 0 0; text-align: left; }
.twf-field > span small { font-size: 13px; }
.twf-switch span small { display: block; font-size: 13px; color: var(--f-text-3); }
/* the booker's card: theirs, and done when this device knows them */
.twf-me { border-color: var(--f-line-strong); }
.twf-me.done { border-color: var(--f-go); box-shadow: inset 4px 0 0 var(--f-go), 0 1px 2px rgba(0, 0, 0, .05); }
.twf-me.done legend::before { content: "✓ "; color: var(--f-go); }
.twf-me-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 2px; }
.twf-me-sum > span { display: grid; min-width: 0; }
.twf-me-sum b { font-size: 18px; overflow-wrap: anywhere; }
.twf-me-sum small { color: var(--f-text-2); font-size: 14px; overflow-wrap: anywhere; }
.twf-me-sum .twf-link { flex: none; min-height: 44px; padding: 0 4px; margin: 0; }
.twf-remove { position: absolute; top: 2px; right: 14px; min-height: 44px; padding: 0; margin: 0; font-size: 14px; color: var(--f-text-2); }
/* + and the mates: beside the last card */
/* pinned over the step's own top padding too, so nothing that scrolls shows above it (18z) */
.twf-add { position: sticky; top: -8px; z-index: 1; margin: 0 -16px 12px; padding: 8px 16px; background: var(--f-bg); }
.twf-add .twf-count { margin-bottom: 0; }
.twf-add .twf-mates { margin-top: 8px; }
.twf-mates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.twf-mates > span { font-size: 14px; color: var(--f-text-3); }
.twf-declbox { margin: 16px 0 6px; border: 1px solid var(--f-line); border-radius: 12px; background: var(--f-surface); }
.twf-declbox summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; cursor: pointer; }
.twf-declbox .twf-decl { margin: 0 12px 12px; }
.twf-agree { margin: 0; align-items: center; font-size: 15px; }
.twf-agree .twf-link { color: inherit; }
.twf-consent { margin-top: 18px; }
/* a short phone (18z): the count scrolls with the step, which gets the room back; + is still beside the last card's top */
@media (max-height: 620px) { .twf-inline .twf-add { position: static; } }
/* Resume booking: left on the page when the sheet is closed with a basket in it */
.twf-resume { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 2147482000; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--f-accent); color: var(--f-on-accent); font: 700 16px/1 var(--f-ui); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); cursor: pointer; animation: twf-in .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .twf-in, .twf-inline .twf-sheet, .twf-resume { animation: none; } }
/* the day's sessions on the Players step (17a review): one row of choices, the chosen one's times under it */
.twf-segs { display: grid; grid-template-columns: repeat(var(--k, 2), minmax(0, 1fr)); gap: 6px; margin: 0 0 6px; }
@container twf (max-width: 460px) { .twf-segs[data-k="4"], .twf-segs[data-k="5"], .twf-segs[data-k="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.twf-seg { min-width: 0; min-height: 52px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-surface); display: grid; place-items: center; text-align: center; }
.twf-seg b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.twf-seg small { font-size: 12px; color: var(--f-text-2); white-space: nowrap; }
.twf-seg.on { background: var(--f-accent); border-color: var(--f-accent); color: var(--f-on-accent); }
.twf-seg.on small { color: var(--f-on-accent); }
.twf-seg:disabled { opacity: .5; }
.twf-sessname { margin: 0 0 2px; font-size: 18px; }
.twf-sessline { margin: 0 0 12px; font-size: 14px; color: var(--f-text-2); }
/* what the owner offers from the shop with the chosen tickets (20c): each with its price, its choice and a count */
.twf-addons { border: 1px solid var(--f-line-strong); border-radius: 14px; padding: 6px 14px 12px; margin: 16px 0 0; min-width: 0; }
.twf-addon { padding: 12px 0; border-bottom: 1px solid var(--f-line); }
.twf-addon:last-of-type { border-bottom: 0; }
.twf-addon-what { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin: 0; }
.twf-addon-what small { grid-column: 1 / -1; font-size: 14px; color: var(--f-text-2); }
.twf-addon-price { font-weight: 700; white-space: nowrap; }
.twf-addon-pick { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 10px 0 0; }
.twf-addon-opt { flex: 1 1 auto; min-width: 0; max-width: 220px; min-height: 44px; margin-right: auto; padding: 0 10px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-bg); color: var(--f-text); font: inherit; font-size: 16px; }
.twf-addon-add { min-width: 96px; margin: 0; }
/* closed or sold out for this day (23b): said where the Add button would be, in the page's quiet text */
.twf-addon-shut { min-height: 44px; display: inline-flex; align-items: center; color: var(--f-text-2); font-size: 15px; font-weight: 600; }
.twf-addon.on .twf-addon-what b::after { content: " \2713"; color: var(--f-accent); }
/* another activity's sessions on the same day, named once under the session's row (20b) */
/* the Extras step (21b): each thing offered is a card of its own, with room for its picture; the one added is edged */
.twf-extras { display: grid; gap: 12px; }
.twf-extras .twf-addons { display: grid; gap: 12px; border: 0; border-radius: 0; padding: 0; margin: 0; }
.twf-extras .twf-addon { padding: 14px 16px; border: 1px solid var(--f-line-strong); border-radius: 14px; background: var(--f-surface); }
.twf-extras .twf-addon:last-of-type { border-bottom: 1px solid var(--f-line-strong); }
.twf-extras .twf-addon.on, .twf-extras .twf-addon.on:last-of-type { border-color: var(--f-accent); box-shadow: inset 0 0 0 1px var(--f-accent); }
.twf-addon-pic { display: block; width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin: 0 0 12px; }
.twf-addon-in { margin-right: auto; font-weight: 700; color: var(--f-accent); }
.twf-extras .twf-note { margin: 0 2px; }
.twf-also { margin: -4px 0 12px; font-size: 14px; color: var(--f-text-3); }
.twf-list + .twf-also { margin: 16px 0 8px; }
.twf-also .twf-link:disabled { opacity: .5; text-decoration: none; }
/* own kit or hire: two choices side by side, each with its price (20b: the hire tick "does maybe look a bit hidden") */
.twf-kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.twf-kitopt { position: relative; min-width: 0; min-height: 52px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-surface); color: inherit; font: inherit; display: grid; place-items: center; text-align: center; cursor: pointer; }
.twf-kitopt b { font-size: 15px; font-weight: 600; }
.twf-kitopt small { font-size: 13px; color: var(--f-text-2); }
.twf-kitopt.on { background: var(--f-accent); border-color: var(--f-accent); color: var(--f-on-accent); }
.twf-kitopt.on small { color: var(--f-on-accent); }
.twf-kitopt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.twf-kitopt:has(input:focus-visible) { outline: 2px solid var(--f-accent); outline-offset: 2px; }
/* a refusal by the button, and the field it is about marked in more than the focus ring */
.twf-foot .twf-err { margin: 0; padding: 10px 12px; font-size: 15px; }
.twf-field:has([aria-invalid="true"]) > span { color: var(--f-text); font-weight: 700; }
.twf-field:has([aria-invalid="true"]) > span::after { content: " ⚠"; color: var(--f-accent); }
.twf-copy button { flex: 1 1 auto; }
.twf-added { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--f-text); }

/* a discount code (21j): the question under the total, the box it opens, the code's own line among the lines */
.twf-code-ask { margin: 10px 0 4px; }
.twf-code { margin: 12px 0 6px; }
.twf-code-l { display: block; font-size: 13px; font-weight: 600; color: var(--f-text-2); margin-bottom: 6px; }
.twf-code-row { display: flex; gap: 8px; align-items: stretch; }
.twf-code-row input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--f-line-strong); background: var(--f-bg); color: var(--f-text); font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.twf-code-row .twf-code-go { flex: none; width: auto; min-height: 48px; padding: 0 18px; margin: 0; }
.twf-code-msg { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--f-warn, #8A3426); }
.twf-code-msg:empty { min-height: 0; margin: 0; }
.twf-lines .twf-codeline td { font-weight: 600; }
.twf-lines .twf-codeline .twf-code-rm { margin: -12px 0 -12px 8px; font-weight: 400; font-size: 14px; }
/* on a site that takes no card the code is on the step that books: taken, it is said there with what it takes off */
.twf-code-on { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 6px; padding: 12px 0 0; border-top: 1px solid var(--f-line); font-size: 15px; }
.twf-code-on span { font-weight: 700; }
.twf-code-on .twf-code-rm { margin: -12px 0; font-weight: 400; font-size: 14px; }


/* ---------- game packs (22i): the holder's line, the packs on sale beside the days, the switch, the buy view ---------- */
.twf-holder { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--f-go); background: var(--f-surface); }
.twf-holder b { display: block; }
.twf-holder small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--f-text-2); }
/* an offer's own link (24d): what its code does, said on the first screen; where it cannot be used, why, in the accent's border */
.twf-claim { margin-top: 2px; }
.twf-claim-no { border-color: var(--f-accent); }
.twf-packs { margin: 16px 0 4px; display: grid; gap: 8px; }
.twf-packs-h { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--f-text-3); }
.twf-packrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--f-line-strong); background: var(--f-surface); text-align: left; }
.twf-packrow > span:first-child { min-width: 0; }
.twf-packrow b { display: block; font-size: 15px; }
.twf-packrow small { display: block; margin-top: 2px; font-size: 13px; color: var(--f-text-3); }
.twf-packbuy { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--f-accent); color: var(--f-on-accent); font-weight: 700; display: inline-flex; align-items: center; }
.twf-packfacts { margin: 0 0 14px; padding-left: 18px; color: var(--f-text-2); font-size: 14.5px; }
.twf-packfacts li { margin: 3px 0; }
.twf-usepack { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--f-go); background: var(--f-surface); }

/* an offer (booking platform 23k): the offer price with the normal one struck through, the offer's own line, and the day
   picker's mark on a day with an offer on it; in the page's own tokens, no new layout */
.twf-offerprice { color: var(--f-accent); font-weight: 700; }
button.twf-opt.on .twf-offerprice, button.twf-kitopt.on .twf-offerprice { color: inherit; }
s[data-twf-was] { color: var(--f-text-3); font-weight: 400; }
.twf-offerline { color: var(--f-accent); font-weight: 600; }
.twf-cell-offer { position: absolute; top: 3px; left: 4px; font-size: 8.5px; line-height: 1; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--f-accent); }
button.twf-cell.on .twf-cell-offer { color: var(--f-on-accent); }
/* Add to calendar (24f): the chooser under the confirmation's buttons, and the email's own page (src/add-to-calendar.mjs) */
.twf-cal { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.twf-cal .twf-cal-btn { width: 100%; box-sizing: border-box; text-align: center; }
