/* Marie's Booking - front end. Palette and type follow the maries.io landing page.
   Compatibility: no flexbox `gap` (Safari < 14.1) - flex spacing uses margins; grid gaps
   also set the older grid-gap names (Chrome < 66); no `inset`; aspect-ratio and dvh only
   behind fallbacks; :focus rings for browsers without :focus-visible. */
:root {
  --mb-ink: #2a1f17;         /* espresso: text, primary buttons, the phone visit bar */
  --mb-night: #14110d;       /* promo voucher */
  --mb-paper: #faf7f2;       /* cream: the "Your visit" rail, footer */
  --mb-sand: #f3ece3;
  --mb-accent: #c4956a;      /* champagne accent: +, added state, progress, price leaders (not for text) */
  --mb-bronze: #7a6549;      /* accent-coloured text: 5.5:1 on white, 4.9:1 on sand */
  --mb-gold: #a08968;        /* focus rings */
  --mb-champagne: #e8cf9a;   /* light gold on the dark voucher */
  --mb-line: #e7ddd1;
  --mb-muted: #6f6359;
  --mb-brand: var(--mb-ink);
  --mb-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --mb-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html.mb-lock, html.mb-lock body { overflow: hidden !important; }

/* iOS only fires delegated clicks on elements that look clickable. */
.mb-book, .os_trigger_booking, .latepoint-book-button { cursor: pointer; }

.mb-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999999; background: rgba(20, 17, 13, .55);
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; padding: 16px;
  /* keep clear of the notch / home indicator (landscape iPhones); browsers without env() keep 16px */
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: 0; transition: opacity .2s ease;
}
.mb-modal.is-open { opacity: 1; }
.mb-modal .mb-panel {
  width: 100%; max-width: 1200px;
  height: 920px;
  max-height: calc(100vh - 32px);
  max-height: calc(var(--mb-vh, 1vh) * 100 - 32px); /* set from window.innerHeight by booking.js */
  -webkit-transform: translateY(14px) scale(.985); transform: translateY(14px) scale(.985);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
@supports (height: 100dvh) {
  .mb-modal .mb-panel { max-height: calc(100dvh - 32px); }
}
@supports (padding: max(1px, env(safe-area-inset-bottom))) {
  .mb-modal .mb-panel {
    max-height: calc(var(--mb-vh, 1vh) * 100 - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  }
}
@supports (height: 100dvh) and (padding: max(1px, env(safe-area-inset-bottom))) {
  .mb-modal .mb-panel { max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))); }
}
.mb-modal.is-open .mb-panel { -webkit-transform: none; transform: none; }

.mb-panel {
  background: #fff; color: var(--mb-ink); border-radius: 18px; overflow: hidden;
  display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  box-shadow: 0 30px 80px rgba(20, 17, 13, .35); font-family: var(--mb-sans); font-size: 15px; line-height: 1.45; text-align: left;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.mb-panel.mb-inline { box-shadow: none; border: 1px solid var(--mb-line); max-width: 640px; margin: 0 auto; height: auto; min-height: 520px; }
.mb-panel *, .mb-panel *::before, .mb-panel *::after { box-sizing: border-box; }
.mb-panel h3, .mb-panel p { margin: 0; }
.mb-panel [hidden] { display: none !important; }

/* Neutralise theme button/input styling inside the popup (Hello Elementor styles button:hover at 0,2,0). */
.mb-panel button, .mb-panel button:hover, .mb-panel button:focus, .mb-panel button:active {
  background: none; border: 0; color: inherit; padding: 0; margin: 0; box-shadow: none; border-radius: 0;
  text-transform: none; letter-spacing: normal; font: inherit; line-height: inherit; min-height: 0; width: auto; text-decoration: none;
  cursor: pointer; text-align: inherit; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; overflow-wrap: anywhere;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* Focus ring: :focus for old browsers, then hidden for mouse clicks where :focus-visible exists. */
.mb-panel .mb-flow button:focus { outline: 2px solid var(--mb-gold) !important; outline-offset: 2px !important; box-shadow: none; }
.mb-panel .mb-flow button:focus:not(:focus-visible) { outline: none !important; }
.mb-panel .mb-flow button:focus-visible, .mb-panel .mb-flow input:focus-visible, .mb-panel .mb-flow textarea:focus-visible { outline: 2px solid var(--mb-gold) !important; outline-offset: 2px !important; box-shadow: none; }
.mb-panel button:disabled { cursor: default; }
.mb-panel button::-moz-focus-inner { border: 0; padding: 0; }

.mb-flow {
  position: relative;
  display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  min-height: 0; height: 100%; -webkit-flex: 1; flex: 1; outline: none;
}
/* Below the header: the step's own column and (wide popup only) the "Your visit" rail. */
.mb-main { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex: 1; flex: 1; min-height: 0; }
.mb-col {
  display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-flex: 1; flex: 1; min-width: 0; min-height: 0;
}
.mb-rail { display: none; }

/* header */
.mb-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 16px 14px 12px 20px; }
.mb-title { -webkit-flex: 1; flex: 1; min-width: 0; margin: 0 6px; font-family: var(--mb-serif); font-size: 26px; line-height: 1.1; font-weight: 400; letter-spacing: -.005em; }
.mb-back-spacer:first-child + .mb-title { margin-left: 0; }
.mb-panel button.mb-back, .mb-panel button.mb-close, .mb-back-spacer {
  width: 44px; height: 44px; border-radius: 50%; display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-flex: none; flex: none;
  font-size: 22px; line-height: 1; color: var(--mb-ink);
}
.mb-back-spacer:first-child { display: none; }
.mb-panel button.mb-back { -webkit-order: -1; order: -1; margin-left: -8px; }
.mb-panel button.mb-back:hover, .mb-panel button.mb-close:hover { background: var(--mb-sand); }
.mb-progress { display: -webkit-flex; display: flex; padding: 0 20px 12px; }
.mb-progress span { -webkit-flex: 1; flex: 1; height: 2px; border-radius: 2px; background: var(--mb-line); transition: background .3s; }
.mb-progress span + span { margin-left: 4px; }
.mb-progress span.on { background: var(--mb-accent); }
.mb-top { padding: 0 20px 12px; }
.mb-body {
  position: relative; padding: 4px 20px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; -webkit-flex: 1; flex: 1; min-height: 0;
  -ms-scroll-chaining: none; overscroll-behavior: contain;
}
.mb-foot { padding: 11px 20px; border-top: 1px solid var(--mb-line); font-size: 13px; color: var(--mb-muted); text-align: center; background: var(--mb-paper); }
.mb-foot a { color: inherit; text-decoration: underline; text-decoration-color: rgba(107, 98, 89, .4); text-underline-offset: 2px; }
.mb-foot-short { display: none; white-space: nowrap; }

.mb-loading { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; padding: 48px 0; color: var(--mb-muted); }
.mb-loading .mb-spinner { margin-right: 10px; }
.mb-spinner {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--mb-line); border-top-color: var(--mb-gold);
  -webkit-animation: mbspin .8s linear infinite; animation: mbspin .8s linear infinite;
}
@-webkit-keyframes mbspin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes mbspin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
.mb-error { background: #fbeeee; color: #8f2a2a; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.mb-note { color: var(--mb-muted); font-size: 14px; }

/* search */
.mb-search { position: relative; }
.mb-search-icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--mb-muted); pointer-events: none; display: block; }
.mb-search-icon svg { width: 18px; height: 18px; display: block; }
.mb-panel .mb-search input.mb-search-input {
  width: 100%; height: 46px; padding: 0 44px 0 42px; border: 1px solid var(--mb-line); border-radius: 23px; background: var(--mb-paper);
  font: inherit; font-size: 16px; line-height: normal; color: var(--mb-ink); box-shadow: none; margin: 0; -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.mb-panel .mb-search input.mb-search-input::-webkit-search-cancel-button,
.mb-panel .mb-search input.mb-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.mb-panel .mb-search button.mb-search-clear {
  position: absolute; right: 3px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  font-size: 20px; color: var(--mb-muted);
}
.mb-panel .mb-search button.mb-search-clear:hover { background: var(--mb-sand); color: var(--mb-ink); }
.mb-panel .mb-search button.mb-search-clear[hidden] { display: none; }
/* separate rules: one unknown selector would drop the whole list */
.mb-panel .mb-search input.mb-search-input::-webkit-input-placeholder { color: #766d64; }
.mb-panel .mb-search input.mb-search-input::-moz-placeholder { color: #766d64; opacity: 1; }
.mb-panel .mb-search input.mb-search-input::placeholder { color: #766d64; }
.mb-panel .mb-search input.mb-search-input:focus { outline: none; border-color: var(--mb-gold); background: #fff; box-shadow: 0 0 0 3px rgba(160, 137, 104, .18); }
.mb-empty { padding: 28px 4px; text-align: center; }
.mb-empty p:first-child { font-family: var(--mb-serif); font-size: 20px; margin-bottom: 6px; }

/* promotion voucher - the one loud element */
.mb-panel button.mb-voucher {
  position: relative; display: -webkit-flex; display: flex; width: 100%; margin: 4px 0 26px; border-radius: 14px; background: var(--mb-night); color: #fff;
  overflow: hidden; text-align: left; isolation: isolate;
  background-image: radial-gradient(120% 140% at 0% 0%, rgba(232, 207, 154, .16), transparent 55%);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* old Safari: clip children to the rounded corners */
}
.mb-panel button.mb-voucher:hover { -webkit-transform: translateY(-1px); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(20, 17, 13, .28); }
/* ticket notches where the perforation meets the edges */
.mb-panel button.mb-voucher::before, .mb-panel button.mb-voucher::after {
  content: ''; position: absolute; right: 118px; width: 22px; height: 22px; margin-right: -11px; border-radius: 50%; background: #fff; z-index: 2;
}
.mb-panel button.mb-voucher::before { top: -11px; }
.mb-panel button.mb-voucher::after { bottom: -11px; }
.mb-voucher-main {
  -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  padding: 20px 22px; min-width: 0;
}
.mb-voucher-main > * + * { margin-top: 6px; }
.mb-voucher-name { font-size: 13px; color: var(--mb-champagne); letter-spacing: .02em; }
.mb-voucher-head { font-family: var(--mb-serif); font-size: 29px; line-height: 1.08; color: #fff; }
.mb-voucher-sub { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.mb-voucher-main > .mb-voucher-cta {
  -webkit-align-self: flex-start; align-self: flex-start; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--mb-night); background: var(--mb-champagne);
  padding: 7px 14px; border-radius: 16px;
}
.mb-voucher-stub {
  width: 118px; -webkit-flex: none; flex: none; display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline;
  -webkit-justify-content: center; justify-content: center; padding-top: 34px;
  border-left: 2px dashed rgba(232, 207, 154, .35); color: var(--mb-champagne);
}
.mb-voucher-pct { font-family: var(--mb-serif); font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.mb-voucher-pct-sign { font-family: var(--mb-serif); font-size: 24px; margin-left: 1px; }

/* section heads */
.mb-section-head { display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; -webkit-justify-content: space-between; justify-content: space-between; margin: 0 0 10px; }
.mb-section-title { font-family: var(--mb-serif); font-size: 20px; font-weight: 400; line-height: 1.2; color: var(--mb-ink); }
.mb-section-note { font-size: 13px; color: var(--mb-muted); text-align: right; margin-left: 12px; }

/* packages: horizontal row */
.mb-packages {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 46%); grid-gap: 10px; gap: 10px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; margin: -4px -20px 22px; padding: 4px 20px 6px;
  -webkit-scroll-snap-type: x mandatory; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none;
}
.mb-packages::-webkit-scrollbar { display: none; }
/* Package card: the card books/adds it; the + sits in its top-right corner. */
.mb-package {
  position: relative; scroll-snap-align: start; border-radius: 12px; background: var(--mb-sand);
  border: 1px solid transparent; transition: border-color .15s, background-color .15s;
}
.mb-package:hover { border-color: var(--mb-accent); }
.mb-package.is-added { background: #fff; border-color: var(--mb-ink); }
.mb-panel button.mb-package-btn {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; width: 100%; height: 100%;
  min-height: 168px; padding: 16px 16px 14px; text-align: left; border-radius: 12px;
}
.mb-panel button.mb-package-btn > * + * { margin-top: 6px; }
.mb-package-name { font-family: var(--mb-serif); font-size: 21px; line-height: 1.15; padding-right: 46px; }
.mb-package-incl { font-size: 13px; color: var(--mb-muted); -webkit-flex: 1; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-panel button.mb-package-btn > .mb-package-foot {
  display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; -webkit-justify-content: space-between; justify-content: space-between;
  margin-top: 10px;
}
.mb-package-price { font-weight: 600; font-size: 16px; }
.mb-package-dur { font-size: 13px; color: var(--mb-muted); margin-left: 8px; white-space: nowrap; }
.mb-package-save { font-size: 12.5px; color: var(--mb-bronze); font-weight: 600; }
.mb-panel .mb-package > button.mb-add { position: absolute; top: 8px; right: 8px; }

/* categories: quiet list */
.mb-cats { display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 18px; column-gap: 18px; }
.mb-panel button.mb-cat {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: 100%; padding: 10px 2px; border-bottom: 1px solid var(--mb-line); text-align: left;
}
.mb-panel button.mb-cat > * + * { margin-left: 12px; }
.mb-panel button.mb-cat img, .mb-cat-ph {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; -webkit-flex: none; flex: none; background: var(--mb-sand);
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  font-family: var(--mb-serif); font-size: 20px; color: var(--mb-gold);
}
.mb-cat-text { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; min-width: 0; }
.mb-cat-name { font-weight: 500; font-size: 15.5px; }
.mb-cat-sub { font-size: 13px; color: var(--mb-muted); }
.mb-panel button.mb-cat.is-promo .mb-cat-sub { color: var(--mb-bronze); font-weight: 600; }
.mb-chev { width: 18px; height: 18px; color: #b3a99f; -webkit-flex: none; flex: none; transition: transform .15s, color .15s; display: block; }
.mb-chev svg { width: 18px; height: 18px; display: block; }
.mb-panel button.mb-cat:hover .mb-chev { -webkit-transform: translateX(2px); transform: translateX(2px); color: var(--mb-ink); }
.mb-panel button.mb-cat:hover .mb-cat-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mb-gold); }

/* service list */
.mb-promo-note { font-size: 14px; background: var(--mb-sand); border-left: 3px solid var(--mb-gold); padding: 10px 12px; border-radius: 0 8px 8px 0; margin-bottom: 12px; }
.mb-list { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
/* Treatment row: [ the row itself (books / adds) ][ + ] */
.mb-item {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  border-bottom: 1px solid var(--mb-line); margin: 0 -10px; padding: 0 10px; border-radius: 0; transition: background-color .15s;
}
.mb-item.is-added { background: var(--mb-paper); box-shadow: inset 3px 0 0 var(--mb-accent); }
.mb-panel button.mb-item-btn {
  display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start;
  -webkit-flex: 1; flex: 1; min-width: 0; text-align: left; padding: 14px 0;
}
.mb-panel button.mb-item-btn:hover .mb-item-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mb-accent); }
.mb-panel .mb-item > button.mb-add { margin-left: 14px; }

/* The + : a 44px circle in the accent colour; a filled espresso check once added. */
.mb-panel button.mb-add {
  -webkit-flex: none; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  background: #fff; color: var(--mb-ink); box-shadow: inset 0 0 0 1.5px var(--mb-accent);
  transition: background-color .15s, color .15s, box-shadow .15s, -webkit-transform .15s; transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.mb-panel button.mb-add svg { width: 20px; height: 20px; display: block; }
.mb-panel button.mb-add:hover { background: var(--mb-accent); color: var(--mb-ink); }
.mb-panel button.mb-add:active { -webkit-transform: scale(.94); transform: scale(.94); }
.mb-panel button.mb-add.is-on { background: var(--mb-ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--mb-ink); }
.mb-panel button.mb-add.is-on:hover { background: #4a3a2e; }
.mb-item-main { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; min-width: 0; }
.mb-item-main > * + * { margin-top: 3px; }
.mb-item-name { font-weight: 500; font-size: 15.5px; }
.mb-item-desc { font-size: 13.5px; color: var(--mb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mb-item-dur { font-size: 13px; color: var(--mb-muted); }
.mb-item-side {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: flex-end; align-items: flex-end;
  -webkit-flex: none; flex: none; margin-left: 16px;
}
.mb-item-side > * + * { margin-top: 4px; }
.mb-price { font-weight: 600; white-space: nowrap; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: baseline; align-items: baseline; }
.mb-price.is-promo .mb-price-now { margin-left: 6px; }
.mb-price-was { color: #766d64; font-weight: 400; font-size: 13.5px; }
.mb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mb-price.is-promo .mb-price-now { color: var(--mb-ink); }
.mb-tag { font-size: 12px; font-weight: 600; color: var(--mb-night); background: var(--mb-champagne); padding: 2px 8px; border-radius: 10px; }

/* date & time */
.mb-chosen {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: baseline; align-items: baseline;
  font-size: 14px; color: var(--mb-muted); margin-bottom: 16px; padding: 8px 14px; background: var(--mb-sand); border-radius: 10px;
}
.mb-chosen > * { margin: 2px 12px 2px 0; }
.mb-chosen > :last-child { margin-right: 0; }
.mb-chosen strong { color: var(--mb-ink); font-weight: 600; }
.mb-chosen .mb-price { margin-left: auto; color: var(--mb-ink); }
.mb-cal-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 8px; }
.mb-cal-month { font-family: var(--mb-serif); font-size: 19px; }
.mb-panel button.mb-cal-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mb-line); background: #fff; color: var(--mb-ink); font-size: 20px; line-height: 1;
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.mb-panel button.mb-cal-nav:disabled { opacity: .3; }
.mb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 4px; gap: 4px; }
.mb-cal-dow { text-align: center; font-size: 12px; color: var(--mb-muted); padding: 4px 0; }
/* Day circles: fixed height (= the 44px max width) where aspect-ratio is missing (Safari < 15). */
.mb-panel button.mb-day {
  height: 44px; border-radius: 50%; color: #c9c0b7; font-size: 14px; max-width: 44px; margin: 0 auto; width: 100%;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; text-align: center;
}
@supports (aspect-ratio: 1 / 1) {
  .mb-panel button.mb-day { height: auto; aspect-ratio: 1 / 1; }
}
.mb-panel button.mb-day.is-avail { color: var(--mb-ink); font-weight: 600; background: var(--mb-sand); }
.mb-panel button.mb-day.is-avail:hover { box-shadow: inset 0 0 0 1.5px var(--mb-ink); }
.mb-panel button.mb-day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.mb-panel button.mb-day.is-sel { background: var(--mb-ink) !important; color: #fff !important; }
.mb-dt-note { margin: 0 0 14px; }
.mb-slots { margin-top: 18px; }
.mb-slots-title { font-family: var(--mb-serif); font-size: 19px; margin-bottom: 4px; }
.mb-slot-group { font-size: 13px; color: var(--mb-muted); margin: 12px 0 6px; }
.mb-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-gap: 6px; gap: 6px; }
.mb-panel button.mb-slot { min-height: 44px; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--mb-line); background: #fff; color: var(--mb-ink); font-weight: 500; font-size: 14px; text-align: center; }
.mb-panel button.mb-slot:hover { border-color: var(--mb-ink); background: var(--mb-ink); color: #fff; }

/* forms */
.mb-form { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.mb-field { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; font-size: 13px; color: var(--mb-muted); margin: 0; min-width: 0; }
.mb-field > span { margin-bottom: 5px; }
.mb-panel .mb-field input, .mb-panel .mb-field textarea {
  font: inherit; font-size: 16px; line-height: 1.35; color: var(--mb-ink); padding: 11px 12px; border: 1px solid #ddd5cc; border-radius: 10px; background: #fff; width: 100%; box-shadow: none; margin: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.mb-panel .mb-field textarea { resize: vertical; }
.mb-panel .mb-field input:focus, .mb-panel .mb-field textarea:focus { border-color: var(--mb-gold); outline: none; box-shadow: 0 0 0 3px rgba(160, 137, 104, .18); }
.mb-panel .mb-field input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.mb-error[hidden] { display: none; }
/* Details-form message: eased open instead of popping in and shoving the form down. */
.mb-error-slot { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .2s ease, opacity .2s ease; }
.mb-error-slot.is-on { max-height: 120px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mb-error-slot { transition: none; } }
.mb-item-save { font-size: 13px; color: var(--mb-bronze); font-weight: 600; }
.mb-full { grid-column: 1 / -1; }
.mb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mb-panel button.mb-primary {
  display: block; width: 100%; padding: 14px 16px; border-radius: 26px; background: var(--mb-ink); color: #fff;
  font-weight: 600; font-size: 16px; margin-top: 8px; text-align: center; transition: background .15s;
}
.mb-panel button.mb-primary:hover { background: #1a120c; }
.mb-panel button.mb-primary:disabled { opacity: .55; }
.mb-panel button.mb-primary.is-busy { cursor: progress; background: #000; }
.mb-panel .mb-btn-spinner {
  width: 16px; height: 16px; margin: -3px 10px 0 0; vertical-align: middle;
  border-color: rgba(255, 255, 255, .3); border-top-color: #fff;
}
.mb-flow.is-busy .mb-back, .mb-flow.is-busy .mb-close { pointer-events: none; opacity: .35; }
.mb-busy-hint { margin-top: 10px; text-align: center; }
.mb-busy-hint:empty { display: none; }
.mb-panel a.mb-manage-link {
  display: block; width: 100%; padding: 13px 16px; margin-top: 14px; border: 1px solid var(--mb-ink); border-radius: 26px;
  color: var(--mb-ink); background: #fff; font-weight: 600; font-size: 16px; text-align: center; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.mb-panel a.mb-manage-link:hover { background: var(--mb-sand); color: var(--mb-ink); }
.mb-panel a.mb-manage-link:focus { outline: 2px solid var(--mb-gold); outline-offset: 2px; }
.mb-panel a.mb-manage-link:focus:not(:focus-visible) { outline: none; }

/* review / done */
.mb-review { display: grid; grid-template-columns: auto 1fr; grid-gap: 8px 16px; gap: 8px 16px; margin: 0 0 18px; }
.mb-review dt { color: var(--mb-muted); font-size: 14px; margin: 0; }
.mb-review dd { margin: 0; font-weight: 500; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.mb-done { text-align: center; }
.mb-done .mb-review { text-align: left; max-width: 400px; margin: 16px auto; }
.mb-check {
  width: 58px; height: 58px; border-radius: 50%; background: var(--mb-night); color: var(--mb-champagne); font-size: 28px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; margin: 6px auto 12px;
}
.mb-done-lead { font-family: var(--mb-serif); font-size: 22px; margin: 0; }
.mb-review-items { list-style: none; margin: 0; padding: 0; }
.mb-review-items li + li { margin-top: 8px; }
.mb-review-name { display: block; font-weight: 600; }
.mb-review-meta { display: block; font-size: 13.5px; color: var(--mb-muted); font-weight: 400; }

/* ---------- "Your visit": shared list + totals (rail, phone bar, inline card) ---------- */
.mb-cart { list-style: none; margin: 0; padding: 0; }
.mb-cart-item {
  display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--mb-line);
}
.mb-cart-text { -webkit-flex: 1; flex: 1; min-width: 0; }
/* Salon price-list line: name, dotted leader, price. */
.mb-cart-line, .mb-cart-total { display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; }
.mb-cart-name { font-weight: 600; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
.mb-leader {
  -webkit-flex: 1; flex: 1; min-width: 14px; margin: 0 6px; border-bottom: 2px dotted var(--mb-accent);
  position: relative; top: -4px; opacity: .8;
}
.mb-cart-price { font-weight: 600; white-space: nowrap; }
.mb-cart-sub { font-size: 13px; color: var(--mb-muted); margin-top: 2px; }
.mb-cart-sub .mb-price-was { margin-left: 8px; font-size: 13px; }
.mb-panel button.mb-cart-remove {
  -webkit-flex: none; flex: none; width: 44px; height: 44px; margin: -10px -12px -10px 4px; border-radius: 50%; color: var(--mb-muted);
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.mb-panel button.mb-cart-remove svg { width: 18px; height: 18px; display: block; }
.mb-panel button.mb-cart-remove:hover { color: #8f2a2a; background: #fbeeee; }
.mb-cart-totals { padding-top: 12px; }
.mb-cart-total { font-family: var(--mb-serif); font-size: 22px; line-height: 1.2; }
.mb-cart-total-price { white-space: nowrap; }
.mb-cart-time { font-size: 13.5px; color: var(--mb-muted); margin-top: 2px; }
.mb-cart-save { font-size: 13px; color: var(--mb-bronze); font-weight: 600; margin-top: 4px; }
.mb-when {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--mb-line); font-weight: 600; font-size: 14.5px;
}
.mb-when-label { display: block; font-weight: 400; font-size: 12.5px; color: var(--mb-muted); }

/* Desktop rail */
.mb-rail-title { font-family: var(--mb-serif); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0 0 6px; color: var(--mb-ink); }
.mb-rail-empty { font-size: 14px; color: var(--mb-muted); margin: 6px 0 0; }
.mb-panel button.mb-rail-go { margin-top: 18px; }
.mb-rail-hint { font-size: 13px; color: var(--mb-muted); text-align: center; margin: 10px 0 0; }
.mb-panel button.mb-textlink {
  display: block; min-height: 44px; margin-top: 10px; color: var(--mb-bronze); font-weight: 600; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(122, 101, 73, .4);
}

/* Phones + inline forms: sticky visit bar that opens upward into the list. */
.mb-bar { -webkit-flex: none; flex: none; background: var(--mb-ink); color: #fff; }
.mb-bar-list {
  background: var(--mb-paper); color: var(--mb-ink); padding: 6px 20px 14px; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--mb-line); overscroll-behavior: contain;
}
.mb-bar-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 6px 8px 6px 0; }
.mb-panel button.mb-bar-sum {
  -webkit-flex: 1; flex: 1; min-width: 0; min-height: 52px; padding: 0 8px 0 16px; color: #fff;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; text-align: left;
}
.mb-bar-text { -webkit-flex: 1; flex: 1; min-width: 0; line-height: 1.25; }
.mb-bar-what, .mb-bar-meta { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-bar-what { font-weight: 600; font-size: 15px; }
.mb-bar-meta { font-size: 13.5px; color: var(--mb-champagne); }
.mb-bar-chev { -webkit-flex: none; flex: none; width: 18px; height: 18px; margin-left: 6px; opacity: .8; transition: transform .2s; }
.mb-bar-chev svg { width: 18px; height: 18px; display: block; }
.mb-bar.is-open .mb-bar-chev { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.mb-panel button.mb-bar-go {
  -webkit-flex: none; flex: none; min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--mb-accent); color: var(--mb-ink);
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.mb-panel button.mb-bar-go:hover { background: #d4a77e; }
.mb-flow.has-bar > .mb-foot { display: none; }

/* Later steps on phones: the visit as a one-line card that opens. */
.mb-cart-inline { background: var(--mb-sand); border-radius: 12px; margin-bottom: 16px; }
.mb-panel button.mb-ci-toggle {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; width: 100%; min-height: 48px; padding: 8px 14px; text-align: left;
}
.mb-ci-text { -webkit-flex: 1; flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; }
.mb-ci-chev { -webkit-flex: none; flex: none; width: 18px; height: 18px; margin-left: 8px; color: var(--mb-muted); -webkit-transform: rotate(180deg); transform: rotate(180deg); transition: transform .2s; }
.mb-ci-chev svg { width: 18px; height: 18px; display: block; }
.mb-ci-toggle[aria-expanded="true"] .mb-ci-chev { -webkit-transform: none; transform: none; }
.mb-ci-list { padding: 0 14px 12px; }
.mb-cart-inline > .mb-when { margin: 0 14px 12px; }

/* Short notice (limit reached, already added) */
.mb-toast {
  position: absolute; left: 50%; bottom: 72px; z-index: 5; max-width: 90%; padding: 10px 16px; border-radius: 22px;
  background: var(--mb-ink); color: #fff; font-size: 14px; text-align: center; box-shadow: 0 10px 30px rgba(20, 17, 13, .25);
  opacity: 0; pointer-events: none; -webkit-transform: translate(-50%, 8px); transform: translate(-50%, 8px); transition: opacity .2s, transform .2s;
}
.mb-toast.is-on { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }
.mb-toast.is-warn { box-shadow: 0 0 0 2px var(--mb-accent), 0 10px 30px rgba(20, 17, 13, .25); }
.mb-flow.has-bar .mb-toast { bottom: 84px; }

/* ---------- Suggestions: quiet cards under the visit (rail, phone bar list, inline card) ---------- */
.mb-ups { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mb-line); }
.mb-up {
  position: relative; background: #fff; border: 1px solid var(--mb-line); border-radius: 12px; padding: 12px 44px 12px 14px;
}
.mb-up + .mb-up { margin-top: 10px; }
.mb-up-copy { font-size: 14px; line-height: 1.4; color: var(--mb-ink); margin: 0; }
.mb-up-foot {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-top: 8px;
}
.mb-up-meta { font-size: 13px; font-weight: 600; color: var(--mb-bronze); margin-right: 10px; }
.mb-panel button.mb-up-go {
  min-height: 44px; padding: 0 18px; border-radius: 22px; background: var(--mb-accent); color: var(--mb-ink);
  font-weight: 700; font-size: 14.5px; white-space: nowrap; text-align: center;
}
.mb-panel button.mb-up-go:hover { background: #d4a77e; }
.mb-panel button.mb-up-go.is-busy { cursor: progress; }
.mb-panel button.mb-up-go .mb-btn-spinner { border-color: rgba(42, 31, 23, .25); border-top-color: var(--mb-ink); }
.mb-panel button.mb-up-x {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 50%; color: var(--mb-muted);
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.mb-panel button.mb-up-x svg { width: 16px; height: 16px; display: block; }
.mb-panel button.mb-up-x:hover { color: var(--mb-ink); background: var(--mb-sand); }
.mb-up-warn { background: #fdf6ec; border-color: #ead7bd; padding-right: 14px; margin-top: 14px; }
.mb-ci-notice { padding: 0 14px 12px; }
.mb-ci-notice .mb-up-warn { margin-top: 0; }
.mb-up-warn .mb-up-foot .mb-textlink { margin-top: 0; }
.mb-bar-list .mb-ups, .mb-ci-list .mb-ups { margin-top: 14px; }

/* Confirmation: one "Add to this visit" card */
.mb-done-up { max-width: 400px; margin: 0 auto 14px; text-align: left; }
.mb-done-up:empty { display: none; }
.mb-up-done { background: var(--mb-paper); }
.mb-up-title { font-family: var(--mb-serif); font-size: 18px; line-height: 1.2; margin: 0 0 4px; color: var(--mb-ink); }
.mb-up-result { font-size: 14.5px; text-align: center; color: var(--mb-ink); background: var(--mb-paper); border-radius: 12px; padding: 12px 14px; margin: 0; }
.mb-up-result.is-ok { color: #2f6b45; font-weight: 600; }

/* ---------- Confirmation: success header, receipt card, "What's next" ---------- */
.mb-title.has-check { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.mb-title-check {
  -webkit-flex: none; flex: none; width: 28px; height: 28px; margin-right: 12px; border-radius: 50%;
  background: var(--mb-accent); color: var(--mb-ink);
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
}
.mb-title-check svg { width: 16px; height: 16px; display: block; }

.mb-done2 { padding-top: 6px; }
.mb-nowrap { white-space: nowrap; }

/* The visit as a receipt: same cream + leader-dot language as the "Your visit" panel. */
.mb-receipt { background: var(--mb-paper); border: 1px solid var(--mb-line); border-radius: 16px; padding: 22px 22px 18px; }
.mb-rc-status { font-size: 14px; color: var(--mb-muted); margin: 0 0 6px; }
.mb-rc-when { font-family: var(--mb-serif); font-size: 26px; line-height: 1.2; color: var(--mb-ink); margin: 0 0 14px; }
.mb-rc-dot { color: var(--mb-accent); }
.mb-rc-list { border-top: 1px solid var(--mb-line); }
.mb-rc-total { padding-top: 14px; }
.mb-rc-total .mb-cart-total { font-size: 26px; }
.mb-rc-total .mb-cart-save { margin: 6px 0 0; font-size: 14px; }
.mb-rc-pay { font-size: 14px; color: var(--mb-muted); margin: 2px 0 0; }
.mb-rc-code {
  display: inline-block; margin: 16px 0 0; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--mb-line); background: #fff;
  font-size: 13px; color: var(--mb-muted);
}
.mb-rc-code-label { margin-right: 6px; }
.mb-rc-code-val { font-weight: 700; color: var(--mb-ink); letter-spacing: .04em; }

/* What's next */
.mb-next { margin-top: 22px; }
.mb-next-title { font-family: var(--mb-serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0 0 4px; color: var(--mb-ink); }
.mb-next-block { margin-top: 16px; }
.mb-next-label { font-size: 13.5px; color: var(--mb-muted); margin: 0 0 8px; }
.mb-next-row { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -8px -8px 0; }
.mb-panel a.mb-pill {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  min-height: 44px; padding: 0 18px; margin: 0 8px 8px 0; border-radius: 22px; border: 1px solid var(--mb-line); background: #fff;
  color: var(--mb-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.mb-panel a.mb-pill:hover { border-color: var(--mb-accent); background: var(--mb-paper); }
.mb-next-text { font-size: 14.5px; margin: 0 0 2px; }
.mb-panel a.mb-textlink-a {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; min-height: 44px;
  color: var(--mb-bronze); font-weight: 600; font-size: 14.5px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(122, 101, 73, .4); -webkit-tap-highlight-color: transparent;
}
.mb-panel a.mb-pill:focus, .mb-panel a.mb-textlink-a:focus { outline: 2px solid var(--mb-gold); outline-offset: 2px; }
.mb-panel a.mb-pill:focus:not(:focus-visible), .mb-panel a.mb-textlink-a:focus:not(:focus-visible) { outline: none; }
.mb-next-mail { font-size: 14px; color: var(--mb-muted); }
.mb-next-where .mb-textlink-a { margin-right: 18px; }
.mb-next-call { display: -webkit-flex; display: flex; }
.mb-next .mb-done-up { max-width: none; margin: 16px 0 0; }
.mb-next-actions .mb-primary { margin-top: 0; }
.mb-next-actions .mb-next-manage { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; margin-top: 6px; }

/* Phones: date headline, the visit card, add to calendar, the suggestion, then the actions. */
@media (max-width: 760px) {
  .mb-next { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
  .mb-next-title { -webkit-order: 0; order: 0; }
  .mb-next-cal { -webkit-order: 1; order: 1; }
  .mb-next .mb-done-up { -webkit-order: 2; order: 2; }
  .mb-next-actions { -webkit-order: 3; order: 3; }
  .mb-next-where { -webkit-order: 4; order: 4; }
  .mb-next-mail { -webkit-order: 5; order: 5; }
  .mb-rc-when { font-size: 23px; }
  .mb-receipt { padding: 18px 16px 16px; }
}

/* Wide popup: the receipt on the left, "What's next" beside it. */
@media (min-width: 761px) {
  .mb-modal .mb-done2 {
    display: -ms-grid; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-column-gap: 40px; column-gap: 40px;
    -webkit-align-items: start; align-items: start; max-width: 1040px; margin: 0 auto;
  }
  .mb-modal .mb-receipt { padding: 30px 32px 26px; }
  .mb-modal .mb-rc-when { font-size: 32px; }
  .mb-modal .mb-rc-total .mb-cart-total { font-size: 30px; }
  .mb-modal .mb-next { margin-top: 0; }
}

/* wide popup: use the room */
@media (min-width: 761px) {
  .mb-modal .mb-head { padding: 22px 22px 14px 32px; }
  .mb-modal .mb-progress { padding-left: 32px; padding-right: 32px; }
  .mb-modal .mb-top { padding: 4px 28px 12px 32px; }
  .mb-modal .mb-body { padding: 6px 28px 28px 32px; }
  .mb-modal .mb-title { font-size: 30px; }
  .mb-modal .mb-packages { margin-left: -32px; margin-right: -28px; padding-left: 32px; padding-right: 28px; scroll-padding-inline: 32px;
    grid-auto-columns: minmax(210px, calc((100% - 20px) / 3)); }
  .mb-modal .mb-voucher-head { font-size: 32px; }
  .mb-modal .mb-voucher-main { padding: 24px 28px; }
  .mb-modal .mb-done .mb-primary, .mb-modal .mb-done .mb-manage-link { max-width: 360px; margin-left: auto; margin-right: auto; }

  /* "Your visit" rail: on every step up to review, so the popup keeps one shape throughout. */
  .mb-modal .mb-rail {
    display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
    -webkit-flex: none; flex: none; width: 360px; padding: 4px 30px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--mb-paper); border-left: 1px solid var(--mb-line); border-top-left-radius: 14px; overscroll-behavior: contain;
  }
  .mb-modal .mb-rail-title { margin-top: 18px; }
  .mb-modal .mb-bar, .mb-modal .mb-cart-inline { display: none; }
  .mb-modal .mb-flow.has-bar > .mb-foot { display: block; }
  .mb-modal .mb-flow.has-bar .mb-toast { bottom: 72px; }
  .mb-modal .mb-toast { left: calc(50% - 180px); }
}

@media (max-width: 560px) {
  .mb-modal { padding: 0; -webkit-align-items: flex-end; align-items: flex-end; }
  .mb-modal .mb-panel {
    max-width: none; border-radius: 18px 18px 0 0;
    height: 94vh; height: calc(var(--mb-vh, 1vh) * 94);
    max-height: none;
  }
  @supports (height: 100dvh) {
    .mb-modal .mb-panel { height: 94dvh; max-height: none; }
  }
  .mb-title { font-size: 23px; }
  .mb-form { grid-template-columns: 1fr; }
  .mb-cats { grid-template-columns: 1fr; }
  .mb-packages { grid-auto-columns: 78%; }
  .mb-panel button.mb-voucher::before, .mb-panel button.mb-voucher::after { right: 92px; }
  .mb-voucher-stub { width: 92px; padding-top: 30px; }
  .mb-voucher-pct { font-size: 42px; }
  .mb-voucher-head { font-size: 25px; }
  .mb-voucher-main { padding: 18px 16px 18px 18px; }
}
/* Bottom sheet: clear the home indicator and (landscape) the notch sides. Browsers without env()
   drop these declarations and keep the plain paddings above. */
@media (max-width: 560px) {
  .mb-modal .mb-foot { padding-bottom: calc(11px + env(safe-area-inset-bottom)); }
  .mb-modal .mb-bar-row { padding-bottom: calc(6px + env(safe-area-inset-bottom)); padding-left: env(safe-area-inset-left); padding-right: max(8px, env(safe-area-inset-right)); }
  .mb-modal .mb-head { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .mb-modal .mb-progress, .mb-modal .mb-top, .mb-modal .mb-body, .mb-modal .mb-foot {
    padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right));
  }
}
/* Narrow phones: day circles shrink with the 7 columns ((viewport - 40px padding - 24px gaps) / 7);
   one-line footer. */
@media (max-width: 400px) {
  .mb-panel button.mb-day { height: calc((100vw - 64px) / 7); }
  @supports (aspect-ratio: 1 / 1) {
    .mb-panel button.mb-day { height: auto; }
  }
  .mb-foot.has-short .mb-foot-long { display: none; }
  .mb-foot.has-short .mb-foot-short { display: inline; }
}
/* 320-360px: slimmer side padding and calendar gaps so day buttons stay >= 40px wide
   ((320 - 28 - 12) / 7 = 40), and a title that never wraps. */
@media (max-width: 360px) {
  .mb-modal .mb-head { padding-left: 14px; padding-right: 8px; }
  .mb-modal .mb-progress, .mb-modal .mb-top, .mb-modal .mb-body, .mb-modal .mb-foot { padding-left: 14px; padding-right: 14px; }
  .mb-modal .mb-packages { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; scroll-padding-inline: 14px; }
  .mb-cal-grid { grid-gap: 2px; gap: 2px; }
  .mb-panel button.mb-day { height: calc((100vw - 40px) / 7); }
  @supports (aspect-ratio: 1 / 1) {
    .mb-panel button.mb-day { height: auto; }
  }
  .mb-title { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .mb-modal, .mb-modal .mb-panel, .mb-panel button.mb-voucher, .mb-chev { transition: none !important; }
  .mb-spinner { -webkit-animation-duration: 2s; animation-duration: 2s; }
}

/* buttons + manage page (outside the popup) */
button.mb-book-btn {
  display: inline-block; padding: 12px 26px; border: 0; border-radius: 30px; background: var(--mb-brand); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3;
  -webkit-appearance: none; -moz-appearance: none; appearance: none; touch-action: manipulation; white-space: normal;
}
button.mb-book-btn:hover, button.mb-book-btn:focus { background: #000; color: #fff; border: 0; }
button.mb-book-btn:disabled { opacity: .6; cursor: default; }
.mb-manage { max-width: 640px; margin: 0 auto; padding: 48px 20px 64px; font-family: var(--mb-sans); color: var(--mb-ink); line-height: 1.5; -webkit-text-size-adjust: 100%; }
.mb-manage *, .mb-manage *::before, .mb-manage *::after { box-sizing: border-box; }
.mb-manage h1, .mb-manage h2, .mb-manage h3 { font-family: var(--mb-serif); font-weight: 400; color: var(--mb-ink); margin: 0 0 12px; }
.mb-manage h1 { font-size: 38px; line-height: 1.1; }
.mb-manage h3, .mb-manage h2.mb-h3 { font-size: 22px; line-height: 1.2; margin-top: 28px; }
.mb-manage p { color: #3d3833; margin: 0 0 12px; }
.mb-manage .mb-note { color: var(--mb-muted); }
.mb-manage a { color: var(--mb-bronze); }
.mb-manage button:focus, .mb-manage input:focus { outline: 2px solid var(--mb-gold); outline-offset: 2px; }
.mb-manage button:focus:not(:focus-visible) { outline: none; }
.mb-manage button:focus-visible, .mb-manage input:focus-visible { outline: 2px solid var(--mb-gold) !important; outline-offset: 2px; }
.mb-manage .mb-site-link { display: inline-block; margin-bottom: 28px; color: var(--mb-muted); text-decoration: none; font-size: 14px; }
.mb-manage .mb-site-link:hover { color: var(--mb-ink); }

/* /customer-cabinet: brand header + column centred in the viewport (margin:auto inside a flex
   column centres when short and simply grows when long - nothing is ever cut off at the top). */
.mb-cabinet {
  box-sizing: border-box; min-height: 100vh; display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column; padding: 24px 20px;
}
.mb-cabinet .mb-manage { margin: auto; width: 100%; padding: 0 0 24px; }
.mb-cabinet .mb-brand { display: block; text-align: center; margin: 0 0 32px; text-decoration: none; color: var(--mb-ink); }
.mb-cabinet .mb-brand img { display: inline-block; width: 150px; height: auto; vertical-align: top; }
.mb-cabinet .mb-sheet { background: #fff; border: 1px solid var(--mb-line); border-radius: 18px; padding: 36px 36px 28px; }
.mb-cabinet .mb-sheet .mb-card { background: var(--mb-paper); }
.mb-cabinet .mb-foot-link { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--mb-muted); text-decoration: none; }
.mb-cabinet .mb-foot-link:hover { color: var(--mb-ink); }
@media (max-width: 560px) {
  .mb-cabinet { padding: 18px 14px; }
  .mb-cabinet .mb-brand { margin-bottom: 20px; }
  .mb-cabinet .mb-brand img { width: 120px; }
  .mb-cabinet .mb-sheet { padding: 24px 18px 18px; border-radius: 14px; }
}
.mb-manage .mb-card { border: 1px solid var(--mb-line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; background: #fff; word-wrap: break-word; overflow-wrap: break-word; }
.mb-manage .mb-card-title { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.mb-manage .mb-card-meta { color: var(--mb-muted); font-size: 14px; margin-top: 6px; }
.mb-manage .mb-card .mb-note, .mb-manage .mb-card .mb-error { margin: 10px 0 0; }
.mb-manage .mb-status-cancelled { opacity: .6; }
.mb-manage button.mb-cancel {
  margin-top: 10px; background: #fff; color: #8f2a2a; border: 1px solid #e3c2c2; border-radius: 999px; padding: 8px 18px; cursor: pointer; font: inherit;
  -webkit-appearance: none; -moz-appearance: none; appearance: none; touch-action: manipulation;
}
.mb-manage button.mb-cancel:hover { background: #fbeeee; color: #8f2a2a; }
.mb-manage button.mb-cancel.is-confirm { background: #8f2a2a; color: #fff; }
.mb-lookup { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 12px 0 4px; }
.mb-lookup-label { -webkit-flex-basis: 100%; flex-basis: 100%; margin: 0 0 6px 4px; font-size: 14px; font-weight: 500; color: var(--mb-ink); }
.mb-lookup > input { margin: 0 8px 8px 0; }
.mb-lookup > button { margin: 0 0 8px; }
.mb-manage .mb-lookup input {
  -webkit-flex: 1 1 220px; flex: 1 1 220px; min-width: 0; padding: 12px 18px; border: 1px solid #ddd5cc; border-radius: 999px; font: inherit; font-size: 16px;
  background: #fff; color: var(--mb-ink); -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.mb-manage .mb-lookup input:focus { border-color: var(--mb-gold); box-shadow: 0 0 0 3px rgba(160, 137, 104, .18); }
.mb-manage .mb-lookup button.mb-book-btn { border-radius: 999px; }
.mb-lookup-msg { -webkit-flex-basis: 100%; flex-basis: 100%; font-size: 14px; }
.mb-lookup-msg.is-ok { color: #2f6b45; }
.mb-lookup-msg.is-err { color: #8f2a2a; }
.mb-past { color: var(--mb-muted); padding-left: 20px; }
.mb-past li { margin-bottom: 4px; }
@media (max-width: 400px) {
  .mb-manage { padding-top: 28px; }
  .mb-manage h1 { font-size: 32px; }
  .mb-lookup > input { margin-right: 0; }
  .mb-manage .mb-lookup button.mb-book-btn { width: 100%; }
}

/* Desktop: the start screen fits the popup without scrolling (compact voucher, shorter
   package cards, categories in three columns). Phones keep the roomier layout. */
@media (min-width: 761px) {
  .mb-modal .mb-voucher-main { padding: 16px 24px; }
  .mb-modal .mb-voucher-main > * + * { margin-top: 3px; }
  .mb-modal .mb-voucher-head { font-size: 26px; }
  .mb-modal .mb-voucher-main > .mb-voucher-cta { margin-top: 8px; }
  .mb-modal .mb-voucher-pct { font-size: 44px; }
  .mb-modal .mb-panel button.mb-package-btn { min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .mb-modal .mb-package-name { font-size: 19px; }
  .mb-modal .mb-section-head { margin-bottom: 8px; }
  .mb-modal .mb-packages { margin-bottom: 16px; }
  .mb-modal .mb-cats { grid-template-columns: 1fr 1fr 1fr; }
  .mb-modal .mb-panel button.mb-cat { padding-top: 8px; padding-bottom: 8px; }
  .mb-modal .mb-panel button.mb-cat img, .mb-modal .mb-cat-ph { width: 42px; height: 42px; }
}
/* Shorter laptop screens (768px tall): trim a little more so it still fits. */
@media (min-width: 761px) and (max-height: 820px) {
  .mb-modal .mb-voucher-sub { display: none; }
  .mb-modal .mb-voucher-main { padding-top: 12px; padding-bottom: 12px; }
  .mb-modal .mb-panel button.mb-package-btn { padding-top: 10px; padding-bottom: 10px; }
  .mb-modal .mb-packages { margin-bottom: 10px; }
}
/* Search in the header: right of the title, next to the close button; its own row on phones. */
.mb-head.has-search { -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.mb-head.has-search .mb-title { -webkit-flex: 1 1 auto; flex: 1 1 auto; }
.mb-head-search { -webkit-order: 3; order: 3; -webkit-flex: 1 0 100%; flex: 1 0 100%; margin-top: 10px; }
.mb-head.has-search .mb-close { -webkit-order: 2; order: 2; }
@media (min-width: 761px) {
  .mb-head.has-search { -webkit-flex-wrap: nowrap; flex-wrap: nowrap; }
  .mb-head.has-search .mb-title { -webkit-flex: none; flex: none; }
  .mb-head-search { -webkit-order: 0; order: 0; -webkit-flex: 0 1 460px; flex: 0 1 460px; margin: 0 14px 0 auto; }
}

/* ---------- Menu: one scrolling list of every category, sticky tabs, scrollspy ---------- */
.mb-menu-wrap > .mb-voucher { margin-bottom: 14px; }
.mb-tabs {
  position: -webkit-sticky; position: sticky; top: -4px; z-index: 3; /* -4px: flush with the top of the list (its padding-top) */
  display: -webkit-flex; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  margin: 0 -20px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--mb-line); white-space: nowrap;
}
.mb-tabs::-webkit-scrollbar { display: none; }
.mb-panel button.mb-tab {
  -webkit-flex: none; flex: none; min-height: 46px; padding: 0 12px; color: var(--mb-muted); font-weight: 600; font-size: 14.5px;
  white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .15s;
}
.mb-panel button.mb-tab:hover { color: var(--mb-ink); }
.mb-panel button.mb-tab.is-on { color: var(--mb-ink); box-shadow: inset 0 -3px 0 var(--mb-accent); }
.mb-panel .mb-tabs[hidden], .mb-panel button.mb-tab[hidden] { display: none; }

.mb-sec { padding-top: 22px; }
.mb-sec-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-bottom: 6px; }
.mb-sec-icon {
  -webkit-flex: none; flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--mb-sand); margin-right: 10px;
}
.mb-sec-icon.mb-cat-ph { width: 34px; height: 34px; font-size: 16px; }
.mb-sec-title { font-family: var(--mb-serif); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0; color: var(--mb-ink); }
.mb-sec-head .mb-section-note { margin-left: auto; padding-left: 12px; }
.mb-sec .mb-promo-note { margin: 6px 0 4px; }
.mb-menu-wrap > .mb-empty { padding-top: 40px; }

/* Waxing: body map beside the treatments (Face / Body groups); small and hideable on phones. */
.mb-wax { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; margin-top: 8px; }
.mb-wax-figure {
  -webkit-flex: none; flex: none; width: 280px; margin-right: 32px;
  position: -webkit-sticky; position: sticky; top: 58px; /* just under the sticky tab bar */
}
.mb-wax-list { -webkit-flex: 1; flex: 1; min-width: 0; }
.mb-wax-group {
  margin: 0 0 2px; padding: 0 0 6px; border-bottom: 1px solid var(--mb-line);
  font-family: var(--mb-serif); font-weight: 400; font-size: 17px; line-height: 1.2; color: var(--mb-bronze);
}
.mb-wax-group ~ .mb-wax-group { margin-top: 22px; }
.mb-item.is-mapped { background: #fbf5ea; }
.mb-panel button.mb-wax-toggle { display: none; }
@media (max-width: 560px) {
  .mb-wax { display: block; }
  .mb-wax-figure { position: static; width: auto; margin: 0 0 18px; text-align: center; }
  .mb-wax-figure .mbbm-stage { width: 107px; }
  .mb-wax-figure .mbbm .mbbm-pill { padding: 2px 6px; font-size: 8.5px; letter-spacing: .05em; }
  .mb-wax-figure .mbbm-cap { margin-top: 6px; }
  .mb-panel button.mb-wax-toggle {
    display: inline-block; margin: 0 0 8px; padding: 10px 4px; min-height: 44px; font-size: 13px; font-weight: 500;
    color: var(--mb-bronze); text-decoration: underline;
  }
  .mb-wax.is-map-hidden .mbbm { display: none; }
}

/* A treatment opened from a "Book" button glows briefly; rows light up with the body map. */
.mb-item.is-flash { -webkit-animation: mbflash 1.8s ease-out; animation: mbflash 1.8s ease-out; }
@-webkit-keyframes mbflash { 0%, 30% { background-color: rgba(196, 149, 106, .28); } 100% { background-color: transparent; } }
@keyframes mbflash { 0%, 30% { background-color: rgba(196, 149, 106, .28); } 100% { background-color: transparent; } }
.mb-item.is-hover { background: var(--mb-paper); }
@media (prefers-reduced-motion: reduce) {
  .mb-item.is-flash { -webkit-animation: none; animation: none; background: rgba(196, 149, 106, .2); }
}
@media (max-width: 360px) {
  .mb-tabs { margin: 0 -14px; padding: 0 6px; }
}
@media (min-width: 761px) {
  .mb-modal .mb-tabs { margin: 0 -28px 0 -32px; padding: 0 20px; top: -6px; }
}

/* Confirmation: "Before your visit" list; on desktop the two columns sit centred in the panel
   (margin:auto in a flex column centres when short and simply scrolls when long). */
.mb-before { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--mb-ink); }
.mb-before li { position: relative; padding-left: 16px; }
.mb-before li + li { margin-top: 4px; }
.mb-before li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--mb-accent); }
@media (max-width: 760px) {
  .mb-next-before { -webkit-order: 4; order: 4; }
}
@media (min-width: 761px) {
  .mb-modal .mb-body.is-done { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
  .mb-modal .mb-body.is-done > .mb-done2 { margin: auto; width: 100%; }
  .mb-modal .mb-receipt { padding: 36px 40px 32px; }
  .mb-modal .mb-rc-when { font-size: 36px; }
}

/* ---------- Details (one step with confirming) ---------- */
.mb-dsum { display: none; }
.mb-field > label { margin-bottom: 5px; }
.mb-field-err { font-size: 13px; color: #8f2a2a; margin-top: 4px; }
.mb-field-err:empty { display: none; }
.mb-panel .mb-note-field textarea { min-height: 46px; resize: none; transition: min-height .15s; }
.mb-panel .mb-note-field textarea.is-open { min-height: 92px; resize: vertical; }
.mb-remember {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 44px;
  font-size: 14px; color: var(--mb-ink); cursor: pointer;
}
.mb-remember input { width: 20px; height: 20px; margin: 0 10px 0 0; accent-color: var(--mb-ink); -webkit-flex: none; flex: none; }
.mb-pay-note { font-size: 13.5px; color: var(--mb-muted); text-align: center; margin: 2px 0 0; }
.mb-prefill { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; font-size: 14.5px; }
.mb-prefill > span { margin-right: 10px; }
.mb-panel .mb-prefill button.mb-notyou { margin-top: 0; }
.mb-good { margin-top: 26px; padding: 16px 18px; border-radius: 12px; background: var(--mb-paper); border: 1px solid var(--mb-line); }
.mb-good-title { font-family: var(--mb-serif); font-size: 18px; line-height: 1.2; margin: 0 0 8px; color: var(--mb-ink); }
.mb-good a { color: var(--mb-bronze); font-weight: 600; }
@media (min-width: 761px) {
  .mb-modal .mb-dsum {
    display: block; margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--mb-sand);
    font-weight: 600; font-size: 15px; color: var(--mb-ink);
  }
  .mb-modal .mb-dsum-sep { color: var(--mb-accent); }
  .mb-modal .mb-details { max-width: 640px; }
}

/* Microneedling + waxing/tinting on the same day: a calm amber note (a warning, not a block). */
.mb-mw { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fdf6ec; border: 1px solid #ead7bd; }
.mb-mw-text { font-size: 14px; line-height: 1.45; color: var(--mb-ink); margin: 0; }
.mb-panel button.mb-mw-go { margin-top: 10px; }
.mb-mw-slot .mb-mw { margin: 0 0 16px; }
.mb-mw-slot:empty { display: none; }
