/* drawer-fix.css — May 20 2026 (v3)
 * Neutralizes #flowModal fixed-position backdrop when portaled into drawer.
 * st-booking-drawer.js adds .in-drawer on portalIn(), removes on portalOut().
 *
 * v3 (May 31 2026):
 *  - Removed overflow:visible on #st-drawer-content — it collapsed the flex
 *    scroll area and clipped Step 2 contact form on mobile.
 *  - Removed #st-drawer overflow-y override — .st-drawer__content is the scroll
 *    container per style.css.
 *  - Scoped traveller-select overflow fix to Step 1 #book only.
 *  - Raised in-drawer selector specificity so phase-g cannot re-apply fixed overlay.
 */

#flowModal.in-drawer,
#flowModal.in-drawer.open {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: auto !important;
  overflow: visible !important;
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

#flowModal.in-drawer .modal,
#flowModal.in-drawer .modal-box,
#flowModal.in-drawer .modal-card,
#flowModal.in-drawer .flow-modal-card,
#flowModal.in-drawer > div {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  transform: none !important;
  opacity: 1 !important;
}

#flowModal.in-drawer.open {
  display: block !important;
  pointer-events: auto !important;
}

#flowModal.in-drawer [id^="flowStep"][hidden] {
  display: none !important;
}

/* Step 1 only: let native Travellers <select> escape scroll clip */
html.is-step-details #book,
html.is-step-details #book .pf-book-rail,
html.is-step-details #book .pf-book-rail__fields {
  overflow: visible !important;
}
