/* booking-kit.css - the customer booking flow a site styles itself.
 *
 * Copy into the site and pin by version with booking-kit.js. Everything the
 * site will want to change is a custom property on .bk (set them on your own
 * wrapper or on :root): colours, radius, fonts. The layout is plain CSS with
 * no framework and works from 320px up.
 */

.bk {
  --bk-accent: #2f6f6a;
  --bk-accent-text: #ffffff;
  --bk-ink: #1d2321;
  --bk-muted: #5c6663;
  --bk-line: #dfe3e1;
  --bk-surface: #ffffff;
  --bk-soft: #f3f5f4;
  --bk-good: #2f7d4f;
  --bk-bad: #a34a32;
  --bk-radius: 12px;
  --bk-font: inherit;
  color: var(--bk-ink);
  font-family: var(--bk-font);
  font-size: 1rem;
  line-height: 1.5;
}
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.35rem; text-wrap: balance; }
.bk h3 { font-size: 1.1rem; margin: 0 0 0.3rem; text-wrap: balance; }
.bk p { margin: 0 0 0.8rem; text-wrap: pretty; }
.bk-lead { color: var(--bk-muted); margin-bottom: 1.4rem; }
.bk-section { margin: 0 0 2.2rem; }
.bk-section-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bk-muted); margin: 0 0 0.8rem; }

.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.bk-card {
  background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: var(--bk-radius);
  padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.bk-card p { color: var(--bk-muted); font-size: 0.95rem; margin: 0; }
.bk-card .bk-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding-top: 0.6rem; flex-wrap: wrap; }
.bk-card p:empty { display: none; }
/* Items in a row line up (house 1.93.0): every card in a grid has the same parts, and a subgrid
   gives each part one line across the row - titles, text, details and the foot with its button -
   whatever the length of each card's text. Without subgrid the cards keep the flex column. */
@supports (grid-template-rows: subgrid) {
  .bk-grid[data-rows] > .bk-card { display: grid; grid-template-rows: subgrid; row-gap: 0.5rem; align-content: start; }
  .bk-grid[data-rows="4"] > .bk-card { grid-row: span 4; }
  .bk-grid[data-rows="5"] > .bk-card { grid-row: span 5; }
  .bk-grid[data-rows] > .bk-card > .bk-foot { margin-top: 0; align-self: end; }
  .bk-grid[data-rows] > .bk-card > p:empty { display: block; }
}
.bk-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-meta { color: var(--bk-muted); font-size: 0.88rem; }
.bk-session-note { font-size: 0.86rem; font-style: italic; margin-top: 0.15rem; }
.bk-about { margin-top: 0.3rem; font-size: 0.9rem; }
.bk-about summary { cursor: pointer; color: var(--bk-accent); }
.bk-about p { white-space: pre-line; color: var(--bk-muted); margin: 0.35rem 0 0; }
.bk-code { font-size: 1.4rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; max-width: 12rem; }

/* The sign-in pop-up (ask 8): the same flow as the sign-in page, over the page. */
.bk-modal { border: 0; padding: 0; border-radius: var(--bk-radius); background: var(--bk-surface); width: min(30rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.bk-modal::backdrop { background: rgba(0, 0, 0, 0.45); }
.bk-modal-body { padding: 1.6rem 1.5rem 1.4rem; }
.bk-modal-close { position: absolute; top: 0.5rem; right: 0.6rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--bk-muted); cursor: pointer; padding: 0.25rem 0.5rem; }
.bk-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--bk-soft); color: var(--bk-muted); }
.bk-tag.is-good { background: color-mix(in srgb, var(--bk-good) 14%, transparent); color: var(--bk-good); }
.bk-tag.is-bad { background: color-mix(in srgb, var(--bk-bad) 12%, transparent); color: var(--bk-bad); }

.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  padding: 0.65rem 1.1rem; border-radius: calc(var(--bk-radius) - 4px); border: 1px solid var(--bk-accent);
  background: var(--bk-accent); color: var(--bk-accent-text); min-height: 2.75rem;
}
.bk-btn:hover { filter: brightness(1.06); }
.bk-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--bk-accent) 40%, transparent); outline-offset: 2px; }
.bk-btn[disabled] { opacity: 0.55; cursor: progress; }
.bk-btn.is-ghost { background: transparent; color: var(--bk-accent); }
.bk-btn.is-danger { background: var(--bk-bad); border-color: var(--bk-bad); color: #fff; }
.bk-btn.is-block { width: 100%; }
.bk-link { color: var(--bk-accent); font-weight: 700; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.bk-days { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.7rem; scroll-snap-type: x proximity; }
.bk-day {
  flex: none; scroll-snap-align: start; min-width: 4.4rem; padding: 0.55rem 0.4rem; text-align: center; cursor: pointer;
  border: 1px solid var(--bk-line); border-radius: calc(var(--bk-radius) - 4px); background: var(--bk-surface); font: inherit; color: var(--bk-ink);
}
.bk-day small { display: block; color: var(--bk-muted); font-size: 0.75rem; }
.bk-day strong { display: block; font-size: 1.05rem; }
.bk-day[aria-pressed="true"] { border-color: var(--bk-accent); background: var(--bk-accent); color: var(--bk-accent-text); }
.bk-day[aria-pressed="true"] small { color: inherit; opacity: 0.85; }
.bk-day:disabled { opacity: 0.4; cursor: default; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: 0.5rem; }
.bk-time {
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0.6rem 0.2rem; cursor: pointer;
  border: 1px solid var(--bk-line); border-radius: calc(var(--bk-radius) - 4px); background: var(--bk-surface); color: var(--bk-ink);
}
.bk-time:hover, .bk-time:focus-visible { border-color: var(--bk-accent); outline: none; }

.bk-form { display: flex; flex-direction: column; gap: 0.95rem; }
.bk-field label, .bk-label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.bk-field .bk-hint { color: var(--bk-muted); font-size: 0.82rem; margin-top: 0.25rem; }
.bk input[type="text"], .bk input[type="email"], .bk input[type="tel"], .bk textarea, .bk select {
  width: 100%; font: inherit; color: var(--bk-ink); background: var(--bk-surface);
  border: 1px solid var(--bk-line); border-radius: calc(var(--bk-radius) - 4px); padding: 0.65rem 0.8rem;
}
.bk input:focus, .bk textarea:focus, .bk select:focus { outline: none; border-color: var(--bk-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bk-accent) 22%, transparent); }
.bk-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; }
.bk-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--bk-accent); flex: none; }
.bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.bk-special { font-size: 0.78rem; color: var(--bk-muted); }

.bk-summary { background: var(--bk-soft); border-radius: var(--bk-radius); padding: 1rem 1.1rem; margin-bottom: 1.2rem; display: grid; gap: 0.25rem; }
.bk-summary strong { font-size: 1.05rem; }
.bk-row { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.bk-hold { font-size: 0.85rem; color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bk-error { color: var(--bk-bad); font-weight: 600; font-size: 0.93rem; margin: 0; }
.bk-note { background: var(--bk-soft); border-left: 3px solid var(--bk-accent); padding: 0.8rem 1rem; border-radius: 0 var(--bk-radius) var(--bk-radius) 0; margin: 0 0 1rem; }
.bk-done { text-align: left; }
.bk-done .bk-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.bk-list { display: flex; flex-direction: column; gap: 0.6rem; }
.bk-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--bk-line); border-radius: var(--bk-radius); background: var(--bk-surface); flex-wrap: wrap; }
.bk-item > div { min-width: 0; }
.bk-session-day { margin: 1.2rem 0 0.6rem; font-weight: 700; }
.bk-balance { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.bk-loading { color: var(--bk-muted); padding: 1.5rem 0; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }

@media (max-width: 560px) {
  .bk-two { grid-template-columns: 1fr; }
  .bk h2 { font-size: 1.3rem; }
  .bk-item .bk-btn { width: 100%; }
}
