/* Fenweh booking panel: the picker on a practitioner's page and the booking status page.

   It is made of the design system's own components (fenweh-site.css), named in the markup:
     .card          the panel            .q-choice   a session to choose
     .daycell       a day                .slot       a time
     .q-bar         the hold running out .pill-note  paid
     .callout       a note about an earlier booking
     .field .input .btn                  the form and its actions
   This file only arranges them: grids, spacing, and the sizes a finger needs. It adds no
   colour, type, radius or shadow of its own. Written for a phone first. */

.bk-band{scroll-margin-top:var(--nav-h)}
.bk{position:relative}
.bk.mt-l{margin-top:22px}
/* The phone bar steps aside while the booking panel itself is on screen. */
@media(max-width:760px){body.bk-in-view .mcta.is-in{transform:translateY(110%)}}

/* While the booking service is being asked, the built-in link is held back so it does not
   flash and vanish. If no answer comes, the class is removed and the link is simply there. */
.bk--wait{min-height:96px}
.bk--wait>*{visibility:hidden}
.bk--wait::after{content:"";position:absolute;inset:0 0 auto 0;height:96px;background:var(--ivory);border:1px solid var(--line);border-radius:var(--r-lg)}

/* The system's card sets its own sizes for headings and paragraphs inside it (.card h3,
   .card p). The panel's own text is named with .bk-panel in front so it keeps its size. */
.bk-panel{padding:20px 16px}
/* On the ivory ground under the hero the card is white, as the system does for a card on a
   tinted band. */
.bk-band .bk-panel{background:#fff}
.bk-panel:hover{transform:none;box-shadow:none}
@media(min-width:768px){.bk-panel{padding:26px}}

.bk-panel .bk-notice{margin:0 0 18px;padding:14px 18px;font-size:15px;color:var(--ink-700)}

/* ---------- steps ---------- */
.bk-step{padding:18px 0;border-top:1px solid var(--line);margin:0}
.bk-step:first-of-type{border-top:0;padding-top:0}
.bk-step:last-of-type{padding-bottom:0}
/* Narrow: the label and its Change link share a line, the choice sits under them.
   Wide: label, choice and Change on one line. */
.bk-step__head{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:0 14px}
.bk-panel .bk-step__t{font-family:var(--sans);font-size:14px;font-weight:700;letter-spacing:0;color:var(--ink-700);margin:0}
.bk-step__sum{grid-column:1 / -1;grid-row:2;font-size:17px;font-weight:600;color:var(--ink-900)}
.bk-step__head .bk-link{grid-column:2;grid-row:1}
@media(min-width:600px){
  .bk-step__head{grid-template-columns:74px 1fr auto}
  .bk-step__sum{grid-column:2;grid-row:1}
  .bk-step__head .bk-link{grid-column:3}
}
.bk-link{background:none;border:0;padding:8px 2px;min-height:44px;min-width:44px;font-size:14px;font-weight:700;color:var(--rose-600);text-decoration:underline;text-underline-offset:3px}
.bk-link:hover{color:var(--saffron-600)}
.bk-link:disabled{color:var(--ink-300);text-decoration:none;cursor:default}

.bk-panel .bk-note{font-size:15px;line-height:1.55;color:var(--ink-700);margin:12px 0 0;max-width:62ch}
.bk-panel .bk-hint{font-size:13px;line-height:1.5;color:var(--ink-500);margin:6px 0 0}
.bk-panel .bk-err{font-size:13.5px;font-weight:600;color:var(--stop);margin:6px 0 0}
.bk-panel .bk-msg{font-size:15px;font-weight:600;color:var(--saffron-700);margin:16px 0 0;max-width:62ch}
.bk-panel .bk-msg:empty{display:none}

/* ---------- choices ---------- */
.bk-opts{margin-top:12px}
.bk-opt{justify-content:space-between}
.bk-opt__price{flex:none;font-weight:700;font-variant-numeric:tabular-nums}

.bk-month{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.bk-month__t{font-family:var(--serif);font-size:18px;font-weight:600}
.bk-days{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;margin-top:10px}
/* The system's day cell and time slot, as buttons, at a size a finger can hit. */
.bk-day,.bk-time{font-family:inherit;cursor:pointer;min-height:48px;background:#fff;transition:border-color .16s,background .16s}
.bk-day{padding:9px 0}
.bk-day .dow,.bk-day .dn{display:block}
.bk-day .dow{font-size:11px;color:var(--ink-500)}
.bk-day .dn{font-size:17px}
.bk-times{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));margin-top:12px}
.bk-time{font-size:15px;color:var(--ink-900);font-variant-numeric:tabular-nums}
.bk-time__t{display:block}
.bk-time__local{display:block;font-size:12px;font-weight:500;color:var(--ink-500);margin-top:2px}
/* Hover is the system's own choice hover (.q-choice:hover). */
.bk-day:hover,.bk-time:hover{border-color:var(--rose-300);background:var(--cream-2)}

/* ---------- details ---------- */
.bk-form{margin-top:14px}
.bk-row{display:grid;gap:0 16px}
@media(min-width:600px){.bk-row{grid-template-columns:1fr 1fr}}
.bk-field{margin:0 0 16px}
.bk-field .input[aria-invalid=true]{border-color:var(--stop)}
/* phone: the calling code beside the number, stacked when the form is narrow. The names
   share a line; email and phone each take a whole one, so the number has room to be read. */
@media(min-width:600px){.bk-row--one{grid-template-columns:1fr}}
.bk-phone__line{display:grid;gap:8px;grid-template-columns:minmax(0,7.6em) minmax(0,1fr)}
.bk-codes{position:static;min-width:0}
.bk-phone__line{position:relative}
.bk-phone__code{display:block;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:38px;cursor:pointer;position:relative}
.bk-phone__code::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;margin-top:-7px;border-right:2px solid var(--ink-500);border-bottom:2px solid var(--ink-500);transform:rotate(45deg)}
.bk-phone__code[aria-expanded=true]::after{transform:rotate(-135deg);margin-top:-2px}
.bk-codes__panel{position:absolute;z-index:30;left:0;top:calc(100% + 6px);width:min(22em,100%);background:var(--white);border:1.5px solid var(--line-2);border-radius:var(--r-lg);box-shadow:var(--sh-md);padding:10px}
.bk-codes__panel[hidden]{display:none}
.bk-codes__list{list-style:none;margin:8px 0 0;padding:0;max-height:248px;overflow-y:auto;overscroll-behavior:contain;position:relative}
.bk-codes__opt{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:var(--r-md);font-size:15.5px;line-height:1.35;color:var(--ink-900);cursor:pointer}
.bk-codes__opt:hover,.bk-codes__opt.is-at{background:var(--ivory)}
.bk-codes__opt.is-sel{font-weight:700}
.bk-codes__dial{flex:none;color:var(--ink-500);font-variant-numeric:tabular-nums}
.bk-codes__none{padding:6px 12px 4px}
.bk-yesno{border:0;padding:0;min-width:0}
.bk-yesno legend{padding:0;font-size:14px;font-weight:700;color:var(--ink-700);margin-bottom:4px}
.bk-radio{cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-right:24px;font-size:16px}
.bk-radio input,.bk-check input{width:20px;height:20px;flex:none;accent-color:var(--indigo-700)}
.bk-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:6px 0;cursor:pointer;font-size:15px;line-height:1.5;color:var(--ink-700)}
.bk-check input{margin:1px 0 0}
/* The box itself stays the system's size; the whole label is the target a finger hits. */
.bk-radio input,.bk-check input{width:24px;height:24px}
.bk-check a{text-decoration:underline;text-underline-offset:3px}
.bk-go{width:100%;margin-top:4px}
@media(min-width:600px){.bk-go{width:auto}}
.bk-go:disabled,.bk-actions .btn:disabled{opacity:.55;cursor:default;transform:none;box-shadow:none}

/* ---------- a booking ---------- */
.bk-panel .bk-title{font-size:clamp(22px,4.4vw,28px);margin:0 0 12px}
.bk-panel .bk-title:focus{outline:none}
.bk-panel .bk-fact{font-size:16px;color:var(--ink-700);margin:0 0 4px}
.bk-panel .bk-fact--when{font-size:18px;font-weight:600;color:var(--ink-900)}
.bk-fact__k{color:var(--ink-500)}
.bk-panel .bk-paid{margin:14px 0 10px}
.bk-bar{margin:20px 0 10px}
.bk-bar .q-bar__fill{width:100%;transition:width 1s linear}
.bk-panel .bk-timer{font-size:16px;font-weight:600;color:var(--ink-900);font-variant-numeric:tabular-nums;margin:0}
.bk-actions{margin-top:20px;align-items:center}
.bk-actions .btn{width:100%}
@media(min-width:600px){.bk-actions .btn{width:auto}}

@media(prefers-reduced-motion:reduce){
  .bk-bar .q-bar__fill,.bk-day,.bk-time{transition:none}
}
/* fees: one line a session, filled from the booking service */
.bk-fees{margin:14px 0 0;font-size:15.5px;font-weight:600;color:var(--ink-700);line-height:1.5}
.bk-fees[hidden]{display:none}
.bk-fees__line{display:block}
/* a question with several answers stacks them, one to a line */
.bk-choice .bk-radio{display:flex;margin:0 0 8px}
/* the Book a session page: one row a practitioner */
.booklist{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.bookrow{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px 18px;align-items:center;margin:0}
.bookrow__photo{width:72px;height:72px;border-radius:var(--r-lg);object-fit:cover}
.bookrow__name{font-size:21px;margin:0}
.bookrow__name a{color:inherit}
.bookrow__meta{margin:2px 0 0;font-size:14px;color:var(--ink-500)}
.bookrow .bk-fees{margin-top:6px;font-size:15px}
.bookrow__go{grid-column:1/-1}
@media(min-width:720px){.bookrow{grid-template-columns:auto minmax(0,1fr) auto}.bookrow__go{grid-column:auto}.bookrow__photo{width:88px;height:88px}}
