/* The consultation booker: a dialog over the page, a sheet on a phone.
   Namespaced .nbsx-booker__*; nothing shared is restyled. */

/* The scheduler is 756px tall by HubSpot's own measure; on a short laptop that
   is taller than the room left after the padding. Centring a too-tall flex
   child clips it at BOTH ends, so the panel centres by margin instead and the
   overlay scrolls when it has to. */
/* Above the site header (500) and the mobile apply bar (60); below the
   cookie notice (9999999), which must always stay reachable. */
.nbsx-booker{position:fixed;inset:0;z-index:9000;display:flex;justify-content:center;align-items:flex-start;
  overflow-y:auto;overscroll-behavior:contain;
  padding:clamp(12px,3vw,40px);font-family:"Epilogue",system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
.nbsx-booker[hidden]{display:none}
.nbsx-booker__scrim{position:absolute;inset:0;background:rgba(10,7,30,.62);opacity:0;transition:opacity .25s cubic-bezier(.65,0,.35,1)}
.nbsx-booker.is-open .nbsx-booker__scrim{opacity:1}
.nbsx-booker__panel{position:relative;width:min(760px,100%);display:flex;flex-direction:column;
  background:#fff;border-radius:2px;box-shadow:0 30px 80px -30px rgba(10,7,30,.55);
  opacity:0;transform:translateY(12px);transition:opacity .25s cubic-bezier(.65,0,.35,1),transform .25s cubic-bezier(.65,0,.35,1)}
.nbsx-booker.is-open .nbsx-booker__panel{opacity:1;transform:none}
.nbsx-booker__head{position:sticky;top:0;z-index:1;background:#fff;display:flex;align-items:center;gap:16px;padding:18px 20px;border-bottom:1px solid rgba(34,28,74,.14)}
.nbsx-booker__h{margin:0;font-size:18px;font-weight:500;letter-spacing:-.01em;color:#221c4a;flex:1 1 auto}
.nbsx-booker__out{font-size:14px;color:#4800FF;text-decoration:none;border-bottom:1px solid transparent}
.nbsx-booker__out:hover{border-bottom-color:currentColor}
.nbsx-booker__close{flex:none;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(34,28,74,.18);border-radius:999px;background:#fff;color:#221c4a;cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease}
.nbsx-booker__close:hover{border-color:rgba(34,28,74,.45);background:rgba(34,28,74,.04)}
.nbsx-booker__close svg{width:17px;height:17px}
.nbsx-booker__frame{flex:1 1 auto;min-height:615px}
.nbsx-booker__frame iframe{display:block;width:100%;border:0}
.nbsx-booker :focus-visible{outline:2px solid #4800FF;outline-offset:2px}

@media (max-width:700px){
  .nbsx-booker{padding:0;align-items:stretch}
  .nbsx-booker__panel{width:100%;max-height:none;border-radius:0}
  .nbsx-booker__head{padding:14px 16px}
  .nbsx-booker__out{display:none}
}
@media (prefers-reduced-motion:reduce){
  .nbsx-booker__scrim,.nbsx-booker__panel{transition:none}
}
body.nbsx-booker-open{overflow:hidden}

/* The third-party bubbles are fixed with enormous z-indexes of their own and
   would sit on top of the scheduler; they step aside while it is open. */
body.nbsx-booker-open #wa .wa__btn_popup,
body.nbsx-booker-open #wa .wa__popup_chat_box,
body.nbsx-booker-open .cky-btn-revisit-wrapper{display:none !important}
