/* aot-mobile-nav-fix v20261125b
   Pure CSS: hide sticky CTA/FAB and make the mobile menu scrollable
   whenever the menu is open. Does not depend on aot-nav.js. */
@media (max-width: 1023px) {
  html:has(#mobile-menu[data-open="1"]) div.fixed.bottom-0.inset-x-0.z-50.bg-aot-orange,
  html:has(#mobile-menu[data-open="1"]) a.fixed[aria-label="WhatsApp AOT"],
  html:has(#mobile-menu[data-open="1"]) a.fixed.bottom-20,
  html:has(button[aria-label="Menu"][aria-expanded="true"]) div.fixed.bottom-0.inset-x-0.z-50.bg-aot-orange,
  html:has(button[aria-label="Menu"][aria-expanded="true"]) a.fixed[aria-label="WhatsApp AOT"],
  html:has(button[aria-label="Menu"][aria-expanded="true"]) a.fixed.bottom-20,
  html:has([x-show="menu"]:not([x-cloak]):not([style*="display: none"])) div.fixed.bottom-0.inset-x-0.z-50.bg-aot-orange,
  html:has([x-show="menu"]:not([x-cloak]):not([style*="display: none"])) a.fixed[aria-label="WhatsApp AOT"],
  html:has([x-show="menu"]:not([x-cloak]):not([style*="display: none"])) a.fixed.bottom-20 {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html:has(#mobile-menu[data-open="1"]),
  html:has(#mobile-menu[data-open="1"]) body,
  html:has(button[aria-label="Menu"][aria-expanded="true"]),
  html:has(button[aria-label="Menu"][aria-expanded="true"]) body,
  html:has([x-show="menu"]:not([x-cloak]):not([style*="display: none"])),
  html:has([x-show="menu"]:not([x-cloak]):not([style*="display: none"])) body {
    overflow: hidden !important;
  }

  header:has(#mobile-menu[data-open="1"]),
  header:has(button[aria-label="Menu"][aria-expanded="true"]),
  header:has([x-show="menu"]:not([x-cloak]):not([style*="display: none"])) {
    z-index: 80 !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #mobile-menu[data-open="1"],
  header [x-show="menu"]:not([x-cloak]):not([style*="display: none"]) {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--aot-header-h, 72px) !important;
    width: 100% !important;
    max-height: calc(100vh - 72px) !important;
    max-height: calc(100dvh - var(--aot-header-h, 72px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    z-index: 90 !important;
    background: #fff !important;
    padding-bottom: 28px !important;
    box-sizing: border-box !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  #mobile-menu[data-open="1"] a,
  header [x-show="menu"]:not([x-cloak]):not([style*="display: none"]) a {
    display: block;
    padding: 10px 2px;
    line-height: 1.4;
  }
}
