/* ==========================================================================
   Chabad Hanoi — signup styles
   Palette from the logo: #891738 maroon, #F47721 orange.

   Deliberately plain: flat surfaces, one typeface, thin borders, almost no
   shadow. This is a form people fill in on a phone, not a showcase.

   Written with CSS logical properties throughout, so the same rules lay out
   correctly in Hebrew (rtl) and English (ltr) with no direction-specific
   overrides.
   ========================================================================== */

:root {
  --brand: #891738;
  --brand-dark: #6a1029;
  --brand-soft: #f6e9ed;
  --brand-line: #e4cdd5;

  --accent: #f47721;
  --accent-dark: #d15f12;
  --accent-soft: #fdf0e4;

  --ink: #2b2124;
  --ink-mid: #5d5054;
  --ink-soft: #857578;

  --bg: #faf7f5;
  --surface: #ffffff;
  --surface-alt: #f7f2f0;
  --line: #e8e0dd;
  --line-mid: #d6cac6;

  --ok: #1f7a4d;
  --ok-bg: #edf7f2;
  --warn: #92600f;
  --warn-bg: #fdf5e7;
  --danger: #b3261e;
  --danger-bg: #fdeeed;

  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 3px rgba(43, 33, 36, 0.06);

  --font: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --wrap: 720px;

  /* --- Aliases -------------------------------------------------------
     The admin and the place-card sheet were written against a larger token
     set. Rather than churn those files, map their names onto the palette
     above so there is still only one source of colour. */
  --brand-900: var(--brand-dark);
  --brand-50: var(--brand-soft);
  --brand-100: var(--brand-line);
  --brand-300: var(--brand-line);
  --accent-50: var(--accent-soft);
  --accent-100: #f8d9bd;
  --accent-300: #f6b481;
  --accent-700: var(--accent-dark);
  --ink-muted: var(--ink-soft);
  --ink-faint: #a2969a;
  --line-strong: var(--line-mid);
  --surface-sunk: var(--surface-alt);
  --r-xs: 6px;
  --r-sm: var(--r);
  --sh-sm: var(--shadow);
  --sh-lg: 0 8px 24px rgba(43, 33, 36, .12);
  --font-ui: var(--font);
  --font-display: var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0 0 8px; line-height: 1.3; font-weight: 700; color: var(--brand); }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ========================= Header ========================= */
.site-header { background: var(--surface); border-block-end: 1px solid var(--line); }
.site-header-inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand-name { display: block; font-weight: 700; font-size: 17px; color: var(--brand); line-height: 1.2; }
.brand-sub { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.header-right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line-mid); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  appearance: none; border: 0; background: var(--surface);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--ink-mid); padding: 6px 12px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ========================= Hero ========================= */
/* Sized as a page title, not a subtitle: inside a host page (embed + hero)
   the site header is gone and this block is the only thing that says what
   the page is. */
.hero { text-align: center; padding-block: 36px 18px; }
.hero h1 {
  font-size: clamp(30px, 6.2vw, 38px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.015em; margin: 0 0 12px;
}
.hero p { color: var(--ink-mid); font-size: 16.5px; line-height: 1.55; margin: 0 auto; max-width: 46ch; }
.hero-tag {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; padding: 7px 18px;
  border-radius: 999px; margin-block-end: 16px;
}

/* ========================= Step cards ========================= */
main { padding-block: 10px 44px; }

.card {
  --pad: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px var(--pad);
  margin-block-end: 16px; box-shadow: var(--shadow);
}
@media (max-width: 560px) { .card { --pad: 18px; padding: 22px var(--pad); } }

/* A section inside the card — a heading and a rule, nothing more. */
.sec { margin-block-start: 36px; }
.sec:first-of-type { margin-block-start: 0; }
.sec > h2 {
  font-size: 17px; color: var(--brand); margin: 0 0 5px;
}
.sec > .hint { margin-block-end: 16px; }
.hint { font-size: 14px; color: var(--ink-soft); margin-block-end: 14px; line-height: 1.55; }

/* ========================= Occasion picker ========================= */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-block-end: 6px;
  /* Bleed to the card's edge so cards can scroll off-screen. Derived from the
     card's own padding — hard-coding it overflowed the page once the card
     padding shrank at the mobile breakpoint. */
  margin-inline: calc(var(--pad, 28px) * -1);
  padding-inline: var(--pad, 28px);
  /* Without this the snap point lands one padding-width in, so the rail never
     rests at scrollLeft 0. */
  scroll-padding-inline: var(--pad, 28px);
  -webkit-overflow-scrolling: touch;
  /* The bar added nothing a trackpad user needed and looked untidy under the
     cards; the arrows below are the affordance instead. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }

/* Arrows sit at the rail's visual edges — which are the card's edges, since
   the rail bleeds out by one padding-width — and each hides itself when
   there is nothing further to scroll to in its direction. */
.rail-arrow {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-mid);
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(43, 33, 36, .14);
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.rail-arrow:hover { background: var(--brand-soft); border-color: var(--brand-line); }
.rail-arrow:active { transform: translateY(-50%) scale(.94); }
.rail-arrow svg { width: 17px; height: 17px; }
/* Mirrored for Hebrew, where "next" points the other way. */
[dir="rtl"] .rail-arrow svg { transform: scaleX(-1); }
.rail-prev { inset-inline-start: calc(var(--pad, 28px) * -1 + 4px); }
.rail-next { inset-inline-end: calc(var(--pad, 28px) * -1 + 4px); }
/* Kept on touch screens as well: flicking works, but the arrows are what
   tell a first-time visitor there is anything past the edge. Smaller there,
   so they cover less of the card underneath. */
@media (max-width: 560px) {
  .rail-arrow { width: 32px; height: 32px; }
  .rail-arrow svg { width: 15px; height: 15px; }
  .rail-prev { inset-inline-start: calc(var(--pad, 18px) * -1 + 2px); }
  .rail-next { inset-inline-end: calc(var(--pad, 18px) * -1 + 2px); }
}

.occ {
  flex: 0 0 clamp(176px, 44%, 196px); align-self: stretch;
  scroll-snap-align: start; text-align: start;
  background: var(--surface); border: 1.5px solid var(--line-mid);
  border-radius: var(--r); padding: 15px 16px; cursor: pointer;
  font-family: inherit; color: inherit;
  display: flex; flex-direction: column; gap: 7px;
}
.occ:hover { border-color: var(--brand-line); background: var(--surface-alt); }
.occ[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.occ-kind {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.occ[data-kind="yomtov"] .occ-kind { color: var(--accent-dark); }
/* A custom event can be called "ערב ראש השנה במלון אינטרקונטיננטל וסטלייק" —
   far longer than a parsha name. Clamping at two lines cut the name in half and
   the guest could not tell one hotel evening from another, so it wraps up to
   four. min-height still holds the two-line floor so a row of short names keeps
   its dates aligned; the cards are flex so a taller one lifts the whole row
   together rather than staggering. */
.occ-name {
  font-weight: 700; font-size: 14.5px; color: var(--brand); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
  overflow-wrap: anywhere;
}
.occ-date { font-size: 12.5px; color: var(--ink-mid); }
.occ-hebrew { font-size: 12px; color: var(--brand); font-weight: 600; }
.occ-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.occ-now {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-dark);
  white-space: nowrap;
}

/* ========================= Form fields ========================= */
.field { margin-block-end: 22px; }
.field:last-child { margin-block-end: 0; }
/* A two-up row is a field-sized block in the flow, so it carries a field's
   bottom margin. Without it, the fields inside are :last-child of the row and
   lose theirs, and the row butts straight into whatever follows. */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-block-end: 22px; }
.row2:last-child { margin-block-end: 0; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; gap: 0; } }

label.lbl {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--ink); margin-block-end: 8px;
}
.req { color: var(--accent); }
.opt { color: var(--ink-soft); font-weight: 400; }

.input, .select, .textarea {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-mid);
  border-radius: var(--r); padding: 12px 14px; appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.input[aria-invalid="true"] { border-color: var(--danger); }
.input::placeholder, .textarea::placeholder { color: var(--ink-soft); }
.textarea { min-height: 92px; resize: vertical; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23857578' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 16px; padding-inline-end: 36px; cursor: pointer;
}
[dir="rtl"] .select { background-position: left 12px center; }

.err { display: none; font-size: 12.5px; font-weight: 600; color: var(--danger); margin-block-start: 4px; }
.err.show { display: block; }
.help { font-size: 13px; color: var(--ink-soft); margin-block-start: 6px; }

/* ========================= Guest stepper ========================= */
.stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-mid); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
  /* The label's own 8px gap reads tight against a 44px control. */
  margin-block-start: 6px;
  /* Numbers read left-to-right in both languages, so - stays left and + right
     rather than letting RTL swap them into a confusing order. */
  direction: ltr;
}
.stepper button {
  appearance: none; border: 0; background: transparent;
  width: 44px; height: 44px; font-size: 20px; font-weight: 500;
  color: var(--brand); cursor: pointer; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent; line-height: 1;
}
.stepper button:hover:not(:disabled) { background: var(--brand-soft); }
.stepper button:disabled { color: var(--line-mid); cursor: not-allowed; }
.stepper .n {
  min-width: 52px; height: 44px;
  display: grid; place-items: center;
  border-inline: 1px solid var(--line);
  font-size: 17px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ============ Meals — tick one to reveal its price options ============ */
.meals { display: flex; flex-direction: column; gap: 12px; }

/* The whole card is the hit target, not just the label beside the checkbox —
   a card that looks clickable and only responds along one strip is worse than
   one that doesn't look clickable at all. The price rows are excluded in JS,
   since a click there is choosing a rate, not un-ticking the meal. */
.meal {
  border: 1.5px solid var(--line-mid); border-radius: var(--r);
  background: var(--surface); padding: 17px 18px; cursor: pointer; display: block;
  transition: border-color .14s ease, background .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.meal:hover { border-color: var(--brand-line); background: var(--surface-alt); }
.meal.selected { border-color: var(--brand); background: #fffdfd; }
.meal.selected:hover { background: #fffbfb; }
.meal:focus-within { border-color: var(--brand); }
.meal-head { display: flex; align-items: flex-start; gap: 13px; }
/* The prices sit inside a pointer-cursor card, so restate their own cursors
   rather than letting the card's leak through. */
.meal .prices { cursor: default; }
.meal .price { cursor: pointer; }
.meal-head input {
  width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--brand); cursor: pointer;
}
.meal-info { flex: 1; min-width: 0; }
.meal-title { display: block; font-weight: 700; font-size: 16.5px; color: var(--brand); }
.meal-when { display: block; font-size: 13.5px; color: var(--ink-mid); margin-block-start: 3px; }
.meal-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-line); padding: 1px 6px;
  border-radius: 999px; margin-inline-start: 6px; vertical-align: 1px;
}

/* The reveal: prices only appear once the meal is ticked. */
.prices {
  display: none; flex-direction: column; gap: 9px;
  margin-block-start: 16px; padding-block-start: 16px;
  border-block-start: 1px dashed var(--line);
}
.meal.selected .prices { display: flex; }

.price {
  display: flex; align-items: center; gap: 12px; padding: 12px 15px;
  border: 1.5px solid var(--line-mid); border-radius: var(--r);
  background: var(--surface); cursor: pointer;
}
.price:hover { border-color: var(--brand-line); }
.price.checked { border-color: var(--brand); background: var(--brand-soft); }
.price input { accent-color: var(--brand); margin: 0; flex-shrink: 0; width: 17px; height: 17px; }
.price-body { flex: 1; min-width: 0; }
.price-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.price-note { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; margin-block-start: 2px; }
.price-amt {
  font-weight: 700; font-size: 16px; color: var(--brand);
  direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price-amt.free { color: var(--ok); font-size: 13.5px; }

/* ========================= Sponsorship ========================= */
.gift-head { font-weight: 700; font-size: 14.5px; color: var(--brand); margin-block-end: 4px; }
.gifts {
  display: flex; flex-wrap: wrap; gap: 10px; margin-block: 14px;
  align-items: stretch;
}
.gift { position: relative; cursor: pointer; flex: 1 1 auto; min-width: 78px; }
.gift input { position: absolute; opacity: 0; width: 0; height: 0; }
.gift span {
  display: flex; align-items: center; justify-content: center; height: 100%;
  border: 1.5px solid var(--line-mid); border-radius: var(--r);
  background: var(--surface); padding: 10px 12px; font-size: 15.5px;
  font-weight: 700; color: var(--ink-mid); direction: ltr; white-space: nowrap;
}
/* The custom amount is a real field sitting in the same row, not a chip that
   reveals one — it grows to take whatever width the presets leave. */
.gift-other { flex: 1 1 118px; min-width: 104px; }
/* Wrapping a flex row leaves a lone chip stretched across its whole line, so
   go to a tidy grid once there isn't room for one row. Five chips plus the
   "other" field make exactly two rows of three — so "other" takes the last
   cell rather than a line of its own. */
@media (max-width: 560px) {
  .gifts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .gift, .gift-other { min-width: 0; }
}
.gift-other .amount-input, .gift-other .input { height: 100%; }
.gift-other .input { font-size: 15.5px; }
.gift:hover span { border-color: var(--accent); }
.gift input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.gift input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.gift-what { font-size: 13px; color: var(--ink-soft); min-height: 1.4em; }

/* The $ is a real element in the flow, inside a box that carries the border,
   with the input itself stripped bare. It used to be absolutely positioned
   over a padded input, which broke the moment any later rule reset that
   padding — the admin's own `.input { padding: 8px 11px }` did exactly that,
   and the sign sat on top of the digits. Now nothing can overlap it. */
.amount-input {
  display: flex; align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-mid);
  border-radius: var(--r);
  overflow: hidden;
}
.amount-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(137, 23, 56, .1);
}
.amount-input .cur {
  display: grid; place-items: center;
  padding-inline-start: 12px;
  font-weight: 700; color: var(--ink-soft);
  user-select: none; pointer-events: none;
}
.amount-input .input {
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
  padding-inline-start: 5px;
  font-weight: 700;
  min-width: 0;
}
.amount-input .input::-webkit-outer-spin-button,
.amount-input .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input .input { appearance: textfield; -moz-appearance: textfield; }

/* ========================= Total + notice ========================= */
.total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--brand); color: #fff; border-radius: var(--r);
  padding: 18px 20px; margin-block: 22px;
}
.total .k { font-size: 15px; font-weight: 600; }
.total .v { font-size: 22px; font-weight: 700; direction: ltr; font-variant-numeric: tabular-nums; }
.total-lines { margin-block-start: 26px; margin-block-end: 14px; }
.total-line {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14px; color: var(--ink-mid); padding-block: 5px;
}
.total-line .a { direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-line.gift-line { color: var(--accent-dark); font-weight: 600; }

.notice {
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  border-radius: var(--r); padding: 16px 18px;
  font-size: 14px; line-height: 1.65; color: var(--ink);
}
.notice strong { color: var(--brand); }

/* ========================= Payment =========================
   The card fields are cross-origin iframes served by PayArc. Two things about
   them shape everything here:

   1. PayArc puts `style="all: inherit"` on each iframe. That is an inline
      style, so it beats any stylesheet rule, and `all` means the iframe takes
      the wrapper's border, radius, background and padding — drawing a second
      bordered box inside the first — while `width` falls back to the iframe
      default of 300px instead of filling the row. Every override below is
      !important for that reason, and only for that reason.

   2. Their contents are styled by the CSS in #payarc-styles, which their
      script reads and postMessages into each frame. That is the only way to
      reach inside them.
   ========================================================== */
.pay-panel {
  border: 1px solid var(--line-mid);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

/* Trust bar. Says what is happening to the card, and shows the marks people
   look for before typing a number in. */
.pay-bar {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  background: var(--ok-bg);
  border-block-end: 1px solid #cbe7da;
}
.pay-lock {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ok); color: #fff;
}
.pay-lock svg { width: 15px; height: 15px; }
.pay-bar-text { flex: 1; min-width: 0; }
.pay-bar-text .t { display: block; font-size: 14px; font-weight: 700; color: #17603c; line-height: 1.3; }
.pay-bar-text .s { display: block; font-size: 12px; color: #3d7a5c; line-height: 1.4; }

.pay-brands { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.brandmark {
  height: 21px; min-width: 33px; padding-inline: 5px;
  border: 1px solid #d6ded9; border-radius: 4px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: .04em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  direction: ltr;
}
.brandmark.visa { color: #1a1f71; }
.brandmark.amex { color: #016fd0; font-size: 8px; }
/* Mastercard's two circles, drawn rather than fetched — an external image
   would be one more thing to load and one more thing to break. */
.brandmark.mc { gap: 0; }
.brandmark.mc i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.brandmark.mc i:first-child { background: #eb001b; }
.brandmark.mc i:last-child { background: #f79e1b; margin-inline-start: -4px; opacity: .85; }
@media (max-width: 400px) { .brandmark.amex { display: none; } }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; padding: 16px; }
.pay-grid .wide { grid-column: 1 / -1; }
.pay-grid .lbl { margin-block-end: 6px; font-size: 13.5px; }
@media (max-width: 480px) { .pay-grid { grid-template-columns: 1fr; } }

.pay-frame {
  border: 1px solid var(--line-mid); border-radius: var(--r);
  background: var(--surface); height: 46px;
  padding-inline: 6px;
  overflow: hidden;
  /* Centre the frame in the box so any residual height mismatch splits evenly
     above and below rather than all landing at the bottom. */
  display: flex; align-items: center;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.pay-frame:hover { border-color: var(--ink-soft); }
/* PayArc adds .payarc-focus to the wrapper when the field inside is focused,
   which is the only signal we get through the iframe boundary. */
.pay-frame.payarc-focus, .pay-frame:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(137, 23, 56, .1);
}
.pay-frame.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .09); }

/* Undoing `all: inherit`. Without these the frame draws a nested bordered box
   at 300px wide, parked against the start edge of the row. */
.pay-frame iframe {
  width: 100% !important;
  height: 44px !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  vertical-align: middle;
  color-scheme: light;
}

.pay-loading {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-soft);
  padding: 18px 14px;
}
.spin {
  width: 14px; height: 14px; border: 2px solid var(--line-mid);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pay-retry {
  font: inherit; font-weight: 600; color: var(--brand);
  background: none; border: 0; padding: 2px 4px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}

#payarc-form-status:not(:empty) { padding: 0 14px 10px; }

.pay-fine {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 12px; line-height: 1.55; color: var(--ink-soft);
  border-block-start: 1px solid var(--line);
  background: var(--surface-alt);
}
.pay-fine span { display: block; }

.free-note {
  border: 1px dashed var(--ok); background: var(--ok-bg); border-radius: var(--r);
  padding: 15px 17px; font-size: 14px; line-height: 1.65; color: #17603c;
}

/* ========================= Consent, buttons, alerts ========================= */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.6; color: var(--ink-mid);
  cursor: pointer; margin-block: 22px;
}
.consent input {
  width: 19px; height: 19px; margin: 1px 0 0; flex-shrink: 0;
  accent-color: var(--brand); cursor: pointer;
}
.consent.invalid { color: var(--danger); }
.consent strong { color: var(--ink); }

.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font); font-size: 16px; font-weight: 700;
  padding: 15px 24px; border-radius: var(--r); border: 1px solid transparent;
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none;
}
.btn:hover:not(:disabled) { background: var(--brand-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--brand); border-color: var(--line-mid);
  font-size: 14px; padding: 8px 14px;
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-alt); }
.btn-sm { font-size: 14px; padding: 9px 16px; }

.alert {
  border-radius: var(--r); padding: 11px 14px; font-size: 14px;
  font-weight: 600; line-height: 1.5; margin-block-end: 14px; border: 1px solid transparent;
}
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f3c9c6; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #cbe7da; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0dcb4; }

/* ========================= Success ========================= */
.done { text-align: center; }
.done-mark {
  width: 54px; height: 54px; border-radius: 50%; background: var(--ok);
  color: #fff; display: grid; place-items: center; margin: 0 auto 14px;
}
.done-mark svg { width: 26px; height: 26px; }
.done h2 { font-size: 20px; color: var(--ink); }
.done > p { color: var(--ink-mid); font-size: 14.5px; }

.receipt { text-align: start; border: 1px solid var(--line); border-radius: var(--r); margin-block: 16px; overflow: hidden; }
.receipt-head { background: var(--brand); color: #fff; padding: 11px 14px; }
.receipt-head .t { font-weight: 700; font-size: 15px; }
.receipt-head .s { font-size: 12.5px; opacity: .85; }
.receipt-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px;
  font-size: 13.5px; border-block-end: 1px solid var(--line); background: var(--surface);
}
.receipt-row:last-child { border-block-end: 0; }
.receipt-row .k { color: var(--ink-soft); }
.receipt-row .v { font-weight: 600; text-align: end; }

.premium-note {
  border: 1px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--r); padding: 12px 14px; text-align: start;
  font-size: 13.5px; line-height: 1.6; margin-block: 14px;
}
.premium-note strong { color: var(--brand); display: block; margin-block-end: 2px; }

/* ========================= Footer ========================= */
.site-footer {
  border-block-start: 1px solid var(--line); background: var(--surface);
  padding-block: 22px; margin-block-start: 24px;
}
.site-footer .wrap { text-align: center; }
.site-footer .n { font-weight: 700; color: var(--brand); font-size: 15px; }
.site-footer p { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; white-space: pre-line; }
.footer-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-block-start: 10px; font-size: 13.5px; }
.footer-links a { color: var(--brand); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { font-size: 11.5px; color: var(--ink-soft); margin-block-start: 12px; }

/* ============ Embed mode — the form inside an iframe ============ */
/* Keyed on <html>, which an inline script in <head> classes before the first
   paint — so nothing is drawn and then hidden. signup.js sets the same
   classes again later, harmlessly, for the rare case the inline script did
   not run. --embed-bg comes from ?bg=; without it the ground is transparent
   so the host page shows through. */
html.embed body { background: var(--embed-bg, transparent); }
html.embed .site-footer { display: none !important; }
/* The header shrinks to just the language toggle, so one embed serves both
   languages. ?toggle=0 removes it. */
html.embed .site-header { background: transparent; border: 0; }
html.embed .site-header-inner { padding: 4px 8px 0; justify-content: flex-end; }
html.embed .site-header .brand { display: none; }
html.embed .site-header .header-right { margin-inline-start: 0; }
html.embed.embed-notoggle .site-header { display: none !important; }
/* The heading block is off unless the host asks for it with ?hero=1. */
html.embed:not(.embed-hero) .hero { display: none !important; }
html.embed.embed-hero .hero { padding-block: 22px 18px; }
html.embed main { padding-block-start: 0; }
html.embed .wrap { padding-inline: 8px; }

/* ========================= Utilities ========================= */
.ltr { direction: ltr; unicode-bidi: isolate; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
[hidden] { display: none !important; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-alt) 25%, #efe7e4 50%, var(--surface-alt) 75%);
  background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; border-radius: var(--r);
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }



/* ── Seats per rate ───────────────────────────────────────────────────────
   A rate row is no longer a radio — it carries its own quantity, so a party
   can be two adults at the standard rate and two children at theirs, and can
   be a different size on Friday night than at lunch. The row still highlights
   when its count is above zero, which is what "chosen" now means. */
.price { cursor: default; }
.qty {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  border: 1.5px solid var(--line-mid); border-radius: 999px;
  background: var(--surface); padding: 2px;
}
.qty button {
  inline-size: 30px; block-size: 30px; border: 0; border-radius: 50%;
  background: transparent; color: var(--brand); font-size: 19px; font-weight: 700;
  line-height: 1; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  /* A tap target this size on a phone needs no hover to be discoverable. */
  -webkit-tap-highlight-color: transparent;
}
.qty button:hover:not(:disabled) { background: var(--brand-soft); }
.qty button:disabled { color: var(--line-mid); cursor: default; }
.qty-n {
  min-inline-size: 20px; text-align: center; font-size: 15px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums; direction: ltr;
}
.price.checked .qty { border-color: var(--brand); }

/* How many seats this meal holds in total — the number people check. */
.meal-seats {
  margin-inline-start: auto; flex-shrink: 0;
  min-inline-size: 26px; block-size: 26px; padding: 0 7px;
  border-radius: 999px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 480px) {
  /* Name and price stack, the stepper keeps its own column — otherwise a long
     rate name pushes the buttons off the edge. */
  .price { flex-wrap: wrap; row-gap: 6px; }
  .price-body { flex: 1 1 100%; order: 1; }
  .price-amt { order: 2; }
  .qty { order: 3; margin-inline-start: auto; }
}

/* The per-date conditions now live inside the single consent line rather than
   in a box of their own — one agreement, one tick. */
.consent-conditions {
  display: block;
  margin-block-start: 6px;
  color: var(--ink-mid);
}

/* Shown when a content blocker is cutting into PayArc's iframes. Advisory, not
   an error: the probe also trips on a slow network, so it must never look like
   the payment has already failed. */
.pay-warn {
  margin: 0 16px 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--accent-300, #e8c9a4);
  background: var(--accent-50, #fff8f0);
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1.5;
}

/* The one-line explanation under the ZIP field — the only card field that
   needs one, because the processor's rule (5 US digits) is invisible and
   contradicts what most of our guests have in their pocket. */
.pay-grid .pay-help { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }

/* ── Capacity ─────────────────────────────────────────────────────────────
   A sold-out date stays in the rail so people learn it is full rather than
   wondering where it went; it just cannot be booked. */
.occ[data-soldout] { opacity: .68; cursor: not-allowed; }
.occ[data-soldout] .occ-name { color: var(--ink-mid); }
/* The element is `disabled`, so it cannot be clicked or focused — but :hover
   still matches in CSS, and a card that lifts under the cursor reads as
   pressable. Pin it to its resting state. */
.occ[data-soldout]:hover {
  border-color: var(--line-mid);
  background: var(--surface);
}
.occ-soldout {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--ink-mid); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.soldout-note {
  border: 1.5px solid var(--line-mid); border-radius: var(--r); padding: 16px 18px;
  background: var(--surface-alt); color: var(--ink-mid); line-height: 1.55;
}
.soldout-note strong { color: var(--ink); margin-inline-end: 6px; }
/* A full meal: still listed so the guest knows it exists, but inert. */
.meal.is-full { cursor: default; background: var(--surface-alt); border-style: dashed; }
.meal.is-full:hover { border-color: var(--line-mid); background: var(--surface-alt); }
.meal.is-full .meal-title { color: var(--ink-mid); }
.meal.is-full .meal-check { cursor: default; }
.meal-left {
  display: block; margin-block-start: 4px; font-size: 13px; font-weight: 700;
  color: var(--accent-dark); font-variant-numeric: tabular-nums;
}
.seats-left {
  margin: 0 0 12px; font-size: 13.5px; font-weight: 700;
  color: var(--accent-dark); font-variant-numeric: tabular-nums;
}
