:root {
  color-scheme: light;
  /* Le Garage tokens (github.com/excede1/legarage-booking) */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --background: #f4f0eb;
  --card: #ffffff;
  --foreground: #171717;
  --muted-foreground: #8b857c;
  --border: #e7e1d7;
  --neutral-900: #171717;

  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.4;
}

button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.scrollbar-none {
  scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.page {
  min-height: 100dvh;
  padding: 24px 16px 64px;
}

@media (min-width: 768px) {
  .page {
    padding: 40px 24px 72px;
  }
}

.shell {
  margin: 0 auto;
  max-width: 720px;
  animation: rise 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Header */
.header {
  position: relative;
  margin-bottom: 28px;
  padding: 0 52px;
  text-align: center;
}

@media (min-width: 640px) {
  .header {
    margin-bottom: 36px;
  }
}

.wordmark {
  color: var(--neutral-900);
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-transform: uppercase;
}

.tagline {
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 400;
}

.back-button,
.icon-button {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgb(23 23 23 / 0.06);
  color: #404040;
  display: inline-flex;
  justify-content: center;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.back-button {
  height: 40px;
  left: 0;
  position: absolute;
  top: 0;
  width: 40px;
}

@media (min-width: 640px) {
  .back-button {
    height: 44px;
    width: 44px;
  }
}

.back-button svg {
  height: 16px;
  width: 16px;
}

.icon-button {
  flex: 0 0 auto;
  height: 36px;
  width: 36px;
}

.icon-button svg {
  height: 16px;
  width: 16px;
}

.back-button:hover,
.icon-button:hover {
  background: #fafafa;
  box-shadow: 0 4px 12px rgb(23 23 23 / 0.08);
}

.back-button:active,
.icon-button:active {
  transform: scale(0.96);
}

/* Section heading — "Select services" recipe */
.section-label {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Date rail */
.date-rail-wrap {
  position: relative;
}

/* Right-edge fade hint shown only when later dates are off-screen */
.date-rail-wrap::after {
  background: linear-gradient(to right, transparent, var(--background));
  bottom: 4px;
  content: "";
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 220ms ease;
  width: 64px;
  z-index: 1;
}

.date-rail-wrap.can-scroll-right::after {
  opacity: 1;
}

.date-rail-cue {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgb(23 23 23 / 0.14);
  color: #404040;
  display: flex;
  height: 32px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 220ms ease;
  width: 32px;
  z-index: 2;
}

.date-rail-cue svg {
  height: 16px;
  width: 16px;
}

.date-rail-wrap.can-scroll-right .date-rail-cue {
  animation: cue-nudge 1.5s ease-in-out infinite;
  opacity: 1;
}

@keyframes cue-nudge {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(3px);
  }
}

.date-rail {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-chip {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 4px;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 150ms ease;
}

.date-chip:hover {
  border-color: rgb(23 23 23 / 0.25);
}

.date-chip:active {
  transform: scale(0.97);
}

.date-chip .dow,
.date-chip .mon {
  color: var(--muted-foreground);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.date-chip .dom {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.date-chip.is-selected {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--foreground);
}

/* Schedule */
.schedule {
  margin-top: 28px;
}

.schedule-caption {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.class-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .class-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.class-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  text-align: left;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 150ms ease;
  width: 100%;
}

.class-card:hover {
  border-color: rgb(23 23 23 / 0.25);
}

.class-card:active {
  transform: scale(0.99);
}

.class-card.is-selected {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--foreground);
}

.class-card-head {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.class-card-headings {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.class-name {
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.class-sub {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.class-radio {
  align-items: center;
  background: transparent;
  border: 1.5px solid #cfcabf;
  border-radius: 999px;
  display: flex;
  flex: 0 0 auto;
  height: 22px;
  justify-content: center;
  margin-left: 8px;
  transition:
    background 160ms ease,
    border-color 160ms ease;
  width: 22px;
}

.class-radio .check {
  color: #fff;
  height: 13px;
  opacity: 0;
  transition: opacity 160ms ease;
  width: 13px;
}

.class-card.is-selected .class-radio {
  background: var(--foreground);
  border-color: var(--foreground);
}

.class-card.is-selected .class-radio .check {
  opacity: 1;
}

.class-card-foot {
  align-items: center;
  display: flex;
  gap: 12px;
}

.class-time {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 700;
}

.class-meta {
  align-items: center;
  color: var(--muted-foreground);
  display: inline-flex;
  font-size: 0.75rem;
  gap: 4px;
}

.class-meta .ico {
  height: 14px;
  width: 14px;
}

.class-spots {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin-left: auto;
}

.class-spots.is-low {
  color: #b45309;
  font-weight: 600;
}

.empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  padding: 44px 24px;
  text-align: center;
}

/* Booking sheet */
.sheet-layer {
  inset: 0;
  position: fixed;
  z-index: 50;
}

.sheet-backdrop {
  animation: fade-in 280ms ease;
  background: rgb(23 23 23 / 0.4);
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.booking-sheet {
  animation: sheet-up 320ms cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--card);
  border-radius: 24px 24px 0 0;
  bottom: 0;
  box-shadow: 0 -16px 50px rgb(23 23 23 / 0.16);
  left: 50%;
  max-height: 88dvh;
  max-width: 480px;
  overflow-y: auto;
  padding: 12px 22px calc(24px + env(safe-area-inset-bottom));
  position: absolute;
  transform: translateX(-50%);
  width: 100%;
}

@keyframes sheet-up {
  from {
    transform: translate(-50%, 100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sheet-handle {
  background: var(--border);
  border-radius: 999px;
  height: 4px;
  margin: 0 auto 18px;
  width: 40px;
}

.sheet-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-kicker {
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sheet-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sheet-card {
  background: #faf8f4;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.sheet-date {
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.sheet-detail-grid {
  display: grid;
  gap: 16px 18px;
  grid-template-columns: 1fr 1fr;
}

.sheet-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-detail-label {
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-detail-value {
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 600;
}

.btn-primary,
.btn-secondary {
  border: 0;
  width: 100%;
}

.btn-primary {
  align-items: center;
  background: var(--neutral-900);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgb(23 23 23 / 0.18);
  color: #fff;
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 20px;
  padding: 15px 24px;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.btn-primary svg {
  height: 18px;
  width: 18px;
}

.btn-primary:hover {
  background: #262626;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 12px;
}

.btn-secondary:hover {
  color: var(--foreground);
}

/* btn-shine sweep (Le Garage signature) */
.btn-shine {
  overflow: hidden;
  position: relative;
}

.btn-shine::after {
  animation: shine 3.6s ease-in-out infinite;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgb(255 255 255 / 0.22) 50%,
    transparent 70%
  );
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-100%);
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 559px) {
  .date-rail-wrap {
    margin: 0 -16px;
  }

  .date-rail {
    grid-auto-columns: 60px;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding: 0 16px 4px;
  }

  .booking-sheet {
    max-width: none;
  }
}

/* Payment page */
.shell-wide {
  max-width: 1024px;
}

.pay-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.pay-aside {
  order: -1;
}

@media (min-width: 880px) {
  .pay-grid {
    align-items: start;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .pay-aside {
    order: 0;
    position: sticky;
    top: 32px;
  }
}

.pay-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  color: #404040;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  outline: none;
  padding: 10px 14px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
  width: 100%;
}

.input::placeholder {
  color: #b3ada3;
}

.input:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgb(23 23 23 / 0.08);
}

textarea.input {
  min-height: 84px;
  resize: vertical;
}

.add-notes-toggle {
  background: none;
  border: 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notes-field {
  margin-bottom: 16px;
}

.payment-section {
  margin-top: 4px;
}

.payment-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.payment-label {
  color: #404040;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-brands {
  display: inline-flex;
  gap: 5px;
}

.card-brand {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #9c968d;
  display: inline-flex;
  font-size: 8px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  letter-spacing: 0.03em;
  width: 30px;
}

.card-field {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.card-field:focus-within {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgb(23 23 23 / 0.08);
}

.card-glyph {
  color: #b3ada3;
  display: inline-flex;
}

.card-glyph svg {
  height: 18px;
  width: 18px;
}

.card-input {
  background: transparent;
  border: 0;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.card-input::placeholder {
  color: #b3ada3;
}

.card-number {
  flex: 1;
  min-width: 0;
}

.card-exp {
  text-align: right;
  width: 70px;
}

.card-cvc {
  text-align: right;
  width: 44px;
}

.payment-note {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  line-height: 1.5;
  margin-top: 8px;
}

.pay-cta {
  margin-top: 28px;
}

.btn-primary:disabled {
  background: #b8b2a8;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary:disabled:hover {
  background: #b8b2a8;
}

.pay-remaining {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  margin-top: 14px;
  text-align: center;
}

.aside-head {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.aside-head svg {
  color: var(--muted-foreground);
  height: 16px;
  width: 16px;
}

.aside-head h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.summary-line {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.summary-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.summary-dur {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin-top: 2px;
}

.summary-price {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.summary-block {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  padding: 14px 0;
}

.summary-row-icon {
  align-items: flex-start;
  color: var(--foreground);
  display: flex;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 8px;
}

.summary-row-icon svg {
  color: #6b6b6b;
  flex: 0 0 auto;
  height: 15px;
  margin-top: 2px;
  width: 15px;
}

/* The label text sits in a flex child that can shrink below its content width;
   without min-width:0 the flex item refuses to shrink and the row overflows the
   320px aside. overflow-wrap breaks long unspaced strings (e.g. addresses). */
.summary-row-icon span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-totals {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.summary-kv {
  align-items: baseline;
  display: flex;
  font-size: 0.85rem;
  gap: 12px;
  justify-content: space-between;
}

.summary-kv .k {
  color: var(--muted-foreground);
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-kv .k.strong {
  color: var(--foreground);
  font-weight: 600;
}

/* The Pass name can be long ("Intro Offer 2 weeks Unlimited"); let it wrap and
   sit right-aligned instead of clipping. Prices stay on one line (numeric). */
.summary-kv .v {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.summary-kv .v.strong {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.summary-kv .v.muted {
  color: var(--muted-foreground);
}

/* "Buy the pass, first class included" order summary -------------------------
   The first-class line is booked but COVERED by the pass, so it reads as a $0
   "Included" line; the pass line below carries the real price + Total. */
.order-item {
  padding-bottom: 14px;
}

.order-item-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.order-item-label {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-item-amount.included {
  background: #ecf6ef;
  border-radius: 999px;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 3px 10px;
}

.order-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.order-item-note {
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 10px;
}

.order-framing {
  background: #faf8f4;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 14px;
  padding: 10px 12px;
}

.deposit-row {
  border-top: 1px solid #efece7;
  margin-top: 4px;
  padding-top: 8px;
}

.deposit-row .k {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.why-deposit {
  align-items: center;
  background: none;
  border: 0;
  color: var(--muted-foreground);
  display: inline-flex;
  gap: 3px;
  padding: 0;
}

.why-deposit svg {
  height: 13px;
  width: 13px;
}

.why-deposit .why-text {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.deposit-info {
  background: #faf8f4;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted-foreground);
  font-size: 0.72rem;
  line-height: 1.5;
  margin-top: 8px;
  padding: 10px 12px;
}

/* Promo code */
.promo-toggle {
  background: none;
  border: 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.promo-toggle:hover {
  color: var(--foreground);
}

.promo-entry {
  display: flex;
  gap: 8px;
}

.promo-input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  flex: 1;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  min-width: 0;
  outline: none;
  padding: 8px 10px;
  text-transform: uppercase;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.promo-input::placeholder {
  color: #b3ada3;
  letter-spacing: normal;
  text-transform: none;
}

.promo-input:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgb(23 23 23 / 0.08);
}

.promo-apply {
  background: var(--foreground);
  border: 0;
  border-radius: 8px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 14px;
  transition: transform 150ms ease;
}

.promo-apply:active {
  transform: scale(0.97);
}

.promo-msg {
  font-size: 0.72rem;
  margin-top: 6px;
}

.promo-msg:empty {
  display: none;
}

.promo-msg.is-error {
  color: #b42318;
}

.promo-applied {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.promo-remove {
  background: none;
  border: 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 2px;
}

.promo-remove:hover {
  color: var(--foreground);
}

.promo-discount-val {
  color: #15803d;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------------------------
   Server-rendered additions (result banner, waiver, LIVE-gateway warning,
   processing overlay, disabled promo). These extend the owner's design with
   the few states the live booking flow needs; they reuse the same tokens.
---------------------------------------------------------------------------- */

/* Result banner (success / failure of a booking attempt) */
.result-banner {
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.result-banner.is-ok {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}

.result-banner.is-err {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.result-banner small {
  color: var(--muted-foreground);
  display: block;
  font-size: 0.72rem;
  margin-top: 6px;
}

/* Pass selector on the payment page */
.pass-field {
  margin-bottom: 16px;
}

.pass-select {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  outline: none;
  padding: 10px 14px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
  width: 100%;
}

.pass-select:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 3px rgb(23 23 23 / 0.08);
}

.pass-hint {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  line-height: 1.5;
  margin-top: 6px;
}

/* LIVE-gateway warning (kept from the proven flow — real card = real charge) */
.live-warning {
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 10px;
  color: #b54708;
  font-size: 0.72rem;
  line-height: 1.5;
  margin-top: 10px;
  padding: 10px 12px;
}

/* Waiver consent row + modal */
.waiver-row {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.waiver-row input[type="checkbox"] {
  accent-color: var(--foreground);
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.waiver-row label {
  color: var(--foreground);
  font-size: 0.85rem;
  line-height: 1.4;
}

.waiver-link {
  background: none;
  border: 0;
  color: var(--foreground);
  font: inherit;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-layer {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 60;
}

.modal-backdrop {
  animation: fade-in 240ms ease;
  background: rgb(23 23 23 / 0.4);
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.modal-card {
  animation: rise 320ms cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgb(23 23 23 / 0.2);
  max-height: 90vh;
  max-width: 780px;
  overflow-y: auto;
  padding: 28px 32px;
  position: relative;
  width: 100%;
}

.modal-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.modal-close {
  background: none;
  border: 0;
  color: var(--muted-foreground);
  font-size: 1.4rem;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 14px;
}

.modal-body {
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.65;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ol {
  margin: 0;
  padding-left: 1.25rem;
}

.modal-body li {
  margin-bottom: 12px;
  padding-left: 0.25rem;
}

.modal-body li:last-child {
  margin-bottom: 0;
}

/* Processing overlay during a submit */
.processing-layer {
  align-items: center;
  background: rgb(244 240 235 / 0.96);
  display: flex;
  flex-direction: column;
  gap: 16px;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 70;
}

.processing-spinner {
  animation: spin 0.7s linear infinite;
  border: 3px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--foreground);
  height: 44px;
  width: 44px;
}

.processing-layer p {
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Disabled "coming soon" promo field (WL coupon not wired yet — see TODO(promo)) */
.promo-input:disabled,
.promo-apply:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.promo-soon {
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------------------
   Booking confirmation page ("You're booked!") — mirrors legarage-booking's
   BookingConfirmation, server-rendered. Reuses the same tokens + card/btn
   recipes; adds the success hero, detail card, add-to-calendar dropdown.
---------------------------------------------------------------------------- */

.confirm-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
}

.confirm-check {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  color: #15803d;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  width: 64px;
  animation: pop-in 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.confirm-check svg {
  height: 30px;
  width: 30px;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.confirm-title {
  font-size: clamp(1.5rem, 6vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.confirm-sub {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 34ch;
}

.confirm-ref {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.confirm-ref strong {
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.confirm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 20px;
  text-align: left;
}

.confirm-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.confirm-card-when {
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 4px;
}

.confirm-divider {
  background: var(--border);
  height: 1px;
  margin: 16px 0;
}

.confirm-rows {
  display: grid;
  gap: 12px;
}

.confirm-row {
  align-items: flex-start;
  color: var(--foreground);
  display: flex;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 10px;
  line-height: 1.45;
}

.confirm-row svg {
  color: #6b6b6b;
  flex: 0 0 auto;
  height: 16px;
  margin-top: 2px;
  width: 16px;
}

.confirm-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.confirm-row-muted {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 400;
}

.confirm-pass {
  display: grid;
  gap: 8px;
}

.confirm-pass-kv {
  align-items: baseline;
  display: flex;
  font-size: 0.9rem;
  gap: 12px;
  justify-content: space-between;
}

.confirm-pass-kv .k {
  color: var(--muted-foreground);
}

.confirm-pass-kv .v {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.confirm-pass-kv .v.strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.confirm-emailed {
  align-items: center;
  color: var(--muted-foreground);
  display: flex;
  font-size: 0.85rem;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  text-align: center;
}

.confirm-emailed svg {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

/* Add-to-Calendar dropdown */
.cal-wrap {
  position: relative;
}

.btn-outline {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(23 23 23 / 0.05);
  color: var(--foreground);
  display: flex;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  padding: 13px 20px;
  text-decoration: none;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
  width: 100%;
}

.btn-outline svg {
  height: 18px;
  width: 18px;
}

.btn-outline:hover {
  background: #fafafa;
  box-shadow: 0 4px 12px rgb(23 23 23 / 0.07);
}

.btn-outline:active {
  transform: scale(0.99);
}

.cal-toggle {
  margin-bottom: 8px;
}

.cal-chev {
  margin-left: -2px;
  transition: transform 180ms ease;
}

.cal-toggle.is-open .cal-chev {
  transform: rotate(180deg);
}

.cal-menu {
  animation: rise 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(23 23 23 / 0.12);
  margin-bottom: 8px;
  overflow: hidden;
}

.cal-item {
  align-items: center;
  color: var(--foreground);
  display: flex;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 140ms ease;
}

.cal-item + .cal-item {
  border-top: 1px solid var(--border);
}

.cal-item:hover {
  background: #faf8f4;
}

.cal-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.cal-directions {
  margin-bottom: 4px;
}
