/* PROFI-RU menu repair. The retained header measures --profi-header-h. */
body.profi-visual-restored #siteMenu.site-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1150 !important; /* Header: 1200; mobile navigation: 1100. */
  pointer-events: none !important;
  transition: none !important;
}

body.profi-visual-restored #siteMenu.site-menu.open {
  pointer-events: auto !important;
}

body.profi-visual-restored #siteMenu .site-menu-panel {
  box-sizing: border-box !important;
  position: absolute !important;
  top: calc(var(--profi-header-h, 124px) + 8px) !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  width: min(430px, calc(100% - 28px)) !important;
  height: auto !important;
  max-height: calc(100vh - var(--profi-header-h, 124px) - 16px - env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(100dvh - var(--profi-header-h, 124px) - 16px - env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 680px) {
  body.profi-visual-restored #siteMenu .site-menu-panel {
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    padding: 14px !important;
  }
}
