/* The phone screens on site pages: the booking flow on book.html under 900px (Figma "Booking flow —
   mobile (new)") and one appointment on appointment.html (every width, as a centred column).
   The screens and their styles come from app/css/app.css; this file fits them into the site page:
   under the site header, above the footer, with the step's action as a bar that rides the bottom
   of the screen until the footer arrives. No tab bar. */

/* ---- the site chrome keeps its own look (class names it shares with the screens' styles) ---- */
html{background:#fff}
.site-header .nav{height:auto;padding:0;position:static;background:none;z-index:auto;justify-content:flex-start}
.getapp .card{border:0}
.getapp .scrim{position:absolute;opacity:1;z-index:auto;transition:none}

/* ---- the phone column ---- */
.mm-phone{--mm-top:var(--header-h);position:relative;width:100%;max-width:480px;margin:0 auto;padding-top:var(--header-h);background:var(--bg);color:var(--text);font-size:14px;line-height:1.4}
.mm-phone .screen{min-height:calc(100vh - var(--header-h));min-height:calc(100dvh - var(--header-h))}
/* text and overlays the screens add to the page keep the app's line height and image flow */
.drawer,.toast,.sd-coll,.dialog{line-height:1.4;color:var(--text)}
:where(.mm-phone,.drawer,.sd-coll,.dialog) img{display:inline;max-width:none}

/* bars that stick to the top now stick under the site header */
.mm-phone .nav{top:var(--header-h);gap:0}
.mm-phone .book-head,.mm-phone .ts-bar{top:var(--header-h)}
.mm-phone-page .sd-nav{top:var(--header-h)}

/* ---- the bottom action: in the page's flow, sticking to the bottom of the screen ---- */
.mm-phone-action{position:sticky;bottom:0;z-index:19}
.mm-phone-action:empty{display:none}
.mm-phone-action .floating-action,.mm-phone-action .sd-bar{position:static;left:auto;transform:none;width:100%}
.mm-phone-page.no-tabs .floating-action{padding-bottom:max(16px,var(--safe-bottom))}
.mm-phone-action .sd-bar{padding-bottom:max(20px,var(--safe-bottom))}
/* the bar takes its own room now, so the screens no longer reserve space for it */
.mm-phone-page.no-tabs .scroll-pad{padding-bottom:var(--sp-5)}
.mm-phone .sd-sheet{padding-bottom:32px;min-height:0}

/* the chat button and its greeting clear the action bar */
.mm-phone-page .chat-orb{bottom:calc(var(--mm-action-h,0px) + 16px)}
.mm-phone-page .svenn-greet{bottom:calc(var(--mm-action-h,0px) + 92px)}
.mm-phone-page .chat-panel{bottom:calc(var(--mm-action-h,0px) + 92px);height:min(620px,calc(100svh - 170px - var(--mm-action-h,0px)))}

/* Manage Appointment's menu button: no tab bar to sit above, and the chat button steps up to clear it */
.mm-phone-page .sdial-wrap{bottom:calc(16px + var(--safe-bottom))}
@media (max-width:860px){
  body:has(.sdial-wrap) .chat-orb{bottom:calc(16px + 56px + 16px)}
  body:has(.sdial-wrap) .svenn-greet{bottom:calc(92px + 72px)}
}
