/* Booking modal (templates/partials/booking-modal.php). It sits outside .om, and the legacy site-wide custom CSS
   forces fonts/colours on p/div/span/li/a with !important — so everything here is #imft-booking + !important. */
html.bk-open{overflow:hidden}
#imft-booking{--bk-blue:#066abe;--bk-navy:#18225a;--bk-ink:#1f2933;--bk-mute:#5b6675;--bk-line:#d7dce6;--bk-soft:#f4f6fb;
  position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(5,15,28,.62);backdrop-filter:blur(4px)}
#imft-booking[hidden],#imft-booking [hidden]{display:none!important} /* site/Divi CSS sets display on section/div, which beats the browser's [hidden] */
#imft-booking,#imft-booking *{box-sizing:border-box;font-family:'Lato',-apple-system,sans-serif!important}
#imft-booking :is(p,div,span,li,label,legend,small,b,section,fieldset){color:inherit!important}
#imft-booking .bk-box{position:relative;width:100%;max-width:760px;max-height:calc(100vh - 48px);overflow:auto;background:#fff;color:var(--bk-ink)!important;border-radius:18px;padding:30px 32px 32px;box-shadow:0 30px 80px rgba(0,0,0,.35)}
#imft-booking :is(.bk-title,h3){text-transform:none!important;font-family:'Raleway',sans-serif!important;font-weight:800;color:var(--bk-ink)!important;margin:0 0 16px;font-size:1.6rem;letter-spacing:-.01em;line-height:1.2}
#imft-booking h3{font-size:1.4rem}
#imft-booking .bk-close{position:absolute;top:14px;right:16px;width:40px;height:40px;border:0;border-radius:50%;background:var(--bk-soft);font-size:1.5rem;line-height:1;cursor:pointer;color:var(--bk-ink)!important}
#imft-booking .bk-tabs{display:flex;gap:20px;margin-bottom:20px;border-bottom:1px solid var(--bk-line)}
#imft-booking .bk-tab{border:0;background:none;padding:10px 2px 12px;font-family:'Raleway',sans-serif!important;font-weight:700;font-size:1rem;color:var(--bk-mute)!important;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-1px}
#imft-booking .bk-tab small{font-weight:600;font-size:.78rem;margin-left:4px}
#imft-booking .bk-tab[aria-selected="true"]{color:var(--bk-ink)!important;border-bottom-color:var(--bk-blue)}
#imft-booking .bk-days{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin-bottom:6px}
#imft-booking .bk-day{flex:0 0 auto;min-width:68px;padding:10px 8px;border:1px solid var(--bk-line);border-radius:12px;background:#fff;cursor:pointer;text-align:center;color:var(--bk-ink)!important}
#imft-booking .bk-day span{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--bk-mute)!important}
#imft-booking .bk-day b{display:block;font-family:'Raleway',sans-serif!important;font-weight:700;margin-top:2px;font-variant-numeric:lining-nums}
#imft-booking .bk-day[aria-pressed="true"]{background:var(--bk-navy);border-color:var(--bk-navy);color:#fff!important}
#imft-booking .bk-day[aria-pressed="true"] span{color:#b9dcff!important}
#imft-booking .bk-group{margin:14px 0 8px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--bk-mute)!important}
#imft-booking .bk-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
#imft-booking .bk-time{padding:10px 6px;border:1px solid var(--bk-blue);border-radius:10px;background:#fff;color:var(--bk-blue)!important;font-family:'Raleway',sans-serif!important;font-weight:700;font-variant-numeric:lining-nums;cursor:pointer}
#imft-booking .bk-time:is(:hover,:focus-visible){background:var(--bk-blue);color:#fff!important}
#imft-booking .bk-tz{margin:16px 0 0;font-size:.85rem;color:var(--bk-mute)!important}
#imft-booking .bk-notice{background:#fff6e0;border:1px solid #f5c95c;border-radius:10px;padding:10px 14px;margin:0 0 12px}
#imft-booking .bk-chosen{background:var(--bk-soft);border-radius:10px;padding:12px 14px;margin:0 0 18px;font-weight:700}
#imft-booking .bk-link{border:0;background:none;padding:0;color:var(--bk-blue)!important;font-weight:700;cursor:pointer;text-decoration:underline}
#imft-booking .bk-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
#imft-booking label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;font-weight:700}
#imft-booking label small{font-weight:400;color:var(--bk-mute)!important}
#imft-booking :is(input,select,textarea){width:100%;padding:11px 12px;border:1px solid var(--bk-line);border-radius:10px;font-size:1rem;font-weight:400;color:var(--bk-ink)!important;background:#fff}
#imft-booking :is(input,select,textarea):focus{outline:2px solid var(--bk-blue);outline-offset:1px;border-color:var(--bk-blue)}
#imft-booking .bk-invalid{border-color:#d93025!important;background:#fff5f4!important}
#imft-booking .bk-full{margin-top:16px}
#imft-booking .bk-interests{border:0;padding:0;margin:16px 0 0}
#imft-booking .bk-interests legend{font-size:.9rem;font-weight:700;margin-bottom:8px;padding:0}
#imft-booking .bk-chips{display:flex;flex-wrap:wrap;gap:8px}
#imft-booking .bk-chip{position:relative;flex-direction:row;align-items:center;gap:0;font-weight:600;font-size:.85rem}
#imft-booking .bk-chip input{position:absolute;opacity:0;width:1px;height:1px;padding:0}
#imft-booking .bk-chip span{padding:7px 12px;border-radius:999px;background:#e8f2ff;color:var(--bk-navy)!important;cursor:pointer;border:1px solid transparent}
#imft-booking .bk-chip input:checked+span{background:var(--bk-blue);color:#fff!important}
#imft-booking .bk-chip input:focus-visible+span{outline:2px solid var(--bk-blue);outline-offset:2px}
#imft-booking .bk-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
#imft-booking .bk-error{color:#b3261e!important;font-weight:700;margin:14px 0 0}
#imft-booking .bk-btn{margin-top:20px;display:inline-flex;align-items:center;justify-content:center;padding:14px 26px;border:0;border-radius:10px;background:var(--bk-blue);color:#fff!important;font-family:'Raleway',sans-serif!important;font-weight:700;font-size:1rem;cursor:pointer}
#imft-booking .bk-btn[disabled]{opacity:.6;cursor:wait}
#imft-booking .bk-done{text-align:center;padding:20px 0 4px;outline:none}
#imft-booking .bk-done-when{font-family:'Raleway',sans-serif!important;font-weight:700;font-size:1.15rem}
#imft-booking .bk-support-line{font-family:'Raleway',sans-serif!important;font-size:1.2rem}
@media (max-width:640px){
  #imft-booking{padding:0;align-items:stretch}
  #imft-booking .bk-box{max-width:none;max-height:none;height:100%;border-radius:0;padding:22px 18px 28px}
  #imft-booking .bk-grid{grid-template-columns:1fr}
}
/* Phase 2: Send a message + Get support tabs */
#imft-booking .bk-tabs{overflow-x:auto}
#imft-booking .bk-tab{white-space:nowrap}
#imft-booking .bk-intro{margin:0 0 16px;color:var(--bk-mute)!important}
#imft-booking .bk-urgentline{margin:0 0 16px;background:var(--bk-soft);border-radius:10px;padding:12px 14px}
#imft-booking .bk-urgency{border:0;padding:0;margin:16px 0 0;display:flex;gap:18px;flex-wrap:wrap}
#imft-booking .bk-urgency legend{font-size:.9rem;font-weight:700;margin-bottom:8px;padding:0;width:100%}
#imft-booking :is(.bk-radio,.bk-check){flex-direction:row;align-items:center;gap:8px;font-weight:600}
#imft-booking :is(input[type="radio"],input[type="checkbox"]){width:auto;padding:0;margin:0}
#imft-booking .bk-check{margin-top:18px}
#imft-booking .bk-call{margin-top:14px;padding:16px;border:1px solid var(--bk-line);border-radius:12px}
#imft-booking .bk-time[aria-pressed="true"]{background:var(--bk-blue);color:#fff!important}
#imft-booking .bk-sent{padding:12px 0 4px;outline:none}
#imft-booking .bk-sent p{margin:8px 0 0}
#imft-booking .bk-urgent{background:#fff6e0;border:1px solid #f5c95c;border-radius:10px;padding:10px 14px;font-weight:700}
/* Talk to us: details → two choices → times / thanks */
#imft-booking .bk-choose{outline:none}
#imft-booking .bk-choose h3{font-family:'Raleway',sans-serif!important;font-size:1.25rem;margin:4px 0 18px;color:var(--bk-ink)!important;text-transform:none!important}
#imft-booking .bk-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#imft-booking .bk-choice{display:flex;flex-direction:column;gap:6px;text-align:left;padding:20px 20px 18px;border:1px solid var(--bk-line);border-radius:12px;background:#fff;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
#imft-booking .bk-choice b{font-family:'Raleway',sans-serif!important;font-size:1.05rem;color:var(--bk-navy)!important}
#imft-booking .bk-choice span{color:var(--bk-mute)!important;font-size:.92rem}
#imft-booking .bk-choice:hover,#imft-booking .bk-choice:focus-visible{border-color:var(--bk-blue);box-shadow:0 10px 24px rgba(8,142,255,.14);transform:translateY(-2px);outline:none}
#imft-booking .bk-choice[disabled]{opacity:.6;cursor:wait}
#imft-booking .bk-confirm{margin-top:18px}
#imft-booking .bk-confirm .bk-btn{margin-top:4px}
#imft-booking .bk-confirm .bk-btn[disabled]{cursor:default;opacity:.45}
#imft-booking .bk-btn{gap:.45em}
#imft-booking .bk-edit,#imft-booking .bk-back{margin-top:16px}
@media (max-width:640px){
  #imft-booking .bk-choices{grid-template-columns:1fr}
}
/* ---------- No-scroll layout (2026-10-07): every step fits a 1280×660 window ----------
   Wider box, title + tabs on one row, fields three across, times one row per part of day. */
#imft-booking{padding:16px}
#imft-booking .bk-box{max-width:1040px;max-height:calc(100vh - 32px);padding:22px 28px 24px}
#imft-booking .bk-head{display:flex;align-items:flex-end;gap:28px;border-bottom:1px solid var(--bk-line);margin:0 0 16px;padding-right:52px}
#imft-booking .bk-head .bk-title{margin:0 0 10px;font-size:1.45rem;white-space:nowrap}
#imft-booking .bk-head .bk-tabs{border-bottom:0;margin:0}
#imft-booking .bk-close{top:16px}
#imft-booking .bk-intro{margin:0 0 12px}
#imft-booking label{gap:4px;font-size:.86rem}
#imft-booking :is(input,select,textarea){padding:9px 12px}
#imft-booking .bk-grid{gap:10px 14px}
#imft-booking .bk-grid3{grid-template-columns:repeat(3,1fr)}
#imft-booking .bk-interests{margin:12px 0 0}
#imft-booking .bk-interests legend{margin-bottom:6px;font-size:.86rem}
#imft-booking .bk-chips{gap:6px}
#imft-booking .bk-chip span{padding:6px 11px}
#imft-booking .bk-full{margin-top:12px}
#imft-booking .bk-actions{display:flex;align-items:center;gap:18px;margin-top:16px}
#imft-booking .bk-actions .bk-btn{margin:0;flex:0 0 auto}
#imft-booking .bk-actions .bk-error{margin:0}
/* Times: all 14 days on one row; a "Morning"/"Afternoon" label column, times beside it. */
#imft-booking .bk-days{overflow:visible;padding:2px 0 0;margin:0 0 12px;gap:6px}
#imft-booking .bk-day{flex:1 1 0;min-width:0;padding:7px 2px}
#imft-booking .bk-day span{font-size:.66rem}
#imft-booking .bk-day b{font-size:.86rem;white-space:nowrap}
#imft-booking .bk-slots{display:grid;grid-template-columns:96px 1fr;gap:8px 12px;align-items:start}
#imft-booking .bk-group{margin:0;padding-top:9px}
#imft-booking .bk-times{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px}
#imft-booking .bk-time{padding:8px 4px;font-size:.92rem}
#imft-booking .bk-tz{margin:10px 0 0;font-size:.8rem}
#imft-booking .bk-confirm{display:flex;align-items:center;gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid var(--bk-line)}
#imft-booking .bk-confirm .bk-chosen{flex:1;margin:0;padding:10px 14px}
#imft-booking .bk-confirm .bk-back{margin:0}
#imft-booking .bk-confirm .bk-btn{margin:0}
#imft-booking [data-step="pick"] > .bk-error{margin-top:10px}
#imft-booking [data-step="pick"]{outline:none}
/* Support: details left, the issue right; the call picker spans below. */
#imft-booking .bk-urgentline{margin:0 0 12px;padding:9px 14px}
#imft-booking .bk-cols{display:grid;grid-template-columns:1.1fr 1fr;gap:16px 22px;align-items:start}
#imft-booking .bk-issue textarea{min-height:92px}
#imft-booking .bk-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin-top:10px}
#imft-booking .bk-row .bk-urgency{margin:0;gap:4px 16px}
#imft-booking .bk-row .bk-urgency legend{margin-bottom:4px;font-size:.86rem}
#imft-booking .bk-row .bk-check{margin:0}
#imft-booking .bk-call{margin:0;padding:0;border:0;outline:none}
#imft-booking .bk-call-head{display:flex;align-items:center;gap:16px;margin:0 0 12px}
@media (max-width:860px){
  #imft-booking .bk-grid3{grid-template-columns:1fr 1fr}
  #imft-booking .bk-cols{grid-template-columns:1fr}
}
@media (max-width:640px){
  #imft-booking{padding:0}
  #imft-booking .bk-box{max-height:none;padding:22px 18px 28px}
  #imft-booking .bk-head{flex-direction:column;align-items:flex-start;gap:4px}
  #imft-booking .bk-grid3{grid-template-columns:1fr}
  #imft-booking .bk-days{overflow-x:auto;padding-bottom:8px}
  #imft-booking .bk-day{flex:0 0 auto;min-width:60px}
  #imft-booking .bk-slots{display:block}
  #imft-booking .bk-group{padding-top:0;margin:12px 0 6px}
  #imft-booking .bk-confirm{flex-wrap:wrap}
  #imft-booking .bk-actions{flex-direction:column;align-items:stretch}
}

/* Focus guards (booking.js): zero-size, never visible. */
#imft-booking .bk-guard{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);outline:none!important}
/* The title, tabs and close button stay put; only the tab's content scrolls when it is taller than the window
   (user, 2026-11-12: "the header scrolls"). The side padding keeps focus rings inside the scrolling panel. */
#imft-booking .bk-box{display:flex;flex-direction:column;overflow:hidden;overflow:clip} /* clip: not even focus or script can scroll the box (Firefox would) */
#imft-booking .bk-head{flex:0 0 auto}
#imft-booking .bk-panel{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;margin:0 -6px;padding:0 6px 4px}
#imft-booking .bk-fallback a,#imft-booking .bk-error a{color:var(--bk-blue,#066abe)!important;text-decoration:underline}
#imft-booking .bk-box{max-height:calc(100dvh - 32px)} /* the visible window on phones (address bar shown), so the box itself never needs to scroll */
@media (max-width:640px){#imft-booking .bk-box{max-height:100dvh;height:100dvh}}
/* The tabs never scroll (user, 2026-11-12: a scroll bar showed in the title row). overflow-x:auto made the strip a
   scroll box, and the tabs' -1px bottom margin overflowed it by a pixel. On a phone each tab's note goes under its
   name, so both tabs fit the width instead of scrolling sideways. */
#imft-booking .bk-tabs{overflow:visible}
@media (max-width:640px){
  #imft-booking .bk-tab{white-space:normal;text-align:left;line-height:1.25}
  #imft-booking .bk-tab small{display:block;margin:2px 0 0}
}
/* The title + tabs never move (user, 2026-11-16). A vertically centred box re-centred whenever the tab or step
   changed height, so the tab row jumped. Pin the box's top edge instead; only its bottom edge moves. */
@media (min-width:641px){
  #imft-booking{align-items:flex-start}
  #imft-booking .bk-box{margin-top:clamp(0px,calc(8vh - 16px),80px);max-height:calc(100dvh - 32px - clamp(0px,calc(8vh - 16px),80px))}
}

/* NO scroll bars anywhere in the modal, in any browser (user, 2026-11-16, third report). Headless test browsers hide
   scroll bars, so earlier checks passed while real browsers with a mouse / "Show scroll bars: Always" drew them on the
   panel under the tabs (short windows, phones) and the day strip. Content still scrolls (wheel, trackpad, touch, keys,
   focus) where a screen is too small; nothing is ever drawn. scrollbar-width: Firefox, Chrome 121+, Safari 18.2+;
   ::-webkit-scrollbar: older Safari/Chrome. Guarded by tests/omnicare/booking-no-scrollbars.spec.js (real bars ON). */
#imft-booking,#imft-booking *{scrollbar-width:none;-ms-overflow-style:none}
#imft-booking::-webkit-scrollbar,#imft-booking *::-webkit-scrollbar{display:none;width:0;height:0;background:transparent}
