:root {
  --bg: #0b0b0c;
  --panel: #151517;
  --border: #2a2a2e;
  --text: #f5f5f7;
  /* Phase 2 wave B (2.7): heading vs body text variables for finer hierarchy.
     Default to --text so existing inheritance is unchanged unless a host opts
     in via override (host-config.json branding.text_title etc). */
  --text-title: var(--text);
  --text-secondary: #c4c4cc;
  --muted: #9a9aa3;
  --accent: #ff3366;
  --accent-text: #fff;
  --success: #2dd4bf;
  --error: #ff5577;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

/* Phase 2 wave B (2.6): boot skeleton — placeholder shapes mimicking the
   final layout, shown until widget JS hydrates and renders real content. */
.boot-skeleton {
  padding: 24px 16px;
  max-width: 520px;
  margin: 0 auto;
}
.boot-skeleton__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.boot-skeleton__thumb,
.boot-skeleton__title,
.boot-skeleton__crumb,
.boot-skeleton__rate {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
}
.boot-skeleton__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}
.boot-skeleton__title {
  width: 60%;
  height: 24px;
}
.boot-skeleton__crumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.boot-skeleton__crumb {
  width: 80px;
  height: 12px;
  border-radius: 999px;
}
.boot-skeleton__rate {
  height: 88px;
  margin-bottom: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .boot-skeleton__thumb,
  .boot-skeleton__title,
  .boot-skeleton__crumb,
  .boot-skeleton__rate {
    animation: dining-shimmer 1.4s linear infinite;
  }
}

/* Phase 1 V2 modal: close X rendered top-right of the widget card.
   Sits at the iframe's top-right edge, which is the card's top-right edge. */
.uw-modal-close-internal {
  position: fixed;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.uw-modal-close-internal:hover {
  background: rgba(255, 255, 255, 0.22);
}
.uw-modal-close-internal:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Session hold countdown chip (opt-in via ?timer=). Sits immediately LEFT of
   the close X; body-level + fixed in MODAL_MODE so it survives render()
   rebuilds. Plain M:SS (textContent) + clock glyph via ::before. */
.uw-session-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.uw-session-timer::before { content: "\23F1"; } /* ⏱ */
.uw-session-timer--fixed {
  position: fixed;
  top: 12px;
  inset-inline-end: 56px; /* clears the 36px close X + ~8px gap */
  z-index: 999999;
}
.uw-session-timer--grace {
  background: rgba(220, 38, 38, 0.20);
  color: #fecaca;
  animation: uw-timer-pulse 1s ease-in-out infinite;
}
@keyframes uw-timer-pulse { 50% { opacity: 0.55; } }

/* Step-1 notice after a hold expiry restart. */
.uw-expired-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* Round 69 close-confirm: shown when buyer tries to dismiss mid-payment. */
.uw-close-confirm {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.uw-close-confirm__card {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius, 8px);
  padding: 20px 22px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.uw-close-confirm__title {
  margin: 0 0 10px 0;
  font-size: 17px;
  font-weight: 600;
}
.uw-close-confirm__body {
  margin: 0 0 18px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted, var(--text));
}
/* Round 73 (plan J): when buyer has a dining slot + buyer info, show this
   detail line with venue / date / time. Lives between body and actions. */
.uw-close-confirm__detail {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 14px 0;
  font-style: italic;
}
.uw-close-confirm__error {
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}
.uw-close-confirm__actions {
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.uw-close-confirm__actions .btn { width: 100%; }
@media (min-width: 480px) {
  .uw-close-confirm__actions { flex-direction: row-reverse; }
  .uw-close-confirm__actions .btn { width: auto; flex: 1 1 0; }
}

#root {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px;
}

/* Round 25: responsive two-column layout. Mobile (default) — content stacks
   below the "Your Order" sidebar (column-reverse, like Universe). Desktop
   (>=768px) — sidebar fixed-width on the right, content flex-grows on the
   left. */

@media (min-width: 768px) {
  #root {
    max-width: 920px;
  }
}

.uw-app {
  display: flex;
  flex-direction: column;
}

.uw-app__header {
  /* clean, contains title + breadcrumb. */
  margin-bottom: 12px;
}

/* Round 73 (plan C): countdown + urgency live here, above the body row,
   centered horizontally across the full app width. The existing
   .urgency + .uw-countdown rules already do text-align: center. */
.uw-app__banner {
  text-align: center;
  margin-bottom: 12px;
}
.uw-app__banner:empty {
  display: none;
}

.uw-app__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uw-app__content {
  min-width: 0;
}

.uw-app__sidebar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

/* Round 73 (plan H): right-side rail wraps the sidebar + pay-button CTA.
   On desktop, the whole rail sticks (sidebar + pay buttons together). */
.uw-app__rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.uw-app__cta:empty {
  display: none;
}
.uw-app__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uw-app__cta .btn {
  width: 100%;
  margin-top: 0;
}

/* Round 32: mobile hides the right-rail SIDEBAR entirely (rail is still
   in the flex flow so the CTA slot below it shows the pay button). Cart
   info and the discount-code field move inline into specific steps
   (renderSelect and renderPay handle their own mobile-cost-summary blocks). */
@media (max-width: 767px) {
  .uw-app__sidebar { display: none; }
  /* Drop the ⏱ icon on mobile so the fixed countdown pill's left edge doesn't
     encroach on the centered header title. Desktop keeps the icon. */
  .uw-session-timer::before { content: none; }
}

@media (min-width: 768px) {
  .uw-app__body {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }
  .uw-app__content {
    flex: 3;
  }
  /* Round 73 (plan H): rail (sidebar + cta) is the right column now; sticky
     moved from sidebar onto rail so the whole right column sticks together. */
  .uw-app__rail {
    flex: 2;
    position: sticky;
    top: 16px;
    align-self: flex-start;
  }
  /* Inline mobile summaries are mobile-only — hide on desktop where the
     sidebar already shows the same data. */
  .mobile-cost-summary { display: none !important; }
}

/* Round 32: mobile-only inline cart blocks rendered inside step content. */
.mobile-cost-summary {
  margin: 16px 0 0;
}

.mobile-cost-summary__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}

.mobile-cost-summary__discount {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mobile-cost-summary__discount input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-cost-summary__discount .btn {
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}

.mobile-cost-summary__discount-applied {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}

.mobile-cost-summary__discount-applied .btn-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.mobile-cost-summary__breakdown {
  margin: 0 0 16px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mobile-cost-summary__heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.mobile-cost-summary__date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 12px;
}

.mobile-cost-summary__dining {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mobile-cost-summary__dining .muted {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  margin-inline-start: 22px;
}

.mobile-cost-summary__dining-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  font-size: 12px;
}

.mobile-cost-summary__dining-icon {
  font-size: 14px;
  line-height: 1;
}

.mobile-cost-summary__items {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.mobile-cost-summary__items li {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 4px 0;
  font-size: 14px;
}

.mobile-cost-summary__items .line-qty {
  font-weight: 600;
  white-space: nowrap;
}
.mobile-cost-summary__items .line-x {
  color: var(--muted);
  margin: 0 6px 0 2px;
}
.mobile-cost-summary__items .line-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-cost-summary__items .line-price {
  white-space: nowrap;
  margin-inline-start: 8px;
}

.mobile-cost-summary__breakdown > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.mobile-cost-summary__breakdown > ul > li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

.mobile-cost-summary__breakdown .total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

.uw-app__footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-start;  /* Round 54: locale moves bottom-LEFT to clear bottom-right for chat launcher */
  align-items: center;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
}

.locale-select {
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 4px 26px 4px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%239aa0a6' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.locale-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ----- Header (Round 25 — clean, no date/venue/address) ----- */

.uw-header {
  text-align: center;
}

.uw-header__image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 8px;
}

.uw-header__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.15;
}

.breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb__item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.breadcrumb__item--active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.breadcrumb__item--done {
  color: var(--text);
}

/* ----- Sidebar inner ----- */

.uw-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-header {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

/* Old .sidebar-discount grid + inner input/.btn rules were used by the
   pre-Round-66.2 markup. The V2-style markup (.sidebar-discount__field +
   .sidebar-discount__apply) at line ~519+ supersedes them. Keeping these
   commented for reference in case any rendering path falls back. */

.sidebar-discount-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.sidebar-discount-applied span {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Round 66.2: V2-style unlock pill (green alert) below the code input */
.sidebar-unlock-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--success);
  margin-bottom: 8px;
}
.sidebar-unlock-pill__icon { flex: 0 0 auto; }

/* Round 66.4: V2-style — plain label above, input+Apply row below.
   Override global `label` uppercase rule (widget.css ~line 915) and the
   global input[type=text] rule (~line 943) via specificity. */
.sidebar-discount {
  display: block;
  margin-bottom: 0;
}
.sidebar-discount__label {
  display: block;
  font-size: 13px;
  margin: 0 0 6px 0;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  font-weight: 400;
}
.sidebar-discount__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.sidebar-discount__row input.sidebar-discount__input,
.sidebar-discount__row input[type=text].sidebar-discount__input {
  flex: 1 1 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  outline: 0;
}
.sidebar-discount__row input.sidebar-discount__input:focus {
  border-color: var(--accent);
}
.sidebar-discount__apply {
  flex: 0 0 auto;
  padding: 0 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.sidebar-discount__apply:hover { background: rgba(255,255,255,0.04); }
.sidebar-discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid var(--success);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  margin-top: 8px;
}
.sidebar-discount-tag__close {
  background: transparent;
  border: 0;
  color: currentColor;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

/* Round 66.2: lock icon next to qty selector for unlocked rate cards */
.rate-unlocked-icon {
  grid-column: -3 / -2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  color: var(--muted);
  display: inline-flex;
}

.sidebar-date {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-venue {
  color: var(--muted);
  font-size: 12px;
  margin-top: -6px;
}

.sidebar-line-items {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-line-items li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
}

.line-qty {
  font-weight: 600;
}

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

.line-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.sidebar-empty {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.sidebar-dining {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.sidebar-dining__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-dining__icon {
  font-size: 14px;
  line-height: 1;
}

.sidebar-dining__line {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-dining__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

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

.sidebar-dining__edit,
.sidebar-dining__remove {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

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

.sidebar-dining__edit:hover,
.sidebar-dining__remove:hover {
  text-decoration: none;
}

.sidebar-totals {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-totals li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.sidebar-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.field-error {
  color: var(--error);
  font-size: 12px;
}

.field-error:empty {
  display: none;
}

/* Round 78: email typo soft-suggestion (gmail.con → gmail.com). Non-
   blocking — buyer can ignore and submit anyway. */
.email-suggest {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.email-suggest:empty {
  display: none;
}
.email-suggest-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}
.email-suggest-btn:hover {
  text-decoration: none;
}

.loading, .error-banner {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.error-banner { color: var(--error); }

/* --- Event header --- */
.event-header { margin-bottom: 20px; }
.event-image {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--panel);
}
.event-title {
  font-size: 24px;
  font-weight: 700;
  margin: 16px 0 4px;
  letter-spacing: -0.01em;
}
.event-meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --- Steps --- */
.steps {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.step {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border-top: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.step.active { color: var(--text); border-color: var(--accent); }
.step.done { color: var(--success); border-color: var(--success); }

/* --- Rate cards --- */
.rate {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 8px;
  row-gap: 6px;
}
.rate-name {
  grid-column: 1 / -2;
  grid-row: 1;
  font-weight: 600;
  margin-bottom: 9px;
}
.rate-name-text {
  word-break: break-word;
}
.rate > .rate-pill {
  grid-column: -2 / -1;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  white-space: nowrap;
  margin-top: 4px;
}
.rate-desc {
  grid-column: 1 / -2;
  grid-row: 2;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}
.rate > .rate-qty,
.rate > .rate-stepper,
.rate > .rate-soldout {
  grid-column: -2 / -1;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
}
.rate-price {
  grid-column: 1 / -1;
  grid-row: 3;
  font-weight: 600;
}
.rate-price-fees { color: var(--muted); font-size: 12px; font-weight: 400; }

/* Round 24.5: per-rate inline discount price */
.rate-price--struck {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-inline-end: 6px;
  font-size: 13px;
}

.rate-price--discounted {
  color: var(--accent);
}
.rate-qty {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 22px 5px 10px;
  font-size: 15px;
  font-family: inherit;
  min-width: 56px;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23a4a4ad' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 7px;
}
.rate-qty:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.rate-soldout {
  display: inline-block;
  padding: 4px 10px;
  background: var(--error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

/* Round 33: dim sold-out cards so they read as inactive at a glance.
   Pill stays fully opaque so the badge pops. */
.rate--sold-out { opacity: 0.55; }
.rate--sold-out .rate-soldout { opacity: 1; }

/* Round 80.4: brief pulse on the SOLD OUT pill the first time the rate
   list paints. Single 1.4s animation, doesn't loop — draws the eye to
   the scarcity without becoming distracting noise. */
@keyframes uw-soldout-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.rate-soldout {
  animation: uw-soldout-pulse 0.7s ease-in-out 2;
  animation-delay: 0.1s;
}

/* Round 80.4: live-stats banner sits below the existing red urgency
   line. Centered, smaller, muted color so it reads as secondary fact
   rather than competing red urgency. */
.live-stats {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 2px 0 8px;
}

/* Round 80.4: stepper UI on rate rows (replaces the bare select). Big
   tap targets (>=36px), accent-colored + for the add affordance. */
.rate-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.rate-stepper__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.rate-stepper__btn:hover:not(:disabled) { border-color: var(--accent); }
.rate-stepper__btn:disabled { opacity: 0.4; cursor: default; }
.rate-stepper__plus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.rate-stepper__value {
  min-width: 1.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* --- Order summary --- */
.summary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
}
.summary-row .muted { color: var(--muted); }

/* --- Forms --- */
.form-grid { display: grid; gap: 10px; margin: 12px 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Round 58: phone country select + phone input side-by-side */
.phone-input-group {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.phone-input-group select#f-phone-country {
  flex: 0 0 auto;
  width: 112px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  font: inherit;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Emoji", sans-serif;
}
.phone-input-group input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 480px) {
  .phone-input-group select#f-phone-country { width: 96px; }
}

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--accent); }

.stripe-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

/* --- Button --- */
.btn {
  width: 100%;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.15s;
  font-family: inherit;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); }

/* --- Misc --- */
.error { color: var(--error); font-size: 13px; margin-top: 8px; }
.success-card { text-align: center; padding: 40px 20px; }
.success-card .icon { font-size: 48px; }
.success-card h2 { margin: 16px 0 8px; }
.success-card p { color: var(--muted); }
/* Round 67: richer confirmation page */
.success-card__pdf-btn {
  display: inline-block;
  margin: 16px auto 0;
  text-decoration: none;
}
.success-card__date {
  margin-top: 20px;
  font-weight: 500;
}
.success-card__venue {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.success-card__cal-group {
  margin-top: 20px;
}
.success-card__cal-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.success-card__cal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.success-card__cal-buttons .btn { margin: 0; padding: 6px 14px; font-size: 13px; }
.fine-print { font-size: 11px; color: var(--muted); margin-top: 16px; line-height: 1.4; }

.test-banner {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

h3 { font-size: 14px; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

input[type=checkbox] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
}

code {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* --- Upsell card (rate upgrade + booking protection) --- */
.upsell-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
}
.upsell-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}
.upsell-heading {
  margin: 4px 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.upsell-subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.upsell-subtitle strong {
  color: var(--accent);
  font-weight: 700;
}
.upsell-description {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: start;
}
.upsell-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: start;
  font-size: 13px;
}
.upsell-benefits li {
  position: relative;
  padding-inline-start: 22px;
  margin: 6px 0;
  color: var(--text);
}
.upsell-benefits li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
}

/* --- Calendar widget (month-grid renderer, Round 71) --- */
.calendar-widget {
  padding: 4px;
  margin-bottom: 24px;
}
.calendar-widget__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
}
.calendar-nav__label {
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  flex: 1;
}
.calendar-nav__btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.calendar-nav__btn:hover {
  background: var(--panel);
}

.calendar-grid__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.calendar-grid__dow-cell {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}
.calendar-grid__cell {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.calendar-grid__cell--empty {
  background: transparent;
  border-color: transparent;
}
.calendar-grid__cell--today {
  border-color: var(--border);
  font-weight: 700;
}
.calendar-grid__cell--event {
  background: var(--panel);
  border-color: var(--border);
  cursor: pointer;
  font-weight: 600;
}
.calendar-grid__cell--event::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.calendar-grid__cell--event:hover {
  background: var(--bg);
  border-color: var(--accent);
}
.calendar-grid__cell--soldout {
  text-decoration: line-through;
  color: var(--muted);
}
.calendar-grid__cell--soldout::after {
  background: var(--muted);
}
.calendar-grid__cell--selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.calendar-grid__cell--selected::after {
  background: #fff;
}
.calendar-grid__cell:disabled {
  cursor: default;
}

.calendar-day-detail {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-day-detail:empty {
  display: none;
}
.calendar-day-detail__heading {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.calendar-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}
.calendar-slot:not(:last-child) { border-bottom: 1px solid var(--border); }
.calendar-slot__info { flex: 1; min-width: 0; }
.calendar-slot__time { font-weight: 600; font-size: 15px; }
.calendar-slot__price { color: var(--muted); font-size: 13px; margin-top: 2px; }
.calendar-slot__urgency { color: var(--error); font-size: 12px; font-weight: 600; margin-top: 4px; }
.calendar-slot .btn { width: auto; padding: 8px 16px; margin: 0; flex-shrink: 0; }

/* --- Listings widget grid --- */
.listings-grid {
  display: grid;
  gap: 16px;
  padding: 4px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
.listing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.listing-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg);
  display: block;
}
.listing-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.listing-card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.listing-card__meta { color: var(--muted); font-size: 13px; }
.listing-card__price {
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
}
.listing-card .btn {
  margin-top: 10px;
}
.listing-card .btn.disabled,
.listing-card .btn:disabled { cursor: not-allowed; }

/* --- Join waitlist --- */
.join-waitlist {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-top: 20px;
}
.join-waitlist__header { text-align: center; margin-bottom: 18px; }
.join-waitlist__header h2 { margin: 0 0 8px; letter-spacing: -0.01em; }
.join-waitlist__header p { color: var(--muted); font-size: 14px; margin: 0; }
.join-waitlist__body input.email-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 12px;
}
.added-to-waitlist .success-card { text-align: center; }
.added-to-waitlist .success-card .icon { font-size: 48px; }
.added-to-waitlist .success-card h2 { margin: 16px 0 8px; }
.added-to-waitlist .success-card p { color: var(--muted); margin-bottom: 20px; }
.added-to-waitlist .success-card .btn { display: inline-block; text-decoration: none; }

/* --- Booking protection (XCover) --- */
.bp-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0;
}
.bp-loading {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
}

/* Round 32b: 2-column rows (icon + content) matching Universe's layout. */
.bp-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.bp-row--header { align-items: center; margin-bottom: 8px; }
.bp-row--summary {
  grid-template-columns: 1fr;
  margin: 8px 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}
.bp-row--benefit { font-size: 13px; color: var(--text); }
.bp-row--benefit strong { font-weight: 600; }

.bp-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
.bp-icon--shield { width: 32px; height: 32px; }
.bp-icon--tick { width: 18px; height: 18px; margin-top: 2px; }

.bp-heading {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.bp-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text);
}
.bp-option-label.selected {
  border-color: var(--accent);
  background: rgba(255, 51, 102, 0.05);
}
.bp-option-label input[type=radio] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.bp-option-label input[type=radio]:checked {
  border-color: var(--accent);
  background: var(--bg);
}
.bp-option-label input[type=radio]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.bp-option-text {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bp-premium {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.bp-footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}
.bp-footer a { color: var(--text); }

/* --- Promotion pill --- */
.rate-pill {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.4;
}
/* Round 41: semantic color overrides — universal red for urgency,
   universal yellow for promo, regardless of host accent. */
.rate-pill.rate-pill--urgency {
  background: #ef4444;
  color: #ffffff;
}
.rate-pill.rate-pill--promo {
  background: #fbbf24;
  color: #1a1a1a;
}

.rate-option {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-inline-start: 4px;
}

/* --- PWYW input --- */
.rate-pwyw input {
  width: 140px;
  margin-top: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
}
.rate-pwyw input::-webkit-outer-spin-button,
.rate-pwyw input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rate-pwyw input { -moz-appearance: textfield; }

/* --- Description --- */
.event-desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.event-desc.expanded { max-height: none; }

/* --- Round 35: countdown to event (live ticker on step 1) --- */
.uw-countdown {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 6px 0 2px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;       /* keeps digit width stable as values tick */
}

/* --- Urgency banner (Round 34.2: muted one-line, less attention-stealing) --- */
.urgency {
  color: var(--error);
  margin: 2px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
/* Solid flame icon, monochrome — picks up `currentColor` (= var(--error)) so
   it's pure red, not the multi-color emoji glyph the OS otherwise renders. */
.urgency::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-end: 6px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.963 2.286a.75.75 0 0 0-1.071-.136 9.742 9.742 0 0 0-3.539 6.177A7.547 7.547 0 0 1 6.648 6.61a.75.75 0 0 0-1.152-.082A9 9 0 1 0 15.68 4.534a7.46 7.46 0 0 1-2.717-2.248ZM15.75 14.25a3.75 3.75 0 1 1-7.313-1.172c.628.465 1.35.81 2.133 1.006a5.99 5.99 0 0 1 1.925-3.546 3.75 3.75 0 0 1 3.255 3.712Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.963 2.286a.75.75 0 0 0-1.071-.136 9.742 9.742 0 0 0-3.539 6.177A7.547 7.547 0 0 1 6.648 6.61a.75.75 0 0 0-1.152-.082A9 9 0 1 0 15.68 4.534a7.46 7.46 0 0 1-2.717-2.248ZM15.75 14.25a3.75 3.75 0 1 1-7.313-1.172c.628.465 1.35.81 2.133 1.006a5.99 5.99 0 0 1 1.925-3.546 3.75 3.75 0 0 1 3.255 3.712Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* --- Sold-out card --- */
.sold-out-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  margin-top: 20px;
}
.sold-out-card h2 { margin: 0 0 8px; }
.sold-out-card p { color: var(--muted); margin: 8px 0; font-size: 14px; }
.sold-out-card .btn { margin-top: 16px; display: inline-block; text-decoration: none; }

/* --- Error / guard cards --- */
.error-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  margin-top: 20px;
}
.error-card h2 { margin: 0 0 8px; color: var(--error); }
.error-card p { color: var(--muted); font-size: 14px; }
.error-card .btn { display: inline-block; text-decoration: none; margin-top: 16px; }

/* --- Inline-input rows (discount / access key) --- */
.inline-input { display: flex; gap: 8px; }
.inline-input input { flex: 1; }
.inline-input .btn { width: auto; padding: 10px 16px; flex-shrink: 0; }

.inline-status { font-size: 12px; margin-top: 6px; min-height: 16px; }
.inline-status.success { color: var(--success); }
.inline-status.error { color: var(--error); }

/* --- Marketing opt-ins --- */
.marketing-opt-in {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 12px;
  margin: 8px 0;
  cursor: pointer;
}
.marketing-opt-in input { margin-top: 2px; }
.marketing-opt-in span { color: var(--muted); }
.marketing-opt-in a { color: var(--text); }
.marketing-disclosure {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.marketing-disclosure a { color: var(--text); }

/* --- Waiver host field --- */
label.waiver {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
label.waiver input[type=checkbox] { margin-top: 3px; }

.waiver__body { flex: 1 1 auto; min-width: 0; }

.waiver-text {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.waiver:not(.waiver--collapsed) .waiver-text {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.waiver__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 2px;
  font: inherit;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  display: block;
}

.waiver__toggle:hover { text-decoration: none; }

/* --- Generic select styling matching inputs --- */
select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}
input[type=number] {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}

/* ----- Dining step (1.6) — Round 21+22 ----- */

.dining-section .venue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.venue-row {
  display: flex;
  flex-direction: column;     /* header on top, time pills below — both left-aligned */
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: start;
}

.venue-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.venue-card__image,
.venue-card__image-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  background: #f5f5f5;        /* near-white so dark wordmarks render legibly */
  padding: 6px;
  flex: 0 0 72px;
}

.venue-card__text {
  text-align: start;
  flex: 1 1 auto;
  min-width: 0;
}

.venue-card__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.venue-card__cuisine {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.venue-times {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

/* Round 73.2: compact mode (per-host `dining.compact_times: true`).
   Collapses the time-slot grid into a single-line flex row of 3 pills +
   a "+N more" button. Expanded view drops this class and reverts to grid. */
.venue-times--compact {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}
.venue-times--compact .time-pill {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}
.venue-times--compact .time-pill--more {
  flex: 0 0 auto;
}

.time-pill {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-height: 36px;
  justify-content: center;
  transition: background 100ms, border-color 100ms;
}

.time-pill__time {
  font-weight: 500;
}

.time-pill__area {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-align: start;
}

.time-pill__area-text {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .time-pill__area--marquee .time-pill__area-text {
    animation: pill-area-marquee 6s ease-in-out infinite;
  }

  @keyframes pill-area-marquee {
    0%, 15%   { transform: translateX(0); }
    50%, 65%  { transform: translateX(calc(-1 * var(--marquee-distance, 0px))); }
    100%      { transform: translateX(0); }
  }
}

.time-pill--selected .time-pill__area {
  color: rgba(0, 0, 0, 0.55);
}

.time-pill:hover {
  border-color: var(--accent);
}

.time-pill--selected {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.time-pill--more {
  color: var(--muted);
  border-style: dashed;
}

.time-pill--error {
  color: var(--muted);
  font-style: italic;
}

.venue-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
  width: 100%;
}

.venue-row--loading .venue-times {
  min-height: 32px;
}

.dining-skeleton {
  height: 28px;
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .dining-skeleton {
    animation: dining-shimmer 1.4s linear infinite;
  }
  @keyframes dining-shimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
  }
}

.dining-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* Round 35.1: SevenRooms-style search pill — single rounded bar with three
   sections (party / date / time), each opens its native picker on click. */
.dining-search-pill {
  display: inline-flex;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 8px 0 14px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
}

.dining-search-pill__section {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  color: inherit;
}

.dining-search-pill__section:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dining-search-pill__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}

.dining-search-pill__value {
  pointer-events: none;
}

.dining-search-pill__divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* Native control overlays the section invisibly so a click anywhere on the
   styled section opens the native picker. */
/* Party-size <select> overlay (still uses absolute opacity-0 trick — selects
   open reliably from any click). */
.dining-search-pill__native--overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: transparent;
  font: inherit;
  color-scheme: dark;
}

/* Round 37: date pill — button + custom popover. Native date pickers are
   blocked in cross-origin iframes, so we render our own day list. */
.dining-search-pill__section--button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.dining-date-popover {
  /* position + top + left set inline by JS. Appended to <body> so the pill's
     overflow:hidden doesn't clip the calendar. */
  z-index: 1000;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  width: 280px;
  font-size: 13px;
  color: var(--text);
}

.dining-date-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dining-date-popover__title {
  font-weight: 600;
  font-size: 14px;
}

.dining-date-popover__nav {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font: inherit;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
}
.dining-date-popover__nav:hover { background: rgba(255, 255, 255, 0.08); }

.dining-date-popover__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
}

.dining-date-popover__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dining-date-popover__pad {
  /* empty calendar cell before month-start day */
}

.dining-date-popover__day {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  height: 32px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  padding: 0;
}

.dining-date-popover__day:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.dining-date-popover__day.is-today {
  font-weight: 700;
  color: var(--accent);
}

.dining-date-popover__day.is-selected {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.dining-date-popover__day.is-past {
  color: var(--muted);
  opacity: 0.4;
  cursor: default;
}

.dining-search-pill__section:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 999px;
}

.dining-party {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.dining-party select {
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 4px 26px 4px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%239aa0a6' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.dining-party select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ----- Selected-reservation summary on steps 2 / 3 ----- */

.dining-selection {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.dining-selection__icon {
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
}

.dining-selection__body {
  flex: 1 1 auto;
  font-size: 14px;
}

.dining-selection__title {
  font-weight: 600;
  margin-bottom: 2px;
}

.dining-selection__details {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.dining-selection__actions {
  font-size: 13px;
}

.btn-link {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  text-decoration: none;
}

/* ----- Stripe Payment Request Button (Apple Pay / Google Pay) ----- */

.payment-request-button {
  margin: 12px 0 0;
}

/* On-page PRB diagnostics — only rendered when ?debug=1 */
.prb-debug {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  line-height: 1.4;
}

.pay-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.pay-divider::before,
.pay-divider::after {
  content: '';
  flex: 1 1 auto;
  border-bottom: 1px solid var(--border);
}

/* ----- Dining confirmation on the success card ----- */

.dining-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 12px;
  border-radius: var(--radius);
  text-align: start;
  border: 1px solid var(--border);
}

.dining-confirmation--success {
  border-color: var(--success);
  background: rgba(45, 212, 191, 0.06);
}

.dining-confirmation--error {
  border-color: var(--error);
  background: rgba(255, 85, 119, 0.06);
}

.dining-confirmation__icon {
  font-size: 24px;
  line-height: 1;
  flex: 0 0 auto;
}

.dining-confirmation__body {
  flex: 1 1 auto;
  font-size: 14px;
}

.dining-confirmation__body .muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.dining-confirmation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ----- Round 81: timeslot picker for timed_entry listings ----- */

.timeslot-picker {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
}

.timeslot-picker__month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.timeslot-picker__month-label {
  font-size: 16px;
  font-weight: 600;
  flex: 1 1 auto;
  text-align: center;
}

.timeslot-picker__nav {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeslot-picker__nav:hover:not(:disabled) {
  border-color: var(--accent);
}

.timeslot-picker__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.timeslot-picker__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.timeslot-picker__dow span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.timeslot-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.timeslot-picker__day {
  position: relative;
  aspect-ratio: 1;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.timeslot-picker__day--empty {
  visibility: hidden;
}

.timeslot-picker__day:disabled {
  cursor: default;
  color: var(--muted);
}

.timeslot-picker__day--past {
  opacity: 0.35;
}

.timeslot-picker__day--has-events:not(:disabled):hover {
  border-color: var(--accent);
}

.timeslot-picker__day--today {
  font-weight: 700;
  border-color: var(--border);
}

.timeslot-picker__day--selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.timeslot-picker__day--sold-out .timeslot-picker__day-num {
  text-decoration: line-through;
  opacity: 0.55;
}

.timeslot-picker__day-num {
  font-variant-numeric: tabular-nums;
}

.timeslot-picker__day-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.timeslot-picker__day--selected .timeslot-picker__day-dot {
  background: #fff;
}

.timeslot-picker__detail {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeslot-picker__slot {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  cursor: pointer;
  text-align: start;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeslot-picker__slot:hover:not(:disabled) {
  border-color: var(--accent);
}

.timeslot-picker__slot--disabled {
  opacity: 0.5;
  cursor: default;
}

.timeslot-picker__slot-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timeslot-picker__slot-status {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeslot-picker__hint,
.timeslot-picker__empty {
  margin-top: 12px;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.picker-back {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 12px;
  text-align: start;
  text-decoration: underline;
}

.picker-back:hover {
  opacity: 0.8;
}

/* ----- Round 84: virtual waiting room ----- */

.queue-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 12px;
}

.queue-room__flyer {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.queue-room__headline {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
}

.queue-room__position {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.queue-room__eta {
  font-size: 14px;
  color: var(--muted);
}

.queue-room__pulse {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.queue-room__pulse span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: uw-queue-pulse 1.4s ease-in-out infinite;
}

.queue-room__pulse span:nth-child(2) { animation-delay: 0.2s; }
.queue-room__pulse span:nth-child(3) { animation-delay: 0.4s; }

@keyframes uw-queue-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

.queue-room__notify {
  margin-top: 16px;
  width: 100%;
  max-width: 380px;
  text-align: start;
}

.queue-room__notify label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.queue-room__notify-row {
  display: flex;
  gap: 8px;
}

.queue-room__notify-row input {
  flex: 1 1 auto;
  min-width: 0;
}

.queue-room__notify-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Round 84.4: concurrency slot countdown chip (in checkout banner) */
.queue-slot-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px auto 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.queue-slot-timer::before { content: "\23F1"; } /* ⏱ */
