/* The booking page on a website (/_booking/, src/site-customer-runtime.js bookingPage): the booking flow drawn as one of
   the website's own pages. Loaded after customer-account.css (which maps the website's design tokens --color-*, --radius
   and --font-* onto --ww-account-* and, through customer-login.js applyCustomerTheme, measures the website's own primary
   button into --ww-customer-button-*) and booking.css (the flow itself). Nothing here names a colour, a font or a
   corner of its own: every value is the website's, with a plain fallback for a website that defines none. */
.ww-booking { max-width: 60rem; margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem); }
.ww-booking .ww-booking-head { max-width: 42rem; margin: 0 0 clamp(1.5rem, 4vw, 3rem); }
/* The title in the website's own heading face and scale: its h1 rule paints it, and nothing here names a face for it.
   (The theme script measures the heading face off the page's first h1, which on this page is this title: told to
   inherit, it measured the body face on Vianca Palacios, 2026-11-01.) The intro is quieter, like the site's lead text. */
.ww-booking h1 { margin: 0 0 .75rem; }
.ww-booking #intro { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ww-account-muted); }
.ww-booking #intro:empty { display: none; }
.ww-booking #status { margin: 1rem 0 0; font-weight: 600; }
.ww-booking noscript { display: block; margin: 1rem 0; }

/* The card: the website's surface, line and corner. */
.ww-booking .scheduler-card, .ww-booking .booking-card {
  margin: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--ww-account-surface); border: 1px solid var(--ww-account-border);
  border-radius: var(--ww-account-radius); box-shadow: none;
}
.ww-booking .booking-card + .booking-card, .ww-booking .booking-account .scheduler-card { margin-top: 1.5rem; }
/* Inner headings: the design's own heading token where the website has one, else the measured heading face. */
.ww-booking .scheduler-card h2, .ww-booking .booking-card h3, .ww-booking .booking-done-heading {
  font-family: var(--font-heading, var(--ww-customer-heading-font, inherit)); color: inherit; line-height: 1.2;
}
.ww-booking .scheduler-card h2 { font-size: 1.6rem; margin: 0 0 .75rem; }
.ww-booking .booking-card h3 { font-size: 1.25rem; margin: 1.25rem 0 .75rem; }
.ww-booking .portal-small, .ww-booking .booking-option-meta, .ww-booking .booking-details dt, .ww-booking .booking-slot-meta { font-size: .9rem; color: var(--ww-account-muted); }
.ww-booking .booking-note, .ww-booking .booking-terms { background: color-mix(in srgb, var(--ww-account-accent) 8%, var(--ww-account-surface)); color: inherit; }
.ww-booking .booking-note { border-left-color: var(--ww-account-accent); border-radius: min(var(--ww-account-radius), 10px); }

/* Buttons: the website's own primary button, measured (customer-login.js applyCustomerTheme) or from its tokens. The
   secondary ones (Back, Change, Book another) are the same shape, outlined. */
.ww-booking .portal-button, .ww-booking .booking-actions a.portal-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; cursor: pointer; text-decoration: none;
  font-family: var(--ww-customer-button-font, var(--ww-customer-font, inherit)); font-size: var(--ww-customer-button-size, .95rem); font-weight: var(--ww-customer-button-weight, 600);
  letter-spacing: var(--ww-customer-button-spacing, normal); text-transform: var(--ww-customer-button-transform, none); line-height: 1.2;
  padding: var(--ww-customer-button-padding, .75rem 1.5rem); border-radius: var(--ww-customer-button-radius, var(--ww-account-radius));
  color: var(--ww-account-accent); background: transparent; border: 1px solid var(--ww-account-accent); transition: opacity .2s, transform .2s;
}
.ww-booking .portal-button.primary, .ww-booking .booking-actions a.portal-button.primary { color: var(--ww-account-accent-text); background: var(--ww-account-accent); border-color: var(--ww-account-accent); }
.ww-booking .portal-button:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); }
.ww-booking .portal-button:disabled { opacity: .55; cursor: wait; transform: none; }
.ww-booking .portal-button-danger { color: inherit; border-color: var(--ww-account-border); background: transparent; }
.ww-booking .portal-link-button, .ww-booking .booking-keep .portal-link-button {
  min-height: 24px; padding: 0; border: 0; background: none; color: var(--ww-account-accent); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.ww-booking .booking-grid-step { min-width: 44px; padding: 0 .9rem; font-size: 1.3rem; }
.ww-booking .scheduler-actions { gap: .75rem 1rem; }

/* Fields: the website's canvas inside the card, its line and half its corner, so a field reads as a field on any surface.
   A field's own label keeps the website's label look (Heal: small, spaced capitals). An option, a time or a terms box is
   a <label> around a paragraph of words, and takes the running text's face instead: on Heal its rule for labels had
   set a room's whole description in capitals. */
.ww-booking .portal-field { display: grid; gap: .4rem; margin: 0; }
.ww-booking .booking-option, .ww-booking .booking-slot, .ww-booking .scheduler-check {
  font: inherit; font-size: 1rem; line-height: 1.5; letter-spacing: normal; text-transform: none; margin: 0; color: inherit;
}
.ww-booking .booking-option-title { font-size: 1.1rem; font-weight: 600; font-family: var(--font-heading, var(--ww-customer-heading-font, inherit)); }
.ww-booking .booking-slot-time { font-weight: 600; }
.ww-booking input:not([type=checkbox]):not([type=radio]), .ww-booking select, .ww-booking textarea {
  width: 100%; min-height: 44px; padding: .7rem 1rem; box-sizing: border-box; font: inherit; color: inherit;
  background: var(--ww-customer-background, var(--color-canvas, #fff)); border: 1px solid var(--ww-account-border); border-radius: calc(var(--ww-account-radius) / 2);
}
.ww-booking textarea { min-height: 7rem; resize: vertical; }
.ww-booking :is(input, select, textarea):focus-visible, .ww-booking .portal-button:focus-visible, .ww-booking .portal-link-button:focus-visible { outline: 2px solid var(--ww-account-accent); outline-offset: 2px; }

/* Steps, options, times and nights: booking.css draws them from --booking-* (the website's tokens); only the corners
   follow the website's radius here, capped so a pill-cornered design does not round a list row into a capsule. */
.ww-booking .booking-steps li { border-radius: 999px; }
.ww-booking .booking-option, .ww-booking .booking-slots, .ww-booking .booking-intake, .ww-booking .booking-cancel, .ww-booking .booking-reschedule, .ww-booking .booking-waitlist, .ww-booking .booking-leave {
  border-radius: min(var(--ww-account-radius), 16px);
}
.ww-booking .booking-slot, .ww-booking .booking-night, .ww-booking .booking-photos img { border-radius: min(var(--ww-account-radius), 10px); }
.ww-booking .booking-option, .ww-booking .booking-slot { background: var(--ww-customer-background, var(--color-canvas, #fff)); }
.ww-booking .booking-option:has(input:checked), .ww-booking .booking-slot:has(input:checked), .ww-booking .booking-night.is-selected { background: color-mix(in srgb, var(--ww-account-accent) 10%, var(--ww-customer-background, #fff)); }
.ww-booking .booking-night.is-selected { background: var(--ww-account-accent); color: var(--ww-account-accent-text); }
.ww-booking .booking-grid th { color: var(--ww-account-muted); }
.ww-booking .booking-reference { font-family: var(--font-heading, var(--ww-customer-heading-font, inherit)); font-size: 1.15rem; letter-spacing: .02em; }

/* The guest account below the flow: quiet, and only where the website has accounts. */
.ww-booking .booking-account { margin-top: 2rem; }
.ww-booking .booking-signin-row { margin: 0; }
.ww-booking .scheduler-row { border-bottom: 1px solid var(--ww-account-border); }
.ww-booking .ww-customer-login { background: var(--ww-account-surface); border: 1px solid var(--ww-account-border); border-radius: var(--ww-account-radius); }

@media (max-width: 700px) {
  .ww-booking { padding: 1.5rem 1rem 3rem; }
  .ww-booking .scheduler-card, .ww-booking .booking-card { padding: 1rem; }
  .ww-booking .booking-step-actions .portal-button, .ww-booking .booking-actions .portal-button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ww-booking .portal-button { transition: none; } .ww-booking .portal-button:hover:not(:disabled) { transform: none; } }
