/* GDS mobile navigation — isolated opaque drawer; all public pages.
   The menu moves under <body> so the fixed/blurred header cannot
   become its containing block or clip its stacking context. */
@media (max-width:1023px) {
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] {
    --gds-mobile-panel-bg: #fff;
    --gds-mobile-backdrop: rgba(1,11,14,.72);
    --gds-mobile-link-color: #080c0f;
    --gds-mobile-hover-color: #ce5e00;
    --gds-mobile-active-color: #ee6f00;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    transform: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .22s ease, visibility .22s ease !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"].is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] > .gds-mobile-menu-backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    background: rgba(1,11,14,.72) !important;
    background-color: rgba(1,11,14,.72) !important;
    opacity: 1 !important;
    cursor: pointer;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] > .gds-mobile-menu-sheet {
    position: absolute !important;
    inset: 0 0 0 auto !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: min(90vw, 384px) !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #080c0f !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: -16px 0 45px rgba(1,11,14,.2) !important;
    transform: translate3d(105%,0,0) !important;
    transition: transform .25s cubic-bezier(.22,1,.36,1) !important;
    overflow: hidden !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"].is-open > .gds-mobile-menu-sheet {
    transform: translate3d(0,0,0) !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-menu-body {
    display: block;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: 64px !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #080c0f !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-menu-actions,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-parent,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-group,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-submenu {
    background: #fff !important;
    background-color: #fff !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-row,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-parent-link,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-submenu a {
    color: #080c0f !important;
    opacity: 1 !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-row.is-active,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-parent-link.is-active {
    color: #ee6f00 !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-drawer-close {
    position: absolute !important;
    top: 12px !important;
    left: 16px !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 1px solid #e5ebf0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #080c0f !important;
    font: 400 27px/1 Arial,sans-serif !important;
    cursor: pointer;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-drawer-close:hover,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-drawer-close:focus-visible {
    color: #ee6f00 !important;
    border-color: #ee6f00 !important;
  }
  body.admin-bar > .gds-mobile-menu[data-gds-drawer-detached="1"] {
    top: 32px !important;
    height: calc(100dvh - 32px) !important;
  }
}
@media (max-width:782px) {
  body.admin-bar > .gds-mobile-menu[data-gds-drawer-detached="1"] {
    top: 46px !important;
    height: calc(100dvh - 46px) !important;
  }
}
@media (min-width:1024px) {
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] {
    display: none !important;
    pointer-events: none !important;
  }
}

/* Defensive fallback if the JS cannot detach the legacy drawer. */
@media (max-width:1023px) {
  header.gds-site-header .gds-mobile-menu-sheet {
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    opacity: 1 !important;
    color: #080c0f !important;
  }
  header.gds-site-header .gds-mobile-menu.is-open .gds-mobile-menu-backdrop {
    background: rgba(1,11,14,.72) !important;
    opacity: 1 !important;
  }
}

/* Icon-only WhatsApp button inside the mobile drawer footer. */
@media (max-width:1023px) {
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-menu-actions .gds-mobile-whatsapp,
  header.gds-site-header .gds-mobile-menu-actions .gds-mobile-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    border: 1px solid #20b957 !important;
    border-radius: 10px !important;
    background: #25d366 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: background-color .2s ease,border-color .2s ease !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-menu-actions .gds-mobile-whatsapp:hover,
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-menu-actions .gds-mobile-whatsapp:focus-visible,
  header.gds-site-header .gds-mobile-menu-actions .gds-mobile-whatsapp:hover,
  header.gds-site-header .gds-mobile-menu-actions .gds-mobile-whatsapp:focus-visible {
    background: #20b957 !important;
    border-color: #168e42 !important;
    color: #fff !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-whatsapp > .gds-site-icon,
  header.gds-site-header .gds-mobile-whatsapp > .gds-site-icon {
    display: inline-flex !important;
    flex: 0 0 23px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 23px !important;
    height: 23px !important;
    color: #fff !important;
    margin: 0 !important;
  }
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-whatsapp .gds-site-icon svg,
  header.gds-site-header .gds-mobile-whatsapp .gds-site-icon svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    fill: #fff !important;
    color: #fff !important;
  }
  /* Hide the number visually, retaining its accessible text for screen readers. */
  body > .gds-mobile-menu[data-gds-drawer-detached="1"] .gds-mobile-whatsapp > span:not(.gds-site-icon),
  header.gds-site-header .gds-mobile-whatsapp > span:not(.gds-site-icon) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}
