/* Interior header aligned with the custom SenaPlatform homepage. */
/* Open the language choices on click/focus as well as hover. */
#navigation .pll-parent-menu-item:focus-within > ul {
  opacity: 1;
  visibility: visible;
}

html {
  overflow-x: hidden;
}

body:not(.sena-home-page) {
  overflow-x: hidden;
}

body:not(.sena-home-page) #header-container {
  background: #fff;
  border-bottom: 1px solid #eaf0f4;
}

body:not(.sena-home-page) #header {
  min-height: 94px;
  padding: 0;
  background: #fff;
  box-shadow: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

@media (min-width: 1025px) {
  body:not(.sena-home-page) #header > .container {
    display: flex;
    align-items: center;
    width: min(1220px, calc(100% - 96px));
    max-width: 1220px;
    height: 94px;
    margin: 0 auto;
    padding: 0;
  }

  body:not(.sena-home-page) #header .left-side {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    height: 94px;
  }

  body:not(.sena-home-page) #logo {
    display: flex;
    align-items: center;
    flex: 0 0 390px;
    width: 390px;
    min-width: 390px;
    max-width: 390px;
    height: 94px;
    margin: 0 28px 0 0;
  }

  body:not(.sena-home-page) #logo img,
  body:not(.sena-home-page) #header.cloned #logo img {
    display: block;
    width: 390px !important;
    max-width: 390px !important;
    height: auto !important;
    max-height: 93px !important;
    object-fit: contain;
  }

  /* The parent dashboard absolutely positions its logo. Keep it in the flex
     row so navigation (including Polylang) starts after the logo. */
  body:not(.sena-home-page) .dashboard #header #logo {
    position: relative;
    top: auto;
    left: auto;
    padding: 0;
    background: transparent;
    min-width: 390px;
    max-width: 390px;
  }

  body:not(.sena-home-page) .dashboard #logo a {
    margin-left: 0;
    margin-right: 0;
    height: auto;
  }

  body:not(.sena-home-page) .dashboard #logo a img {
    top: auto;
    transform: none;
  }

  body:not(.sena-home-page) #navigation.style-1 {
    display: block;
    float: none;
    width: auto;
    margin: 0 !important;
    padding: 0;
  }

  body:not(.sena-home-page) #navigation.style-1::before {
    display: none;
  }

  body:not(.sena-home-page) #navigation.style-1 > ul {
    display: flex;
    align-items: center;
    min-height: 94px;
    margin: 0;
  }

  body:not(.sena-home-page) #navigation.style-1 > ul > li {
    margin: 0 2px;
  }

  body:not(.sena-home-page) #navigation.style-1 > ul > li > a {
    padding: 9px 11px;
    border-radius: 7px;
    color: #12345b;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
  }

  body:not(.sena-home-page) #navigation.style-1 > ul > li > a:hover {
    color: #087f89;
    background: #eef8f9;
  }

  body:not(.sena-home-page) #navigation .sena-interior-cta > a {
    margin-left: 7px;
    padding: 13px 17px;
    color: #fff !important;
    background: #087f89 !important;
  }

  body:not(.sena-home-page) #navigation .sena-interior-cta > a:hover {
    background: #0a6e77 !important;
  }

  body:not(.sena-home-page) #header .right-side {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    float: none;
    width: auto;
    height: 94px;
    margin: 0 0 0 18px;
  }

  body:not(.sena-home-page) #header .header-widget {
    top: 0;
    display: flex;
    align-items: center;
    height: auto;
  }

  body:not(.sena-home-page).user_not_logged_in #header .header-widget .sign-in {
    top: 0;
    padding: 9px 13px;
    border: 1px solid #e1e9ef;
    border-radius: 8px;
    color: #12345b;
    background: #fff;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  body:not(.sena-home-page) #header {
    min-height: 78px;
    border-bottom: 1px solid #eaf0f4;
  }

  body:not(.sena-home-page) #logo img,
  body:not(.sena-home-page) #header.cloned #logo img {
    width: 300px !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 75px !important;
    object-fit: contain;
  }

  #mobile-nav .sena-interior-cta > a {
    color: #fff;
    background: #087f89;
    border-radius: 7px;
    margin: 12px 15px;
    padding-left: 16px;
  }
}

/* Keep room for account/cart controls on narrow phones. */
@media (max-width: 380px) {
  body:not(.sena-home-page) #logo img,
  body:not(.sena-home-page) #header.cloned #logo img {
    width: 270px !important;
    max-width: 270px !important;
  }
}

/* Larger mobile logo gets its own row above the controls. */
@media (max-width: 600px) {
  body:not(.sena-home-page) #header { min-height: 140px; }
  body:not(.sena-home-page) #header > .container { position: relative; min-height: 140px; }
  body:not(.sena-home-page) #header #logo {
    position: relative; display: flex; align-items: center;
    width: 100%; height: 76px; margin: 0; padding: 0; top: auto; left: auto;
  }
  body:not(.sena-home-page) #header #logo a { height: auto; margin-left: 0; }
  body:not(.sena-home-page) #header #logo img { top: auto; transform: none; }
  body:not(.sena-home-page) #header .right-side {
    position: absolute; top: 85px !important; right: 80px; height: 40px; margin: 0; transform: none;
  }
  body:not(.sena-home-page) #header .header-widget { top: 0; }
  body:not(.sena-home-page) #header .mmenu-trigger {
    position: absolute; top: 80px; right: 15px; margin: 0;
  }
}
