/**
 * Proper scroll locking for mobile menu
 * Only locks when menu is actually open
 */

/* Default: scrolling enabled */
html, body {
  overflow: visible !important;
  overflow-y: auto !important;
}

/* Only lock scroll when menu is open */
html.menu-open,
html.menu-open body {
  overflow: hidden;
  height: 100%;
}

/* Ensure CMS safe mode always allows scrolling */
html.cms-safe,
html.cms-safe body {
  overflow: visible !important;
  overflow-y: auto !important;
  height: auto !important;
}

/* Override menu lock in CMS safe mode */
html.cms-safe.menu-open,
html.cms-safe.menu-open body {
  overflow: visible !important;
  overflow-y: auto !important;
}