/* Booking surface components.
 *
 * The palette, fonts and element baseline live in tokens.css, which is the
 * same artifact the marketing site serves -- do not redeclare a colour here,
 * always reference a token, or the two surfaces drift apart again.
 *
 * Status tints are derived with color-mix so they follow the token through
 * the dark ramp instead of being pinned to a light-mode hex.
 */

header {
  display: flex;
  /* Wraps rather than overflows: on a phone the logged-in nav is wider than
     the screen, and an overflowing header drags the whole page sideways. */
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
header .brand { font-family: var(--font-head); font-size: 1.2rem; }
/* The wordmark is a link now, so it has to opt out of the header's link
   styling -- that rule greys links down and shrinks them, which is right
   for the nav and wrong for the brand. */
header a.brand { color: var(--fg); text-decoration: none; font-size: 1.2rem; }
header a.brand:hover { color: var(--accent); }
header .spacer { flex: 1; }
header a { color: var(--muted); text-decoration: none; font-size: .92rem; }
header a:hover { color: var(--accent); }
/* UI audit 02-ui #17: header, footer and lone in-text links are 44px tall to
   the thumb (they were 19-23px), without growing the type. */
header a:not(.brand):not(.btn) { display: inline-block; padding: .6rem .2rem; }
main p > a:only-child:not(.btn), footer a:not(.btn) { display: inline-block; padding: .6rem 0; }

main { max-width: 760px; margin: 1.75rem auto; padding: 0 1.25rem; }

.langpick { display: flex; gap: .4rem; align-items: center; font-size: .85rem; }
.langpick a { color: var(--muted); }
.langpick a.active { color: var(--accent); font-weight: 600; }
/* 03-ui #12: the phone's one-tap language toggle; hidden on a wider screen,
   where the full picker shows. */
header a.langtoggle:not(.brand):not(.btn) { display: none; font-weight: 600; }

h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}

label { display: block; font-size: .85rem; color: var(--muted); margin: .7rem 0 .2rem; }

input, select {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
}
/* UI audit 03-ui #10: a field's edge is what says "type here", so it needs
   3:1 against the page (WCAG 1.4.11); --line on --bg is about 1.2:1, this
   mix 3.3:1 (the audit's 70% measures 2.9:1). Fields
   only -- cards and dividers stay on --line. */
input, select, textarea { border: 1px solid color-mix(in srgb, var(--muted) 80%, var(--line)); }
textarea { font: inherit; color: inherit; background: var(--bg); border-radius: var(--radius-sm); padding: .55rem .7rem; }

/* A radio or a checkbox is not a text field. Without this it inherits the rule
   above and becomes a full-width bordered box with the dot floating in the
   middle of it -- which is what the mailbox plan picker and the mail-item
   instruction list both looked like. */
input[type="radio"], input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  vertical-align: middle;
}

button, .btn {
  font: inherit;
  font-weight: 600;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.ghost, .btn.ghost { background: transparent; color: var(--accent); }
/* Tap targets: 44px is the smallest a thumb hits reliably (WCAG 2.5.5 /
   Apple HIG). The cart's "Remove" was 34px and the pay page's save-card link
   19px (27/10/2026). Content only: the header keeps its compact links. */
main button:not([type="button"]), main .btn { min-height: 44px; }
main .btn { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
/* A submit in its busy state (data-busy, _base.html). */
button[aria-busy="true"] { opacity: .75; cursor: progress; }

.muted { color: var(--muted); }

.error, .retrowarn, .staffwarn, .flash {
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  font-size: .9rem;
}
.error {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}
.retrowarn {
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent);
  color: var(--warn);
  padding: .6rem .85rem;
  margin-bottom: 1rem;
}
/* Staff borrowing a client's session ("Log in as"). Deliberately the loudest
   banner on the page: everything clicked under it is real and lands on the
   client's account, so it must not be mistakable for the client's own view. */
.staffwarn {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: .6rem .85rem;
  margin-bottom: 1rem;
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}
.staffwarn form { margin: 0; }
/* After a language toggle: offer to record it on the client's profile. */
.langoffer {
  padding: .6rem .85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}
.langoffer form { margin: 0; display: flex; gap: .4rem; }

.flash {
  background: color-mix(in srgb, var(--ok) 8%, transparent);
  border: 1px solid var(--ok);
  color: var(--ok);
}

.slot {
  display: flex;
  /* 03-ui #13: a row with actions wraps instead of squeezing its buttons
     into three-line stacks on a phone. */
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.slot:last-child { border-bottom: none; }
.slot .when { font-weight: 600; }
.slot .spacer { flex: 1; }
.slot .btn { white-space: nowrap; }
/* A button-looking summary (03-ui #15, the renewal stop step). */
summary.btn { list-style: none; cursor: pointer; }
summary.btn::-webkit-details-marker { display: none; }
/* The text block takes the room and the actions sit beside it while they
   fit; past that they wrap under it rather than squeeze it. */
.slot > div:first-child { flex: 1 1 16rem; min-width: 0; }

.pill {
  display: inline-block;
  padding: .1rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .8rem;
  border: 1px solid var(--line);
}
.pill.ok { color: var(--ok); border-color: var(--ok); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
/* A cancelled booking: neutral, deliberately. It is not a warning and not an
   error -- the client asked for it and got it. */
.pill.off { color: var(--muted); border-color: var(--line); }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tabs a {
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--muted);
}
.tabs a.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
/* The product tabs (UI audit 02-ui #12): one row that scrolls sideways on a
   narrow screen instead of wrapping, each tab 44px tall. */
.tabs.prodtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs.prodtabs::-webkit-scrollbar { display: none; }
.tabs.prodtabs a { padding: .55rem .9rem; white-space: nowrap; flex: 0 0 auto; }
/* /book/start, the short links' "What would you like to book?" page: one
   tappable card per product, the name above its one-line description, a
   chevron at the reading end (flipped for RTL). */
.choose { max-width: 36rem; }
.choose ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.choose a.card {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 1rem; align-items: center;
  margin: 0; min-height: 44px; color: var(--fg); text-decoration: none;
}
/* Drawn product picture (static/chooser/*.svg, graphics-guru 11/11/2026):
   decorative, its own tile background, same size in both directions. */
.choose a.card img, .choose a.card .nopic { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 64px; display: block; }
.choose a.card strong { grid-column: 2; align-self: end; font-size: 1.1rem; color: var(--accent); }
.choose a.card span { grid-column: 2; align-self: start; color: var(--muted); font-size: .95rem; margin-top: .2rem; }
/* The "from" price (owner 11/11/2026): one quiet line under the description. */
.choose a.card .from { grid-column: 2; align-self: start; color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.choose a.card::after { content: "\203A"; grid-column: 3; grid-row: 1 / span 3; font-size: 1.6rem; color: var(--muted); }
.choose h2 + .group-sub { margin: -.35rem 0 .6rem; font-size: .9rem; }
.choose-vat { max-width: 36rem; font-size: .88rem; margin-top: .75rem; }
[dir="rtl"] .choose a.card::after { content: "\2039"; }
.choose a.card:hover, .choose a.card:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
/* UI audit 03-ui #9: fade the side with more tabs past it (data-more is set by
   _product_tabs.html from the scroll position; start/end follow the page
   direction). */
.tabs.prodtabs[data-more="end"] { -webkit-mask-image: linear-gradient(to left, #0000, #000 2rem); mask-image: linear-gradient(to left, #0000, #000 2rem); }
.tabs.prodtabs[data-more="start"] { -webkit-mask-image: linear-gradient(to right, #0000, #000 2rem); mask-image: linear-gradient(to right, #0000, #000 2rem); }
[dir="rtl"] .tabs.prodtabs[data-more="end"] { -webkit-mask-image: linear-gradient(to right, #0000, #000 2rem); mask-image: linear-gradient(to right, #0000, #000 2rem); }
[dir="rtl"] .tabs.prodtabs[data-more="start"] { -webkit-mask-image: linear-gradient(to left, #0000, #000 2rem); mask-image: linear-gradient(to left, #0000, #000 2rem); }
.tabs.prodtabs[data-more="both"] { -webkit-mask-image: linear-gradient(to right, #0000, #000 2rem, #000 calc(100% - 2rem), #0000); mask-image: linear-gradient(to right, #0000, #000 2rem, #000 calc(100% - 2rem), #0000); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
th {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.big { font-size: 1.6rem; font-weight: 700; }

/* Tranzila's iframe. Keep the white background regardless of scheme: the
 * payment form inside it is light-only and renders unreadable on a dark one. */
iframe.pay {
  width: 100%;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

/* The payment form's frame (UI audit 02-ui #8): a "Loading secure
   payment..." line sits behind it until Tranzila's page has loaded, so the
   empty box is not read as broken. */
.payframe-wrap { position: relative; margin-top: .75rem; }
/* 03-ui #17: the saved card is being charged -- the card form is out of reach. */
.payframe-wrap.locked { pointer-events: none; opacity: .35; }
.payframe-wrap::before {
  content: attr(data-loading); position: absolute; inset: 0; display: flex;
  align-items: flex-start; justify-content: center; padding-top: 3rem;
  color: var(--muted); font-size: .92rem; pointer-events: none;
}
.payframe-wrap iframe.pay { position: relative; display: block; background: transparent; }
.payframe-wrap.loaded::before { content: none; }
.payframe-wrap.loaded iframe.pay { background: #fff; }
/* Cart (UI audit 02-ui #9): the Remove is quiet, the checkout row wraps
   between its buttons rather than inside a label. */
button.c-rm { padding: .3rem .7rem; border-color: var(--line); color: var(--muted); font-weight: 400; }
.cart-cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
/* Meeting-room block buttons (UI audit 02-ui #10): the window on the start
   side, the price always at the end, never wrapped alone onto a line. */
button.confblock { display: inline-flex; justify-content: space-between; align-items: baseline; gap: .9rem; text-align: start; }
button.confblock strong { white-space: nowrap; }
/* Sign-up password with a Show / Hide button inside the field (#14). */
button[data-captcha-gate]:disabled { opacity: .7; cursor: progress; }
.pwfield { position: relative; }
.pwfield input { padding-inline-end: 4.5rem; }
/* 03-ui #20: muted and regular weight, so "Show" in an empty field does not
   read as something typed; a 44px target. */
.pwtoggle { position: absolute; inset-inline-end: .25rem; top: 50%; transform: translateY(-50%);
  min-height: 44px; padding: .2rem .7rem; background: none; border: 0; color: var(--muted); font-weight: 400;
  font-size: .85rem; }
/* A folded discount-code box (pay page #8, cart #9). */
details.coupon > summary { cursor: pointer; color: var(--accent); font-size: .92rem; padding: .5rem 0; }

.confpick { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.confpick label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.confpick select {
  font: inherit;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
}
.confpick .durfields { display: flex; align-items: center; gap: .35rem; }
.confpick .durfields input {
  font: inherit;
  width: 3.4rem;
  padding: .5rem .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-align: center;
}
.confpick .durfields .unit { font-size: .85rem; color: var(--muted); }

.timegrid { display: flex; flex-wrap: wrap; gap: .5rem; }
.timegrid .slotbtn { padding: .5rem .8rem; font-size: .9rem; }

/* Explanations.
 *
 * `.hint` is the only affordance that a tooltip exists -- a dotted underline
 * plus the help cursor. It is deliberately quiet: on this surface the sentence
 * a client needs stays visible, and the tooltip carries the part only some
 * people will wonder about. `title` does not open on touch, so nothing that a
 * booking cannot be completed without may live in one.
 *
 * `.pagehelp` is the collapsed box for page-level narrative -- the "how this
 * works" that is worth having but not worth reading twice.
 */
.hint { border-bottom: 1px dotted var(--muted); cursor: help; }
/* UI audit 02-ui #19: a whole sentence with a tooltip is not dressed as a
   link -- the dotted line stays on short terms only. A rule that a reader on
   a phone must be able to read (the cancellation detail) is a .pagehelp
   <details> instead: its summary is the sentence, a tap shows the rest. */
.hint.long { border-bottom: 0; cursor: auto; }
details.pagehelp > summary { cursor: pointer; list-style: none; display: inline; }
details.pagehelp > summary::marker { content: ""; }
details.pagehelp > summary::-webkit-details-marker { display: none; }
details.pagehelp > summary::after { content: " ▾"; font-size: .75em; }
details.pagehelp[open] > summary::after { content: " ▴"; }
details.pagehelp[open] > summary::before { content: ""; display: block; width: auto; height: auto; border: 0; margin: 0; }

.pagehelp { margin: 0 0 1rem; }
.pagehelp > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.pagehelp > summary::-webkit-details-marker { display: none; }
/* The "i" mark is drawn, not typed: U+24D8 is missing from many fonts and
 * renders as a box -- the staff side's fix (6863dd93), same mark here. */
.pagehelp > summary::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.15em;
  height: 1.15em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  margin-inline-end: .35em;
  font: italic 700 .8em/1 Georgia, "Times New Roman", serif;
  vertical-align: .1em;
}
.pagehelp > summary:hover { color: var(--accent); }
.pagehelp .helpbody {
  margin-top: .6rem;
  padding: .8rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--muted);
}
.pagehelp .helpbody p { margin: .4rem 0; }
.pagehelp .helpbody p:first-child { margin-top: 0; }
.pagehelp .helpbody p:last-child { margin-bottom: 0; }
/* The day-pass / office offer (03-ui #6): its first sentence is the summary
   and reads as text, not as a muted aside. */
.pagehelp.daypass-offer { margin: .2rem 0 .8rem; }
.pagehelp.daypass-offer > summary { color: var(--fg); font-size: 1rem; }

th .hint { text-transform: none; letter-spacing: 0; }

/* The Google review ask on the client dashboard. It sits below everything the
   client actually came for, so it reads as an aside rather than a demand. */
.reviewask { margin-top: 1.5rem; }
.reviewask p { margin: 0 0 .5rem; }
.reviewask p:last-child { margin-bottom: 0; margin-top: .9rem; }

/* "Save this card for next time" on the pay page. A LINK, not a checkbox: the
   choice has to change the minted payment link (tranmode=AK), which means a
   round trip, and a checkbox that silently reloads the page is a checkbox that
   looks broken. Styled as a checkbox because that is what it means. */
.savecard { text-decoration: none; color: inherit; font-weight: 500; display: inline-flex; align-items: center; gap: .2rem; min-height: 44px; }
.savecard:hover { text-decoration: underline; }
.savecard span[aria-hidden] { font-size: 1.1em; margin-inline-end: .15rem; }

/* Office printer setup (/book/setup). */
.setup-printers { display: grid; gap: .9rem; }
.setup-printer { display: flex; gap: .8rem; align-items: center; }
.setup-printer-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.setup-note {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.setup-steps { margin: 0; padding-inline-start: 1.4rem; }
.setup-steps > li { padding: .35rem 0 .6rem; }
.setup-steps > li::marker { font-weight: 700; color: var(--accent); }
.setup-steps p { margin: 0 0 .35rem; }
.setup-steps p:last-child { margin-bottom: 0; }
.setup-alt { margin: 1rem 0 0; }
/* The command is LTR in an RTL page; it scrolls rather than wraps, because a
   wrapped shell line is one a client will retype wrong. */
.setup-cmd {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  margin: .4rem 0;
}
.setup-cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  padding: .6rem .75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  color: var(--fg);
  user-select: all;
}
.setup-cmd button { flex: none; padding: .4rem .9rem; }

/* Clickable floor plan on the seat pickers (book/_seatmap.html). The plan
   and its cells style themselves (book/_floorplan.html); this is the card
   round it. */
.seatmap {
  margin-bottom: 1rem;
  /* The plan's cell colours, read by book/_floorplan.html (which carries
     the same values as fallbacks for the admin surface). */
  --plan-open: color-mix(in srgb, var(--ok) 22%, var(--card));
  --plan-open-line: var(--ok);
  --plan-taken: color-mix(in srgb, var(--danger) 18%, var(--card));
  --plan-taken-line: color-mix(in srgb, var(--danger) 55%, var(--card));
  --plan-cart: color-mix(in srgb, var(--accent) 22%, var(--card));
  --plan-cart-line: var(--accent);
}
.seatmap-head {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  align-items: center; justify-content: space-between; margin-bottom: .6rem;
}
.seatmap-date { display: flex; gap: .5rem; align-items: center; margin: 0; font-size: .9rem; }
.seatmap-date input { width: auto; }
.seatmap-dayname { font-size: 1.1rem; }
.seatmap-msg { margin: 0 0 .6rem; color: var(--warn); }
/* A phone gets a plan wide enough to tap a desk, and scrolls it sideways
   inside the card rather than dragging the page. */
.seatmap-frame { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.seatmap-frame svg { display: block; width: 100%; min-width: 560px; height: auto; }
.seatmap-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.seatmap-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.seatmap-legend .sw { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; border: 2px solid; }
.seatmap-legend .sw.open { background: var(--plan-open); border-color: var(--plan-open-line); }
.seatmap-legend .sw.taken { background: repeating-linear-gradient(45deg, var(--plan-taken) 0 2px, var(--plan-taken-line) 2px 3.5px); border-color: var(--plan-taken-line); }
.seatmap-legend .sw.cart { background: var(--plan-cart); border-color: var(--plan-cart-line); }
.seatmap-pick {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between;
  margin-top: .8rem; padding: .7rem .9rem;
  border: 1px solid var(--ok); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ok) 6%, transparent);
}
.seatmap-pick[hidden] { display: none; }
/* UI audit 02-ui #3: a soft fade on the side of the plan that scrolls on
   (set by _seatmap.html from the scroll position), so a phone reader can see
   there is more of the office past the edge. */
.seatmap-frame[data-more="left"] { -webkit-mask-image: linear-gradient(to right, #0004, #000 2.5rem); mask-image: linear-gradient(to right, #0004, #000 2.5rem); }
.seatmap-frame[data-more="right"] { -webkit-mask-image: linear-gradient(to left, #0004, #000 2.5rem); mask-image: linear-gradient(to left, #0004, #000 2.5rem); }
.seatmap-frame[data-more="both"] { -webkit-mask-image: linear-gradient(to right, #0004, #000 2.5rem, #000 calc(100% - 2.5rem), #0004); mask-image: linear-gradient(to right, #0004, #000 2.5rem, #000 calc(100% - 2.5rem), #0004); }
/* The per-seat list under the plan, folded on a phone (#3). */
details.seatlist > summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: .6rem 0; min-height: 44px; box-sizing: border-box; }
details.seatlist[open] > summary { margin-bottom: .4rem; }
.seatmap[aria-busy="true"] .cell { opacity: .4; transition: opacity .15s; }
.seatmap-actions button { min-height: 44px; }
.seatmap-pickmsg { flex-basis: 100%; order: 3; margin: 0; color: var(--danger); font-size: .88rem; }
.seatmap-pickinfo { flex: 1 1 12rem; min-width: 0; }
/* "More dates for this seat" is a text link in the pick panel (03-ui #6). */
.seatmap-pick button.pick-more {
  display: block; margin: .15rem 0 0; padding: .3rem 0; min-height: 0;
  background: none; border: 0; color: var(--accent); font-weight: 400; font-size: .88rem;
  text-decoration: underline; text-align: start; cursor: pointer;
}
.seatmap-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.seatmap-hint { margin: 0 0 .5rem; font-size: .85rem; }
/* The bulk-discount line under the plan (03-ui #6). */
.bulkline { margin: 0 0 1rem; color: var(--ok); }
/* The Gender / Room filters (book/_seat_filters.html), in the plan's head or
   above the list: label beside its select (UI audit 03-ui #7). */
.seatfilters { display: flex; gap: .5rem .9rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.seatmap-head .seatfilters { margin: 0; }
.seatfilters label { display: flex; gap: .4rem; align-items: center; margin: 0; }
.seatfilters select { width: auto; min-width: 8rem; }
/* A date chip's remove button (UI audit 02-ui #5): 44px to the thumb, the
   negative margin keeps the chip itself small. */
.chipx {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 1.15em; line-height: 1; padding: 0;
  min-width: 44px; min-height: 44px; margin: -12px -14px -12px -10px;
}
.chipx:hover { color: var(--danger); }
#seatrows tr.flash td { background: color-mix(in srgb, var(--ok) 12%, transparent); transition: background .3s; }

/* Header Support menu: a <details> so it opens with no script and from the
   keyboard; the list floats under the summary instead of pushing the header. */
.navmenu { position: relative; }
.navmenu > summary {
  list-style: none; cursor: pointer;
  color: var(--muted); font-size: .92rem;
}
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary::after { content: " ▾"; font-size: .75rem; }
.navmenu > summary:hover, .navmenu[open] > summary { color: var(--accent); }
.navmenu-list {
  position: absolute; inset-inline-start: 0; top: calc(100% + .45rem); z-index: 20;
  display: flex; flex-direction: column; min-width: 11rem;
  padding: .35rem 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--fg) 14%, transparent);
}
.navmenu-list a { padding: .45rem .9rem; white-space: nowrap; }
.navmenu-btn { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .45rem .9rem; color: var(--muted); font-size: .92rem; cursor: pointer; }
.navmenu-btn:hover, .navmenu-btn:focus-visible { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
/* Header account links (UI audit 02-ui #11): inline on a wide screen, one
   "Account" menu on a phone. */
.navnarrow { display: none; }
span.navwide { display: contents; }
.navmenu-list a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Support host (support.ofo.co.il): its own header with the three tools as
   tabs on a second row, so the menu is the page's main navigation rather than
   a dropdown hidden behind a login. */
header.supporthead { padding-bottom: 0; row-gap: .6rem; }
.supportnav {
  flex-basis: 100%; display: flex; gap: 1.4rem;
  overflow-x: auto; scrollbar-width: none;
}
.supportnav a {
  padding: .35rem 0 .6rem; white-space: nowrap;
  border-bottom: 2px solid transparent; font-size: .95rem;
}
.supportnav a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.supportcards {
  display: grid; gap: 1rem; margin-top: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.supportcard {
  display: flex; flex-direction: column; gap: .45rem; margin: 0;
  color: var(--fg); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.supportcard:hover { border-color: var(--accent); transform: translateY(-1px); }
.supportcard strong { font-size: 1.05rem; }
.supportcard .muted { font-size: .9rem; }
.supportcard-icon { color: var(--accent); }

/* Phones (28/10/2026). Every client page has to fit a 320px screen with no
   sideways scroll. Below 480px:
   - a `table.stack` (cart lines, My orders) becomes one card per row. The
     header row is hidden; each cell carries data-label for the one label a
     card still shows (the amount). Cart: date + amount, the item, then a
     full-width Remove. My orders: date + amount, the time, the space, then
     the status with its actions full width. The totals in the cart's tfoot
     become label / amount lines.
   - the Support menu anchors to the header instead of its summary, which on a
     narrow wrapped header can sit near the far edge. */
@media (max-width: 480px) {
  .entry-codes .code-row { display: block; }
  .entry-codes dt { min-width: 0; margin-bottom: .15rem; }
  header { position: relative; padding: .7rem 1rem; gap: .5rem .9rem; }
  /* 03-ui #12: one row, logged out too -- brand, the language toggle, Log in
     (was 115px on two rows: "Booking", every language, Create an account). */
  header .hdr-sub, header .langpick, header .hdr-register { display: none; }
  header a.langtoggle:not(.brand):not(.btn) { display: inline-block; min-width: 44px; text-align: center; }
  .navmenu { position: static; }
  .navwide { display: none !important; }
  .navnarrow { display: block; }
  .navmenu-list a { padding: .7rem .9rem; }
  .navmenu-list { inset-inline-start: 1rem; top: auto; margin-top: .45rem; max-width: calc(100vw - 2rem); }
  main { padding: 0 1rem; margin-top: 1.25rem; }
  .card { padding: 1rem; }

  table.stack, table.stack tbody, table.stack tfoot, table.stack tr, table.stack td { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.stack td { border: 0; padding: 0; }
  table.stack tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .3rem .75rem;
    align-items: baseline;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
  }
  table.stack tbody tr:first-child { padding-top: 0; }
  table.stack td[data-label].c-amt::before, table.stack td[data-label].m-amt::before {
    content: attr(data-label) " ";
    color: var(--muted);
    font-size: .78rem;
  }
  table.stack .c-amt, table.stack .m-amt { text-align: end; font-weight: 600; white-space: nowrap; }
  table.stack .m-amt.muted { font-weight: 400; }

  /* Cart line. */
  table.cart-lines .c-date { grid-area: 1 / 1; font-weight: 600; }
  table.cart-lines .c-amt { grid-area: 1 / 2; }
  table.cart-lines .c-item { grid-column: 1; }
  table.cart-lines .c-act { grid-area: 2 / 2; align-self: center; text-align: end; }
  table.cart-lines .c-act button { min-height: 44px; }
  .cart-cta form, .cart-cta form button { flex: 1 1 100%; width: 100%; }
  .cart-cta a.btn { border: 0; background: none; padding: .4rem 0; text-decoration: underline; font-weight: 400; }
  .cart-cta.sticky { position: sticky; bottom: 0; z-index: 5; margin-inline: -1rem; padding: .6rem 1rem; background: var(--card); box-shadow: 0 -4px 12px #0002; }
  table.cart-lines tfoot tr { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; border-bottom: 1px solid var(--line); }
  table.cart-lines tfoot tr:last-child { border-bottom: 0; }
  table.cart-lines tfoot td { padding: .45rem 0; }
  table.cart-lines tfoot td:empty { display: none; }
  table.cart-lines tfoot td:nth-child(2) { white-space: nowrap; }

  /* My orders row. */
  table.my-lines .m-date { grid-area: 1 / 1; font-weight: 600; }
  table.my-lines .m-amt { grid-area: 1 / 2; }
  table.my-lines .m-time, table.my-lines .m-space, table.my-lines .m-status { grid-column: 1 / -1; }
  table.my-lines .m-status { margin-top: .2rem; }
  table.my-lines tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  table.my-lines .m-status .btn, table.my-lines .m-status button { display: flex; width: 100%; }

  /* Seat picker row (UI audit 02-ui #1): "Seat 11 · Women · Room 2" on one
     line, then the date controls, then a full-width priced button -- never a
     table wider than the screen with the button half off it. */
  table.seat-lines tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .3rem; }
  table.seat-lines td:first-child .when { font-weight: 600; }
  table.seat-lines td.s-gender:not(:empty)::before, table.seat-lines td.s-room:not(:empty)::before { content: "· "; color: var(--muted); }
  table.seat-lines td.s-act { flex: 1 1 100%; margin-top: .45rem; }
  table.seat-lines td.s-act > div, table.seat-lines form.daypick > div { justify-content: stretch !important; }
  table.seat-lines .dp, table.seat-lines .dpall { flex: 1 1 8rem; min-width: 0; }
  table.seat-lines .tocart, table.seat-lines td.s-act form:not(.daypick), table.seat-lines td.s-act form:not(.daypick) button { flex: 1 1 100%; width: 100%; }
  table.seat-lines .dpmsg { text-align: start !important; }

  .confblocks button.confblock { flex: 1 1 100%; }

  /* 03-ui #13: a .slot row's own buttons go full width under its text. */
  .slot > .btn { flex: 1 1 100%; }

  /* Pay page (#8): the payment form fits the screen, so 3-D Secure or the
     bank option does not scroll a frame inside a scrolling page. */
  iframe.pay { height: min(640px, calc(100svh - 80px)); }

  /* The floor-plan pick (#3): a bar stuck to the bottom of the screen while
     the plan is in view, so a tap on a seat shows its button at once. */
  .seatmap-pick {
    position: sticky; bottom: 0; z-index: 5; margin-inline: -1rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-width: 1px 0 0;
    background: var(--card); box-shadow: 0 -4px 12px #0002;
  }
  /* 03-ui #6: one row (~64px), not three -- the info shrinks, the button
     keeps its width and may wrap its own words. */
  .seatmap-pick { padding: .45rem 1rem; gap: .3rem .6rem; flex-wrap: wrap; }
  .seatmap-pickinfo { flex: 1 1 0; font-size: .88rem; line-height: 1.3; }
  .seatmap-pick .seatmap-actions { flex: 0 1 auto; max-width: 58%; }
  .seatmap-pick .seatmap-actions button { padding: .5rem .8rem; white-space: normal; line-height: 1.2; }
}

/* The entry codes on the thank-you screen (book/_entry_codes.html, owner
   08/11/2026): a client who never opens the email must not miss them. */
.entry-codes {
  margin: .75rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 3px solid var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}
.entry-codes h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.entry-codes-save { margin: 0 0 .75rem; font-weight: 600; }
.entry-codes dl { margin: 0; display: grid; gap: .55rem; }
.entry-codes .code-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.entry-codes dt { min-width: 10rem; font-weight: 600; }
.entry-codes dd { margin: 0; }
.entry-codes .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.15rem, 5.5vw, 1.6rem); font-weight: 700; letter-spacing: .06em;
  padding: .1rem .5rem; border-radius: 6px; user-select: all;
  background: var(--card); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.entry-codes .code-note { display: block; font-size: .9em; margin-top: .2rem; }
.entry-codes-more { margin: .75rem 0 0; font-size: .95em; }
.cardpay summary { min-height: 44px; box-sizing: border-box; }
