/* Booking sheet (owner, 2026-09-27: "the Book now should bring the user to the booking menu, not to the calling menu").
   A native <dialog>: full screen on phones (dvh + safe areas), a centred dialog on larger screens. The page behind never scrolls. */
html.bs-lock, html.bs-lock body { overflow: hidden; }

.book-sheet { padding: 0; border: 0; margin: auto; z-index: 200; color: var(--ink); background: #fffdf8;
  width: min(1000px, calc(100% - 48px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  border-radius: 24px; box-shadow: 0 30px 80px rgba(4, 16, 20, .35); overflow: hidden; flex-direction: column; }
.book-sheet[open] { display: flex; }
.book-sheet [hidden] { display: none !important; }
.book-sheet::backdrop { background: rgba(4, 16, 20, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

.bs-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px 24px; border-bottom: 1px solid var(--line); background: #fffdf8; }
.bs-titles { flex: 1; min-width: 0; }
.bs-titles .eyebrow { margin: 0; }
.bs-titles h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.2; }
.bs-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.bs-close:hover { border-color: var(--teal); }
.bs-close:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }

.bs-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 24px 28px; }
.bs-lead { margin: 0 0 12px; color: var(--muted); }
.bs-offer { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff4d6; border: 1.5px solid #f2c14e; color: var(--navy);
  border-radius: 18px; padding: 6px 16px 6px 6px; margin: 0 0 18px; font-weight: 500; }
[dir="rtl"] .bs-offer { padding: 6px 6px 6px 16px; }

/* the page's scroll animations never touch the sheet (motion.js marks .bk-step as a riser) */
.book-sheet .rise, .book-sheet .reveal { translate: none !important; transform: none !important; opacity: 1 !important; }
.book-sheet .booking { gap: 18px; }
.book-sheet .bk-step { padding: 18px; }
.book-sheet .bk-step legend .num { display: inline-block; width: auto; height: auto; white-space: nowrap; }   /* "01" on one line (the grid stacked it) */
.book-sheet .field input, .book-sheet .field select, .book-sheet .field textarea { font-size: 16px; min-height: 44px; }
.book-sheet .field textarea { min-height: 88px; }
.book-sheet .pills span { min-height: 44px; display: inline-flex; align-items: center; }
.book-sheet .cal-nav { width: 44px; height: 44px; }
[dir="rtl"] .book-sheet .cal-nav { transform: scaleX(-1); }   /* in Yiddish "previous" sits on the right: its arrow points right */
.book-sheet .slot { min-height: 44px; }
.book-sheet .check { min-height: 44px; align-items: center; }
.book-sheet .check input { margin-top: 0; width: 22px; height: 22px; }
.book-sheet .addr-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.book-sheet .code-box .btn { min-height: 44px; margin-top: 8px; }
.book-sheet .btn-ghost { background: transparent; border-color: transparent; color: var(--navy); text-decoration: underline; }

/* done: the request is in, not yet confirmed */
.bs-done { text-align: center; max-width: 560px; margin: 8px auto 0; padding: 12px 4px 8px; }
.bs-done:focus { outline: none; }
.bs-done-badge { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 2rem; font-weight: 700; }
.bs-done h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 8px; }
.bs-done-when { font-weight: 600; color: var(--navy); margin: 0 0 12px; }
.bs-done-call { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 14px; color: #6b4d12; margin: 0 0 12px; }
.bs-done-price { margin: 0 0 14px; }
.bs-done-price s { color: #8a96a2; }
.bs-done .manage-link { display: inline-block; padding: 10px 0; }
.bs-done .btn { min-height: 44px; min-width: 160px; margin-top: 10px; }

/* phones (portrait) and landscape phones: the whole screen, clear of the notch and the home bar */
@media (max-width: 700px), (max-height: 500px) {
  .book-sheet { top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
  .bs-head { padding: calc(8px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) 8px calc(16px + env(safe-area-inset-left, 0px)); }
  [dir="rtl"] .bs-head { padding-left: calc(12px + env(safe-area-inset-left, 0px)); padding-right: calc(16px + env(safe-area-inset-right, 0px)); }
  .bs-body { padding: 14px calc(12px + env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); }
  .book-sheet .bk-step { padding: 16px 12px; border-radius: 18px; }
  .book-sheet .bk-step legend { font-size: 1.25rem; }
  .book-sheet .cal-grid { gap: 3px; }
  .book-sheet .cal-day { aspect-ratio: auto; height: 44px; }
  .book-sheet .addr-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 500px) { .bs-titles .eyebrow { display: none; } .bs-titles h2 { font-size: 1.15rem; } }
@media (max-width: 360px) {
  .bs-body { padding-left: calc(8px + env(safe-area-inset-left, 0px)); padding-right: calc(8px + env(safe-area-inset-right, 0px)); }
  .book-sheet .bk-step { padding: 14px 8px; }
  .book-sheet .cal-grid { gap: 2px; }
  .book-sheet .pills span { padding: 8px 14px; }
}
