/* Use the existing Helix offcanvas when the additional menu entry needs more space. */
#sp-header[data-mg-navigator-menu] [data-mg-regulatorik-dropdown]:has(> a[aria-expanded="true"]) > .sp-dropdown {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

@media (min-width: 768px) {
  /* The tablet preset already uses important for its full-width navigation. */
  #sp-header#sp-header#sp-header[data-mg-navigator-compact] .mg-p51-header-row {
    flex-wrap: nowrap !important;
  }
  #sp-header#sp-header#sp-header[data-mg-navigator-compact] #sp-logo {
    flex: 0 1 auto !important;
    width: auto !important;
  }
  #sp-header#sp-header#sp-header[data-mg-navigator-compact] #sp-menu {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  #sp-header#sp-header#sp-header[data-mg-navigator-compact] .sp-megamenu-parent {
    display: none !important;
  }
  #sp-header#sp-header#sp-header[data-mg-navigator-compact] .sp-megamenu-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  #sp-header#sp-header#sp-header[data-mg-navigator-compact] #offcanvas-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 24px !important;
  }
  #sp-header#sp-header#sp-header[data-mg-navigator-compact] .mg-language-mobile {
    display: flex !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
  }
}
