/* Burger back to top-right (original lane). Clicks stay above the header.
   Cabinet keeps its header pill. Scroll-up sits above the mobile dock. */

@media (max-width: 991.98px) {
  html body > .mobile-nav-toggle,
  html .mobile-nav-toggle {
    position: fixed !important;
    top: 18px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 10320 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  html #header .snet-brand > .mobile-nav-toggle {
    display: none !important;
  }

  html #header .snet-header-actions {
    margin-right: 52px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  html #header .get-started-btn {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html .mobile-nav {
    z-index: 10280 !important;
    top: calc(var(--snet-header-h, 88px) + 8px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: auto !important;
  }

  html body.mobile-nav-active .mobile-nav {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html .mobile-nav-overly {
    z-index: 10270 !important;
  }

  html body.mobile-nav-active .mobile-nav-overly {
    display: block !important;
  }

  html .mobile-nav .snet-mega > ul.snet-mega__panel {
    max-height: min(58vh, 420px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body.snet-dock-visible a.back-to-top,
  html body.snet-dock-visible > a.back-to-top,
  html a.back-to-top {
    right: 12px !important;
    z-index: 10030 !important;
  }

  html body.snet-dock-visible a.back-to-top,
  html body.snet-dock-visible > a.back-to-top {
    bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 399.98px) {
  html body > .mobile-nav-toggle,
  html .mobile-nav-toggle {
    top: 14px !important;
    right: 8px !important;
  }

  html #header .snet-header-actions {
    margin-right: 48px !important;
  }
}

@media (min-width: 992px) {
  html body > .mobile-nav-toggle,
  html .mobile-nav-toggle {
    display: none !important;
  }
}
