/* =========================================================================
   Chairday milestone 2: the booking screens and the manage link on
   {slug}.{domain}. Only what the Daylight kit does not cover. Tokens only,
   so light and dark themes both work.
   ========================================================================= */

/* The date strip as links (works without JavaScript): same look as the kit's radio dates */
.cd-book-dates { list-style: none; margin: -4px; padding: 4px; }
.cd-book-dates > li { display: contents; }
a.cd-date, span.cd-date { color: var(--cd-text); text-decoration: none; }
a.cd-date:hover { text-decoration: none; border-color: var(--cd-control-border); }
a.cd-date[aria-current="date"] { background: var(--cd-primary); border-color: var(--cd-primary); color: var(--cd-on-primary); }
a.cd-date[aria-current="date"] .cd-date__dow, a.cd-date[aria-current="date"] .cd-date__note { color: inherit; opacity: 0.82; }
a.cd-date[aria-current="date"] .cd-date__dot { background: currentColor; }
a.cd-date:focus-visible { outline: 2px solid var(--cd-focus); outline-offset: 2px; }
span.cd-date.cd-date--closed { cursor: default; }
/* Decision 037: a day not taken online looks closed but opens the business's message */
a.cd-date.cd-date--closed { cursor: pointer; }

/* Add-ons under a service */
.cd-book-addons { margin: -2px 0 6px; padding: 10px 14px 12px 58px; border: 0; }
.cd-book-addons legend { padding: 0 0 6px; }


/* Booking footer: quiet, above the docked bottom bar on phones */
.cd-footer--booking { margin-top: var(--cd-space-7, 32px); }
@media (max-width: 1023px) {
  .cd-has-bottombar--dock .cd-footer--booking { padding-bottom: 120px; }
}

/* Hold timer (pending payment pages, milestone 3b): announced at 5 and 1 minutes */
.cd-hold-timer { display: inline-flex; align-items: center; gap: 8px; font: 600 0.9375rem/1.2 var(--cd-font-ui); font-variant-numeric: tabular-nums; }
.cd-hold-timer[data-urgent] { color: var(--cd-warning-text); }

/* Consultation forms */
.cd-card > legend.cd-h4 { padding: 0 6px; }

/* Improvement round 1: the date strip names the chosen day instead of repeating "When" */
.cd-pick-head__title--date { font: 800 1rem/1.25 var(--cd-font-display); letter-spacing: 0; text-transform: none; color: var(--cd-text); }

/* Decision 032: products to collect at the visit */
.cd-book-product { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--cd-border); border-radius: var(--cd-radius-md); background: var(--cd-surface); }
.cd-book-product__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cd-book-product__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-book-product__qty { width: 118px; }
@media (max-width: 420px) { .cd-book-product { grid-template-columns: minmax(0, 1fr) auto; } .cd-book-product__qty { grid-column: 1 / -1; width: 100%; } }
