/* Parlour — the public booking flow and the client's booking page. Loaded after app.css.
   Colours: tokens only. */

.back-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: var(--tap); text-decoration: none; font-weight: 650; }
.back-link svg { width: 1.1rem; height: 1.1rem; flex: none; }
.step { margin: 0 0 0.15rem; color: var(--text-dim); font-size: 0.9375rem; }
.summary-line { margin: 0 0 1.25rem; color: var(--text-dim); overflow-wrap: anywhere; }
.notice { background: var(--warn-wash); border-left: 4px solid var(--warn); border-radius: 0 6px 6px 0; padding: 0.75rem 1rem; margin: 0 0 1.25rem; }
.notice strong { color: var(--warn); }
.msg-warning { background: var(--warn-wash); border-color: var(--warn); }
.msg-success { background: var(--ok-wash); border-color: var(--ok); }

/* the price list rows become links */
.price-link { display: block; color: inherit; text-decoration: none; padding: 0.65rem 0; margin: -0.65rem 0; min-height: var(--tap); touch-action: manipulation; }
.price-variants .price-link { padding: 0.55rem 0; margin: -0.2rem 0; display: flex; flex-direction: column; justify-content: center; }
.price-book { color: var(--brand); font-weight: 700; white-space: nowrap; }
.price-meta .price-book { margin-left: 0.25rem; }

/* who */
.choice-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.choice {
  display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; padding: 0.75rem 1rem; min-width: 0;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--text); text-decoration: none;
  touch-action: manipulation;
}
.choice-main { flex: 1 1 auto; min-width: 0; }
.choice-name { display: block; font-family: var(--font-display); font-weight: 560; font-size: 1.125rem; overflow-wrap: anywhere; }
.choice-meta { display: block; color: var(--text-dim); font-size: 0.9375rem; overflow-wrap: anywhere; }
.choice-price { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice-first { border-color: var(--brand); border-width: 2px; }
.choice .monogram-lg { width: 2.5rem; height: 2.5rem; border-radius: 6px; font-size: 0.9375rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--raised); border: 1px solid var(--line-strong); }

/* when: a strip of days that scrolls sideways inside itself, never the page */
.day-strip { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 1.25rem; padding: 0.25rem var(--gutter) 0.5rem; list-style: none; scroll-snap-type: x proximity; }
.day-strip li { flex: none; scroll-snap-align: start; }
.day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.75rem; min-height: 4.5rem; padding: 0.3rem 0.2rem;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 8px; color: var(--text); text-decoration: none; touch-action: manipulation;
}
.day .dow { font-size: 0.8125rem; color: var(--text-dim); }
.day .dom { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day .state { font-size: 0.75rem; color: var(--text-dim); }
.day[aria-current="date"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.day[aria-current="date"] .dow, .day[aria-current="date"] .state { color: var(--brand-ink); }
.day.is-full { border-style: dashed; background: transparent; }
.day.is-full .dom { color: var(--text-dim); font-weight: 400; }

.period { margin: 0 0 1.25rem; }
.period h2 { font-size: 1.0625rem; font-family: var(--font-body); font-weight: 700; color: var(--text-dim); margin-bottom: 0.5rem; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.time-grid form { margin: 0; }
.time {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap);
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line-strong); border-radius: 8px; text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.pager { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* the appointment card */
.ticket { border: 1.5px solid var(--text); border-radius: 10px; background: var(--surface); margin: 0 0 1.25rem; min-width: 0; }
.ticket-when { padding: 1rem; border-bottom: 1px dashed var(--line-strong); }
.ticket-date { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
.ticket-time { margin: 0.15rem 0 0; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.ticket-body { padding: 0.5rem 1rem; }
.ticket-body .price-list > li { padding: 0.55rem 0; }
.ticket-foot { padding: 0.75rem 1rem; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.9375rem; overflow-wrap: anywhere; }
.ticket-foot p { margin: 0; }
.ticket.is-cancelled { border-color: var(--line-strong); border-style: dashed; }
.ticket.is-cancelled .ticket-date, .ticket.is-cancelled .ticket-time { text-decoration: line-through; color: var(--text-dim); }

.field .hint { display: block; color: var(--text-dim); font-size: 0.9375rem; margin-bottom: 0.3rem; font-weight: 400; }
.field textarea {
  display: block; width: 100%; max-width: 100%; min-height: 5rem; padding: 0.6rem 0.75rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 6px; resize: vertical;
}
.field-error { display: block; color: var(--bad); font-weight: 650; margin-top: 0.3rem; }
.check { display: flex; align-items: flex-start; gap: 0.75rem; min-height: var(--tap); margin: 0 0 1rem; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--brand); }
.check label { font-weight: 400; }
.small-print { color: var(--text-dim); font-size: 0.9375rem; }
.btn-danger { color: var(--bad); border-color: var(--bad); }
.actions { display: grid; gap: 0.6rem; margin: 0 0 1.25rem; }
@media (min-width: 30rem) { .actions { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.price-link .price-meta { display: block; }
.price-variants .price-book { font-size: 0.9375rem; }
.small-print { margin-top: 0.75rem; }
.pay-actions { display: grid; gap: 0.6rem; margin: 0 0 1rem; max-width: 26rem; }
.check label { min-height: 2.75rem; display: flex; align-items: center; flex: 1 1 auto; }
.check input { margin-top: 0.6rem; }
.choice-set { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.choice-set legend { font-weight: 650; padding: 0; margin-bottom: 0.25rem; }
.choice-set .check { margin: 0; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.75rem; }
.field-pair > * { min-width: 0; }
.facts { margin: 0; }
.facts dt { color: var(--text-dim); font-size: 0.875rem; margin-top: 0.5rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
