/* Booking sheet. Phone: bottom sheet. Desktop (>= 900px): right panel. Namespace .bk-* */
html.sheet-open { overflow: hidden; }

.bk { position: fixed; inset: 0; z-index: 1000; color: var(--ink); font-family: var(--font-body); }
.bk.is-closing { pointer-events: none; }
.bk-scrim { position: absolute; inset: 0; background: rgba(10, 12, 14, 0.45); opacity: 0; transition: opacity 380ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.bk.is-open .bk-scrim { opacity: 1; }
.bk.is-closing .bk-scrim { transition-duration: 300ms; }

.bk-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: 640px; margin-inline: auto;
  height: 92svh; max-height: 92svh;
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-sheet), 0 -1px 0 rgba(255, 255, 255, 0.6) inset;
  overflow: hidden; outline: none;
  transform: translate3d(0, calc(100% + 48px), 0);
  transition: transform 420ms var(--ease-sheet);
  will-change: transform;
}
.bk.is-open .bk-sheet { transform: translate3d(0, 0, 0); }
.bk.is-closing .bk-sheet { transition-duration: 320ms; }

.bk-head {
  flex: none; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 12px 12px 22px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: box-shadow 0.2s var(--ease-out);
}
.bk-head.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.bk-title { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.bk-ib { position: relative; color: var(--ink); }
.bk-ib::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(10, 12, 14, 0.06); }
.bk-ib svg { position: relative; }

.bk-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 22px 24px; overscroll-behavior: contain; }
.bk-f { padding-block: 14px; }
.bk-f + .bk-f { box-shadow: inset 0 1px 0 var(--line); }
.bk-l { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chips .chip { min-height: 42px; }
.bk-hint { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.bk-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -22px; padding-inline: 22px; scroll-snap-type: x proximity; scroll-padding-inline: 22px; padding-bottom: 2px; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  flex: none; width: 64px; padding: 10px 0 9px; border-radius: 16px; scroll-snap-align: start;
  display: grid; justify-items: center; gap: 1px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.18s var(--ease-out), background-color 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bk-day:active { transform: scale(0.95); }
.bk-day__wd { font-size: 12px; font-weight: 500; color: var(--muted); }
.bk-day__n { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.bk-day__m { font-size: 11px; color: var(--muted-2); }
.bk-day[aria-pressed='true'] { background: var(--accent); color: var(--on-dark); box-shadow: none; }
.bk-day[aria-pressed='true'] .bk-day__wd, .bk-day[aria-pressed='true'] .bk-day__m { color: rgba(245, 244, 240, 0.72); }

.bk-f--fields { display: grid; gap: 10px; }
.bk-field { display: grid; gap: 6px; }
.bk-field span { font-size: 13px; font-weight: 500; color: var(--muted); }
.bk-field input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; outline: none; transition: box-shadow 0.2s;
}
.bk-field input::placeholder { color: var(--muted-2); }
.bk-field input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bk-note { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.bk-foot { flex: none; padding: 12px 22px calc(14px + var(--safe-b)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
.bk-send { min-height: 54px; font-size: 16px; }
.bk-send svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .bk-sheet {
    left: auto; top: 0; right: 0; bottom: 0; max-width: 440px; height: 100%; max-height: none;
    border-radius: 0; box-shadow: -24px 0 64px -32px rgba(10, 12, 14, 0.45);
    transform: translate3d(calc(100% + 48px), 0, 0);
  }
  .bk-head { cursor: default; padding: 26px 20px 14px 32px; }
  .bk-body { padding-inline: 32px; }
  .bk-days { margin-inline: -32px; padding-inline: 32px; scroll-padding-inline: 32px; }
  .bk-foot { padding-inline: 32px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-sheet, .bk-scrim { transition: none !important; }
}
