/* Arena Teney — Shop S1.4 r02f1 iOS modal open stability
 * Keep the Shop page at its physical scroll position while the fixed detail modal opens.
 * Only vertical legacy/modal root locks are released; X-lock, dock and modal geometry stay owned elsewhere.
 */
@media (max-width: 960px) {
  /* iOS Safari can jump the document when html/body switch to overflow:hidden.
   * Restore the normal vertical scroll container while preserving any overflow-x owner.
   */
  html.shop-s03-sheet-open,
  html.shop-s03f3-modal-open {
    overflow-y: auto !important;
  }

  html.shop-s03-sheet-open body,
  html.shop-s03f3-modal-open body {
    overflow-y: visible !important;
  }

  /* The fixed modal itself owns touch containment, so the page does not need
   * to be frozen to stop backdrop gestures from scrolling the catalogue.
   */
  .s03f3-modal-root {
    overscroll-behavior: none;
  }

  .s03f3-modal-backdrop {
    touch-action: none;
    overscroll-behavior: none;
  }

  .s03f3-modal-sheet {
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
}
