/* Freeze only the document behind actual dialogs. The root keeps the same
   scrollbar lane and the fixed body uses the unchanged layout viewport. */
html.faroma-scroll-locked {
  overflow-y: scroll !important;
  scroll-behavior: auto !important;
  overscroll-behavior: none;
}
html.faroma-scroll-locked body {
  position: fixed !important;
  top: var(--faroma-locked-y, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}
/* Panels retain independent touch scrolling, including nested size charts. */
#drawer,
#filterDrawer .filters,
#filterDrawer,
#sizeGuideOverlay .size-guide-card,
#productModalOverlay .product-modal,
#checkoutModalOverlay .checkout-modal,
#thankyouOverlay .thankyou-card,
#faromaMobileMenu .faroma-mobile-panel,
#searchSuggestions,
.header-information[open] > nav {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
