/*
 * Booking widget shell: the popup and floating launchers, the phone sheet,
 * and the booking page's own top spacing. Static; enqueued by
 * BookingShortcode::render() under the `scheduleos-booking-shell` handle,
 * after the widget's base and template sheets and its per-site tokens.
 */
/* ── THE PAGE'S OWN TOP SPACING, ON A BOOKING PAGE ────────────────────────
   The widget sizes itself to the room the viewport actually leaves it (see
   _measureViewportChrome), and on a block theme the biggest single claim on
   that room is not the widget and not the header — it is the editor's default
   spacing around the content.

   MEASURED on the reference install at 1366x768: a 110px static site header,
   then `margin-top:70px` on <main> and `padding-top:70px` on the content
   group, then the page title and two 19.2px block margins. 342px of a 768px
   viewport — 45% of the screen — spent before the booking card begins, which
   left the card at its 347px floor with ~120px of usable content in it.

   `!important` IS REQUIRED AND IS NOT A SHORTCUT. Both 70s are INLINE styles
   the block editor writes onto the elements
   (`style="margin-top:var(--wp--preset--spacing--60)"`), and an inline
   declaration beats any stylesheet selector however specific. Without the
   flag this whole block is inert — measured, at 11px of the 92px it is meant
   to reclaim.

   SCOPED THREE WAYS so it cannot reach a page that did not ask for it:
   `:has()` on an INLINE widget (a popup or floating launcher leaves the page
   alone), the theme's own block classes (a classic theme matches none of
   this and is untouched), and only the TOP edge — bottom spacing, horizontal
   padding and every other page on the site are left exactly as the theme
   drew them.

   24px rather than 0: this is a page with a heading on it, and collapsing the
   space to nothing would read as a layout fault rather than as a tighter
   page. To restore the theme's own spacing, remove this block. */
body:has(#so-booking-widget[data-position="inline"]) main.wp-block-group{margin-top:24px!important}
body:has(#so-booking-widget[data-position="inline"]) main .wp-block-group.has-global-padding{padding-top:24px!important}
body:has(#so-booking-widget[data-position="inline"]) .entry-content.wp-block-post-content{margin-top:8px!important}
/* The widget's own reset is scoped `#so-booking-widget *`, which can never
   reach these ANCESTORS, so a content-box theme sized the panel 452x(80vh+32)
   while a border-box theme sized it 420x80vh — a 32px swing per axis that the
   plugin does not control, and every calc() below would be wrong by it. */
.so-bw-popup,.so-bw-popup__overlay,.so-bw-popup__dialog,.so-bw-popup__trigger,.so-bw-popup__close,.so-bw-floating,.so-bw-floating__panel,.so-bw-floating__btn,.so-bw-floating__close{box-sizing:border-box}
/* ONE COLOUR SCHEME, ON EVERY DEVICE. The widget is a single light design:
   it ships no dark theme and no prefers-color-scheme rule. But nothing told
   the browser that, so a phone in dark mode with Chrome's "Darken websites"
   (Blink auto-dark) repainted it algorithmically: white cards and the search
   went dark navy, the Select pills navy, the brand header near-black, while
   every computed colour stayed light (it is a paint-time filter, not CSS).
   MEASURED on a 412px Android profile: 97.4% of the pixels changed between
   light and dark; with this rule, 0.

   `only light` is the keyword that FORBIDS that override, scoped to the
   plugin's own boxes: the widget root (every descendant inherits it) and the
   shell pieces that live outside it (the Book Now trigger, the popup's
   overlay and dialog, the floating button and panel). The host page keeps
   its own dark mode untouched.
   It also makes form controls, scrollbars and system colours resolve to
   their light variants inside the widget. */
#so-booking-widget,.so-bw-popup,.so-bw-popup__trigger,.so-bw-floating{color-scheme:only light}
/* The shell's own corners run on the same two multipliers the widget does,
   so the Appearance tab's Border Radius setting reaches the dialog and the
   floating panel rather than stopping at the widget inside them. Both
   default to 1, i.e. the values this shell has always used; the render path
   overwrites them on [data-so-bw-shell] once an admin moves the slider. The
   trigger button and the close button keep their pill and circle — those are
   shapes, not corner radii, and the widget's own 999px controls are left
   alone for the same reason. */
[data-so-bw-shell]{--so-bw-radius-scale:1;--so-bw-radius-scale-shell:1}
.so-bw-popup__trigger,.so-bw-floating__btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border:0;border-radius:999px;color:#fff;font-weight:600;font-size:15px;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,0.15);font-family:inherit}
.so-bw-popup__trigger:hover,.so-bw-floating__btn:hover{filter:brightness(0.95)}
.so-bw-popup__overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,0.55);z-index:2147483001;align-items:center;justify-content:center;padding:20px;animation:so-bw-fade .15s ease-out}
.so-bw-popup.is-open .so-bw-popup__overlay{display:flex}
/* A SIZE SCALES THE TEMPLATE; THE SHELL OBEYS IT.
   This was a flat `max-width:560px`, so data-size was inert in a popup: 15 of
   the 19 templates rendered a byte-identical 532px container at small, medium,
   large AND full, and Wide Canvas at large missed its intended 1400px by 868.
   `--so-bw-shell-maxw` is emitted per render by renderShell() from the
   template's natural width times the size scale. `max(560px, ...)` keeps the
   old 560 as a FLOOR, so every popup that was already correct is unchanged;
   `min(100%, ...)` keeps it inside the overlay's padded box, which is what
   makes the growth safe on a phone (there it is a strict no-op).
   overscroll-behavior:contain stops a wheel that reaches the end of the dialog
   scrolling the page underneath the modal (measured: window.scrollY 0 -> 3000). */
.so-bw-popup__dialog{position:relative;background:#fff;border-radius:calc(16px * var(--so-bw-radius-scale-shell,1));max-width:min(100%,max(560px,var(--so-bw-shell-maxw,560px)));width:100%;max-height:90vh;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 60px rgba(0,0,0,0.25)}
.so-bw-popup__close,.so-bw-floating__close{position:absolute;top:8px;right:10px;width:32px;height:32px;border:0;border-radius:50%;background:rgba(0,0,0,0.05);color:#374151;font-size:20px;line-height:1;cursor:pointer;z-index:30}
.so-bw-popup__close:hover,.so-bw-floating__close:hover{background:rgba(0,0,0,0.12)}
/* HERO PUTS A DARK PHOTO BAND WHERE THIS BUTTON SITS.
   The close mark is `#374151` on a 5% black tint, positioned top:8px
   right:10px -- i.e. ON the widget's header. Every other template keeps a
   light header there, so slate-on-near-white reads fine. Hero's header is a
   maroon gradient (`linear-gradient(180deg, rgba(20,8,12,.15), rgba(20,8,12,
   .62))` over the accent), and a dark glyph on a 5% dark tint over THAT is
   effectively invisible -- reported as "the (X) mark not visible".
   Same fault, and the same fix, as the brand title in booking-widget.css:
   a light-header default left standing on the one dark-header template.
   Scoped by `:has()` on the widget's own data-template so nothing else
   moves; the sibling combinator matches the shell markup above, where the
   button is emitted immediately before the widget. */
.so-bw-popup__close:has(~ #so-booking-widget[data-template="hero"]),.so-bw-floating__close:has(~ #so-booking-widget[data-template="hero"]){background:rgba(255,255,255,0.18);color:#fff}
.so-bw-popup__close:has(~ #so-booking-widget[data-template="hero"]):hover,.so-bw-floating__close:has(~ #so-booking-widget[data-template="hero"]):hover{background:rgba(255,255,255,0.32)}
.so-bw-floating{position:fixed;bottom:24px;right:24px;z-index:2147483000}
/* `bottom:calc(100% + 12px)` rather than a hard 64px, which assumed a 44px
   trigger — and the trigger's HEIGHT is now an admin choice, so a fixed offset
   left the large button overlapping its own panel and the small one floating
   20px away from it. A percentage of the wrapper (which is exactly as tall as
   the button) clears whichever size is rendered, with no companion variable to
   keep in step. `max-height:min(80vh,100dvh - 104px)` stops the panel running
   off the TOP of a short screen — at 390x844 the panel top measured -42px and
   the close button was entirely off-screen, unclosable, with the wrapper fixed
   so the page could not be scrolled to reach it. `padding:0` because the panel
   is the frame: the widget already drops its own radius and border at narrow
   widths believing the VIEWPORT is the frame, and the 16px gutter then cost
   another 52px of a 358px phone panel. overscroll-behavior pairs with the
   widget body's release (booking-widget.css section 24). */
.so-bw-floating__panel{display:none;position:absolute;bottom:calc(100% + 12px);right:0;width:min(420px,calc(100vw - 48px));max-height:min(80vh,calc(100dvh - 104px));overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:calc(14px * var(--so-bw-radius-scale,1));box-shadow:0 18px 40px rgba(0,0,0,0.2);padding:0}
.so-bw-floating.is-open .so-bw-floating__panel{display:block}
/* ── Floating button: which corner ────────────────────────────────────────
   Bottom-right stays the BASE rule, unstated, so an embed saved before this
   existed (no data-corner) renders exactly where it always did.

   Each corner has to move two things. `right:auto`/`bottom:auto` are the
   load-bearing halves: the base rule sets bottom+right, and a left corner that
   only adds `left` would have both, which in a fixed box means the wrapper
   spans the viewport instead of moving. And a top-anchored trigger must open
   DOWNWARDS — a panel still anchored `bottom:var(--gap)` would be laid out off
   the top of the screen, unreachable, which is the failure mode that makes a
   corner picker feel broken rather than misplaced. */
.so-bw-floating[data-corner="bottom-left"]{right:auto;left:24px}
.so-bw-floating[data-corner="top-right"]{bottom:auto;top:24px}
.so-bw-floating[data-corner="top-left"]{bottom:auto;top:24px;right:auto;left:24px}
.so-bw-floating[data-corner="bottom-left"] .so-bw-floating__panel,
.so-bw-floating[data-corner="top-left"] .so-bw-floating__panel{right:auto;left:0}
.so-bw-floating[data-corner="top-right"] .so-bw-floating__panel,
.so-bw-floating[data-corner="top-left"] .so-bw-floating__panel{bottom:auto;top:calc(100% + 12px)}
/* ── Floating button: trigger size ────────────────────────────────────────
   Medium is the base rule (12px 22px / 15px), so it is not restated here and
   an embed with no data-btn-size is untouched. Only the floating trigger is
   sized: the popup trigger shares the base rule and is deliberately left
   alone, because the control that drives this only appears for Floating.
   No companion gap variable: the panel clears the trigger off `100%` of the
   wrapper, so a taller button moves the panel by construction. */
.so-bw-floating[data-btn-size="small"] .so-bw-floating__btn{padding:9px 16px;font-size:13px}
.so-bw-floating[data-btn-size="large"] .so-bw-floating__btn{padding:16px 30px;font-size:17px}
/* A floating panel is a corner dock over live page content, so a size picks
   from a bounded ramp rather than growing to the template — a 1400px "large
   Wide Canvas" docked in the corner is not a dock any more. Without this the
   panel was one width (a 400px container) at all four sizes.
   The min-width:561px wrapper is LOAD-BEARING: [data-so-bw-size] scores (0,2,0)
   and would outrank the phone block's full-bleed rule (0,1,0), pinning the
   panel to 420px hard against the screen edge on a 390px phone. */
@media (min-width:561px){.so-bw-floating[data-so-bw-size="small"] .so-bw-floating__panel{width:min(420px,calc(100vw - 48px))}.so-bw-floating[data-so-bw-size="medium"] .so-bw-floating__panel{width:min(480px,calc(100vw - 48px))}.so-bw-floating[data-so-bw-size="large"] .so-bw-floating__panel{width:min(560px,calc(100vw - 48px))}.so-bw-floating[data-so-bw-size="full"] .so-bw-floating__panel{width:min(960px,calc(100vw - 48px))}}
/* The popup had NO phone treatment at all — the single @media in this sheet is
   scoped to .so-bw-floating. 20px of overlay padding plus the widget's own
   inset cost 60px of a 360px screen and shrank calendar day targets to 33x34.
   A bottom sheet is the honest shape at that width. */
@media (max-width:560px){.so-bw-popup__overlay{padding:0;align-items:flex-end}.so-bw-popup__dialog{width:100%;max-width:100%;max-height:92dvh;border-radius:16px 16px 0 0}.so-bw-popup__close{top:10px;right:10px;width:36px;height:36px}}
@keyframes so-bw-fade{from{opacity:0}to{opacity:1}}
/* Phones: the panel goes full-bleed. It has to be done by widening the
   WRAPPER, not by stretching the panel inside it.

   `.so-bw-floating` is position:fixed with only bottom/right set, so it is
   shrink-to-fit around its trigger button — about 110px. The panel is
   position:absolute inside it, so `left:0;right:0;width:auto` resolved
   against that 110px containing block and the panel rendered ~110px wide
   with ~78px of usable content, on EVERY phone, for EVERY template. The
   rule was written to make the panel full-bleed and did the exact
   opposite. Measured at 560/480/414/390/360/320 before the fix: 110px
   every time.

   Setting `left` as well as `right` gives the fixed wrapper a real width
   (100vw - 32px), so the panel's left:0/right:0 now resolves against the
   viewport as intended. The wrapper becomes a right-aligned flex column
   so the trigger button keeps hugging the bottom-right corner instead of
   sliding to the left edge with the wrapper.

   `pointer-events` is the other half of widening it. The wrapper has no
   background and sits near the top of the stack, so once it spans the viewport it is an
   invisible fixed strip across the bottom of the PAGE — and it would eat every
   tap landing to the left of the trigger, on whatever the site has down there.
   It is only ever needed as a containing block, never as a target (both
   toggles live on the buttons themselves), so taps pass straight through it
   and the two elements that ARE targets take them back. */
@media (max-width:560px){.so-bw-floating{bottom:calc(16px + env(safe-area-inset-bottom));right:calc(16px + env(safe-area-inset-right));left:calc(16px + env(safe-area-inset-left));display:flex;flex-direction:column;align-items:flex-end;pointer-events:none}.so-bw-floating__btn,.so-bw-floating__panel{pointer-events:auto}.so-bw-floating__panel{right:0;left:0;width:auto;max-height:min(80vh,calc(100dvh - 88px))}
/* The corner survives the phone breakpoint, or picking one would silently
   revert on the device the floating button matters most on.
   `left` and `right` are BOTH pinned above (that is what gives the wrapper a
   real width for the full-bleed panel to resolve against), so on a phone the
   corner is no longer expressed by insets at all — the button's side is decided
   by the flex alignment, and only the vertical edge still needs stating. Both
   selectors carry the wrapper attribute so they outrank the plain
   `.so-bw-floating` rule above regardless of order. */
.so-bw-floating[data-corner="bottom-left"],.so-bw-floating[data-corner="top-left"]{align-items:flex-start;left:calc(16px + env(safe-area-inset-left));right:calc(16px + env(safe-area-inset-right))}
.so-bw-floating[data-corner="top-right"],.so-bw-floating[data-corner="top-left"]{top:calc(16px + env(safe-area-inset-top));bottom:auto}
/* Full-bleed, restated for a panel that has a corner. The desktop corner rules
   above set `right:auto;left:0` for the left corners, and they are (0,3,0) —
   they outrank the plain `.so-bw-floating__panel{right:0;left:0}` in this block,
   so on a phone a left-cornered panel lost its right anchor and sized from its
   CONTENT instead: measured 67px wide, against 358px for the right corners. That
   is the same fault the note above this block describes, reintroduced from the
   other side. Equal specificity to those rules and later in the stylesheet, so
   source order settles it — keep this block last. */
.so-bw-floating[data-corner] .so-bw-floating__panel{left:0;right:0;width:auto;max-height:min(80vh,calc(100dvh - 88px))}}
/* ── PHONES: THE BOOKING WIDGET BECOMES THE SCREEN ────────────────────────
   Below the 560px shell breakpoint a popup or floating widget stops answering
   to the desktop Widget Size (Small / Medium / Large / Full Width). A 92dvh
   bottom sheet or an 80vh corner dock on a 390px handset is the desktop modal
   shrunk to fit; a phone gets the booking flow as its own screen instead —
   Book Now opens it, the × puts the page back exactly where it was. Desktop
   and tablet are untouched: every rule here is inside this one query.

   ONE RULE FOR BOTH SHEETS. The popup DIALOG and the floating PANEL are pinned
   edge to edge: no inset, no corner, no shadow, no size cap. `!important` is
   what lets it settle regardless of stylesheet order — booking-widget.css
   sizes these same boxes per template at up to (1,4,0) (Frost's width ramp,
   Workspace's 90svh, Dusk's and Counter Sand's 80/90vh card caps), and none
   of those carries the flag.

   HEIGHT. `100dvh` follows the address bar as it collapses and returns;
   `100vh` stands in for a browser that predates `dvh`. While a sheet is open
   the shell script below also writes the VISUAL viewport into
   `--so-bw-vv-h` / `--so-bw-vv-top`, so when the on-screen keyboard opens the
   sheet shrinks to what is still visible instead of pushing its header and ×
   up under the browser chrome. Unset, they fall back to 100dvh and 0.

   SAFE AREAS are padding on the sheet, so on a notched phone under a
   `viewport-fit=cover` theme the widget's header clears the sensor housing and
   its commit bar clears the home indicator. `env()` is 0 everywhere else.

   INSIDE, the widget is the same bounded column the desktop floating panel
   already is (booking-widget.css 35.2/35.3): root and card fill the sheet,
   header and commit bar hold still, and the body is the one thing that
   scrolls. The page behind is locked by the same `html:has()` the floating
   shell uses (35.1), extended to the popup, which covered the page before but
   never the whole screen. The sheet itself is `overflow-y:auto` only as the
   fallback for a template whose card refuses to be bounded — Glass Frost's
   uncontained redesign pins its card `display:block; overflow:visible
   !important` because it is meant to scroll like a page — so that content
   scrolls inside the sheet instead of being clipped by it. Everywhere else the
   card fills the sheet exactly and the sheet never scrolls.

   The LAUNCHER hides while its sheet is open (one primary action on screen,
   and the full-screen sheet would bury it anyway) and holds a 48px touch
   height. The × keeps its 36px circle — the header's 52px corner reservation
   (booking-widget.css 24.5) is sized for it — and takes a 48px hit area from
   an invisible `::before`, the same trade the widget's own small controls make.
   It is pinned to the SCREEN rather than to the sheet (the sheet is itself
   fixed and full-screen, so the two coincide), which keeps it in the corner
   whichever element is doing the scrolling. z-index 25 puts it above the
   widget's own sticky chrome (headers and search bars run up to 20 — Bundle's
   header at 5 was painting over it) and below its dropdowns (30+) and the
   staff-profile and service-description overlays, which should cover it.

   INLINE joins them on a phone. renderShell() emits a Book Now launcher just
   before an inline widget; it is `display:none` everywhere until shellScript()
   adopts it (`data-so-bw-ready`), and then only below 560px, where the in-page
   widget beside it is hidden. On tap the script wraps that same widget root in
   this popup markup, so it opens as this exact sheet, and unwraps it on close.
   Above 560px, or with no script, an inline widget is untouched.

   The × is centred on the header's title row ("Choose a Service", or the
   brand line where a template leads with one): the script measures that row
   and writes `--so-bw-x-top`. The top-right corner is the fallback. */
.so-bw-popup__trigger.so-bw-inline-launch{display:none}
@media (max-width:560px){
.so-bw-popup__trigger.so-bw-inline-launch[data-so-bw-ready]{display:inline-flex}
.so-bw-inline-launch[data-so-bw-ready] + #so-booking-widget{display:none!important}
.so-bw-inline-launch[aria-expanded="true"]{visibility:hidden}
.so-bw-popup__trigger,.so-bw-floating__btn{min-height:48px;justify-content:center;touch-action:manipulation}
.so-bw-popup.is-open .so-bw-popup__trigger,.so-bw-floating.is-open .so-bw-floating__btn{visibility:hidden}
html:has(.so-bw-popup.is-open){overflow:hidden}
.so-bw-popup.is-open .so-bw-popup__overlay{padding:0}
.so-bw-popup.is-open .so-bw-popup__dialog,.so-bw-floating.is-open .so-bw-floating__panel{position:fixed!important;top:var(--so-bw-vv-top,0px)!important;right:0!important;bottom:auto!important;left:0!important;width:100%!important;max-width:none!important;height:100vh!important;min-height:0!important;max-height:none!important;margin:0!important;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important;border-radius:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
@supports (height:100dvh){.so-bw-popup.is-open .so-bw-popup__dialog,.so-bw-floating.is-open .so-bw-floating__panel{height:var(--so-bw-vv-h,100dvh)!important}}
.so-bw-popup.is-open .so-bw-popup__dialog:has(> #so-booking-widget) > #so-booking-widget,.so-bw-floating.is-open .so-bw-floating__panel:has(> #so-booking-widget) > #so-booking-widget{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;width:auto!important;min-height:0!important;max-width:none!important;margin:0!important}
.so-bw-popup.is-open .so-bw-popup__dialog:has(> #so-booking-widget[data-template-id]) .so-bw-container,.so-bw-floating.is-open .so-bw-floating__panel:has(> #so-booking-widget[data-template-id]) .so-bw-container,.so-bw-popup.is-open .so-bw-popup__dialog:has(> #so-booking-widget[data-template-id]) > #so-booking-widget > .booking-shell,.so-bw-floating.is-open .so-bw-floating__panel:has(> #so-booking-widget[data-template-id]) > #so-booking-widget > .booking-shell{flex:1 1 auto;height:100%!important;min-height:0!important;max-height:100%!important;max-width:100%!important;--so-bw-fit-scale:1!important}
.so-bw-popup.is-open .so-bw-popup__close,.so-bw-floating.is-open .so-bw-floating__close{position:fixed;top:var(--so-bw-x-top,calc(var(--so-bw-vv-top,0px) + 10px + env(safe-area-inset-top)));right:calc(10px + env(safe-area-inset-right));width:36px;height:36px;z-index:25;touch-action:manipulation}
.so-bw-popup__close::before,.so-bw-floating__close::before{content:"";position:absolute;inset:-6px;border-radius:50%}
/* THE × CORNER BELONGS TO THE SHEET, NOT TO THE POSITION.
   booking-widget.css 24.5 keeps a 52px corner free on `.so-bw-popup__dialog`
   and `.so-bw-floating__panel` headers, but templates restate their header
   padding (Workspace's shorthand, Card Deck's 24px, Frost's step modal) and
   only won it back where they also keyed on `[data-position="popup"]` or
   `"floating"`. An INLINE widget opened as this sheet keeps
   `data-position="inline"`, so on Card Deck the × sat on "Step 1 of 6". One
   rule, keyed on the open sheet itself, gives every template the same corner
   in all three positions: 36px of button + 10px inset + 10px of air. */
.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template] .so-bw-header,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template] .so-bw-header{padding-right:56px!important}
/* Card Deck's desktop stage (lavender ground, 20px corner, the stacked-card
   inset) framed the sheet 10px in from the phone's edges. On the phone the
   sheet IS the card, so the stage steps back. Desktop is untouched. */
.so-bw-popup.is-open .so-bw-popup__dialog > #so-booking-widget[data-template="deck"],.so-bw-floating.is-open .so-bw-floating__panel > #so-booking-widget[data-template="deck"]{padding:0!important;border-radius:0!important;background:transparent!important}
/* FROST'S STEP MODAL, AS THE SHEET. From step 2 Frost lifts its card into a
   fixed, centred modal (z-index 400000001) over a dimmed backdrop. Inside this
   sheet that was a card inset in a card, and it painted over the ×: the close
   control could not be tapped from step 2 on. On a phone the modal simply
   fills the sheet, the backdrop goes (the sheet already covers the page), and
   the × is lifted above the modal. The modal's own control ("Close and return
   to services") stays in desktop shells, relabelled there; here the commit
   bar's Back does that job and the corner belongs to the one close. */
.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template="frost"]:not([data-so-step="1"])::before,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template="frost"]:not([data-so-step="1"])::before{display:none!important}
.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template="frost"][data-template-id]:not([data-so-step="1"]) .so-bw-container,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template="frost"][data-template-id]:not([data-so-step="1"]) .so-bw-container{top:var(--so-bw-vv-top,0px)!important;left:0!important;right:0!important;bottom:auto!important;transform:none!important;width:100%!important;max-width:none!important;height:100vh!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important}
@supports (height:100dvh){.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template="frost"][data-template-id]:not([data-so-step="1"]) .so-bw-container,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template="frost"][data-template-id]:not([data-so-step="1"]) .so-bw-container{height:var(--so-bw-vv-h,100dvh)!important}}
.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template="frost"] .so-bw-header-close,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template="frost"] .so-bw-header-close{display:none!important}
.so-bw-popup.is-open .so-bw-popup__close:has(~ #so-booking-widget[data-template="frost"]),.so-bw-floating.is-open .so-bw-floating__close:has(~ #so-booking-widget[data-template="frost"]){z-index:400000002}
/* Frost's corner dock draws its × at 40px, 22px in (booking-widget.css 33.3),
   at a specificity the shared phone placement above never reaches, so on a
   phone it landed on "Step 1 of 6" and off the title row. Same size and
   corner as every other sheet. */
.so-bw-floating.is-open .so-bw-floating__panel:has(> #so-booking-widget[data-template-id="glass-frost"]) .so-bw-floating__close{top:var(--so-bw-x-top,calc(var(--so-bw-vv-top,0px) + 10px + env(safe-area-inset-top)))!important;right:calc(10px + env(safe-area-inset-right))!important;width:36px!important;height:36px!important}
/* ONE ROW FOR BACK AND CONTINUE. Below a 380px container every nav button is
   `flex: 1 1 100%`, so Continue took a line of its own under Back and the
   commit bar stood about 150px tall on a 320x568 phone. In the sheet Back
   already keeps its own width; Continue now takes the rest of that row. A bar
   with only Continue (step one) fills the row exactly as before. */
.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template] .so-bw-nav > .so-bw-btn--primary,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template] .so-bw-nav > .so-bw-btn--primary{flex:1 1 0!important;min-width:0!important}
/* 16px in every text field. iOS Safari zooms the page into any field set
   smaller when it takes focus, and a zoomed page leaves this sheet and its ×
   partly off-screen until the customer pinches back out. */
#so-booking-widget[data-template] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),#so-booking-widget[data-template] textarea,#so-booking-widget[data-template] select{font-size:16px!important}
/* KEYBOARD UP: THE FIELD AND THE COMMIT BAR KEEP THE ROOM. shellScript()
   marks the sheet `data-so-bw-kb` while a text field in it has focus. With
   the keyboard taking half the screen, everything that is orientation rather
   than input folds away until focus leaves: the stepper and progress bar, the
   step's intro line, the docked summary, the reason note, the attribution. The
   title row and the × stay, so the customer still knows where they are and
   how to leave. */
.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-stepbar,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-mprog,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-progress,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-step-desc,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-rail,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-navstats,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-multi-summary,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-nav-why,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .so-bw-powered,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-stepbar,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-mprog,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-progress,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-step-desc,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-rail,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-navstats,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-multi-summary,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-nav-why,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .so-bw-powered,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .booking-trail,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .booking-trail,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget .sob-ws-hint,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget .sob-ws-hint{display:none!important}
/* Wide Canvas draws the same furniture with its own classes: the summary
   strip, the headline's description line and the commit bar's hint. */
.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget[data-template="wide"] .so-bw-sumpanel,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget[data-template="wide"] .sob-wc-sec,.so-bw-popup__dialog[data-so-bw-kb] #so-booking-widget[data-template="wide"] .sob-wc-hint,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget[data-template="wide"] .so-bw-sumpanel,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget[data-template="wide"] .sob-wc-sec,.so-bw-floating__panel[data-so-bw-kb] #so-booking-widget[data-template="wide"] .sob-wc-hint{display:none!important}
/* Wide Canvas's summary strip, on a phone, only where it is needed: the
   Review step, where the pane holds nothing but the payment choice and the
   strip is the only place the service, date and time are stated. On every
   other step it restated the pane's own headline in about 75px of a phone. */
.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template="wide"]:not([data-so-step="8"]) .so-bw-sumpanel,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template="wide"]:not([data-so-step="8"]) .so-bw-sumpanel{display:none!important}
/* Wide Canvas's brand row ("Book an Appointment" and its status note) is its
   own header, outside `.so-bw-header`, and at 320px the note ran under the ×. */
.so-bw-popup.is-open .so-bw-popup__dialog #so-booking-widget[data-template="wide"] .sob-wc-mini,.so-bw-floating.is-open .so-bw-floating__panel #so-booking-widget[data-template="wide"] .sob-wc-mini{padding-right:26px!important}
}
/* ONE PROGRESS INDICATOR ON A PHONE, NOT THREE. The phone bar (.so-bw-mprog)
   was added for every template, and these nine already draw their own
   stepper under the "Step 1 of 6" counter, so a phone stacked counter + bar +
   stepper. Where there is room the template's own stepper stays (it is part of
   the design) and the generic bar goes. On a SHORT phone the templates whose
   stepper is a tall row (chevrons, a rail, icon tabs, numbered dots) trade it
   for the 4px bar, which says the same thing; the four whose stepper already
   is a bar or carries the step's only label keep theirs. */
@media (max-width:560px) and (min-height:701px){
#so-booking-widget:is([data-template="centred"],[data-template="hero"],[data-template="tabbed"],[data-template="agenda"],[data-template="weekboard"],[data-template="deck"],[data-template="daypart"],[data-template="frost"],[data-template="dusk"],[data-template="editorial"],[data-template="soft"],[data-template="bundle"],[data-template="workspace"]) .so-bw-mprog{display:none!important}
}
@media (max-width:560px) and (max-height:700px){
#so-booking-widget:is([data-template="centred"],[data-template="agenda"],[data-template="weekboard"],[data-template="deck"],[data-template="dusk"],[data-template="editorial"],[data-template="soft"],[data-template="bundle"],[data-template="workspace"]) .so-bw-stepbar{display:none!important}
#so-booking-widget:is([data-template="hero"],[data-template="tabbed"],[data-template="daypart"],[data-template="frost"]) .so-bw-mprog{display:none!important}
}
