/* Header controls are scoped to protect them from legacy theme styles. */
#hpw-site-header {
  position: relative;
  z-index: 90;
  background: #fff;
  color: #0d69a0;
  font-family: Montserrat, system-ui, sans-serif;
}
#hpw-site-header *,
.hpw-header-bottom * {
  box-sizing: border-box;
}
#hpw-site-header :is(a, summary, span, input, button),
.hpw-header-bottom :is(a, span) {
  margin: 0;
  font: inherit;
  letter-spacing: 0;
  color: inherit;
}
#hpw-site-header a,
.hpw-header-bottom a {
  text-decoration: none;
  opacity: 1;
}
#hpw-site-header :is(a, summary, button):focus-visible,
.hpw-header-bottom a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
#hpw-site-header summary {
  cursor: pointer;
  list-style: none;
}
#hpw-site-header summary::-webkit-details-marker {
  display: none;
}
#hpw-site-header [hidden] {
  display: none !important;
}
#hpw-site-header svg,
.hpw-header-bottom svg {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
#hpw-site-header .hpw-header__announcement {
  min-height: 38.75px;
  background: #0d69a0;
  color: #fff;
}
#hpw-site-header .hpw-header__messages {
  min-height: 38.75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 96px);
  max-width: 1040px;
  margin-inline: auto;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
}
#hpw-site-header .hpw-header__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 250px) 1fr repeat(3, auto);
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  min-height: 73px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 8px 32px;
}
#hpw-site-header .hpw-header__logo {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
}
#hpw-site-header .hpw-header__logo img {
  display: block;
  width: 100%;
  max-height: 57px;
  object-fit: contain;
  object-position: left center;
}
#hpw-site-header .hpw-header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
#hpw-site-header .hpw-header__desktop-nav > ul {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
}
#hpw-site-header .hpw-header__menu li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
#hpw-site-header .hpw-header__menu a,
#hpw-site-header .hpw-header__menu a:is(:visited, :hover, :active, :focus),
#hpw-site-header .hpw-header__submenu-toggle {
  color: #0d69a0;
}
#hpw-site-header .hpw-header__desktop-nav a {
  display: block;
  padding-block: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
}
#hpw-site-header .sub-menu {
  display: none;
  position: absolute;
  inset: 100% auto auto 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 16px;
  list-style: none;
  background: #fff;
  border: 1px solid #d5e0e7;
  border-radius: 8px;
  box-shadow: 0 8px 24px #17344a1a;
}
#hpw-site-header .sub-menu .sub-menu {
  inset: 0 auto auto 100%;
}
#hpw-site-header .sub-menu a {
  font-size: 14px;
  line-height: 20px;
  white-space: normal;
  padding-block: 8px;
}
#hpw-site-header li:is(:hover, :focus-within) > .sub-menu,
#hpw-site-header li.is-expanded > .sub-menu {
  display: block;
}
#hpw-site-header .hpw-header__action,
#hpw-site-header .hpw-header__search > summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}
#hpw-site-header .hpw-header__cart {
  position: relative;
}
#hpw-site-header .hpw-header__cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #df4b4b;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
#hpw-site-header .hpw-header__search form {
  position: absolute;
  z-index: 2;
  top: 100%;
  right: 24px;
  display: flex;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  padding: 16px;
  background: #fff;
  border: 1px solid #d5e0e7;
  border-radius: 8px;
}
#hpw-site-header .hpw-header__search input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #64727a;
  border-radius: 4px;
  padding: 8px;
  font-size: 16px;
  line-height: 24px;
}
#hpw-site-header .hpw-header__search button {
  width: auto;
  max-width: none;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: #0d69a0;
  color: #fff;
  font-size: 14px;
  text-transform: none;
  cursor: pointer;
}
#hpw-site-header .hpw-header__mobile-menu,
.hpw-header-bottom {
  display: none;
}
.hpw-header-skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10001;
  padding: 12px;
  background: #fff;
}
.hpw-header-skip:focus {
  top: 8px;
}
@media (max-width: 1100px) {
  #hpw-site-header .hpw-header__announcement,
  #hpw-site-header .hpw-header__messages {
    min-height: 36px;
  }
  #hpw-site-header .hpw-header__messages {
    display: grid;
    justify-content: center;
    padding: 0 16px;
    min-height: 36px;
    gap: 0;
  }
  #hpw-site-header .hpw-header__messages > * {
    grid-area: 1 / 1;
    visibility: hidden;
    text-align: center;
  }
  #hpw-site-header .hpw-header__messages > .is-active {
    visibility: visible;
  }
  #hpw-site-header .hpw-header__row {
    grid-template-columns: auto minmax(0, 1fr) repeat(3, auto);
    gap: 20px;
  }
  #hpw-site-header .hpw-header__desktop-nav {
    display: none;
  }
  #hpw-site-header .hpw-header__mobile-menu {
    display: block;
  }
  #hpw-site-header .hpw-header__mobile-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
  #hpw-site-header .hpw-header__action,
  #hpw-site-header .hpw-header__search > summary {
    min-height: 44px;
  }
  #hpw-site-header .hpw-header__menu-close-icon {
    display: none;
  }
  #hpw-site-header .hpw-header__mobile-menu[open] .hpw-header__menu-open-icon {
    display: none;
  }
  #hpw-site-header .hpw-header__mobile-menu[open] .hpw-header__menu-close-icon {
    display: block;
  }
  #hpw-site-header .hpw-header__logo {
    justify-self: start;
    max-width: 230px;
  }
  #hpw-site-header
    .hpw-header__action
    > span:last-child:not(.hpw-header__cart-icon),
  #hpw-site-header .hpw-header__search > summary > span {
    display: none;
  }
  #hpw-site-header .hpw-header__mobile-panel {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #d5e0e7;
  }
  #hpw-site-header .hpw-header__mobile-panel a {
    display: block;
    padding: 12px 44px 12px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
  }
  #hpw-site-header .hpw-header__mobile-panel > ul > li + li {
    border-top: 1px solid #dcdcdc;
  }
  #hpw-site-header .hpw-header__mobile-panel .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 16px;
    border: 0;
    box-shadow: none;
  }
  #hpw-site-header .hpw-header__mobile-panel .sub-menu .sub-menu {
    position: static;
  }
  #hpw-site-header .hpw-header__submenu-toggle {
    position: absolute;
    inset: 0 0 auto auto;
    width: 40px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 0;
    background: transparent;
    color: #0d69a0;
    cursor: pointer;
  }
  #hpw-site-header .hpw-header__submenu-toggle svg {
    width: 20px;
    height: 20px;
  }
  #hpw-site-header .hpw-header__submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }
  .hpw-custom-header-active {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .hpw-header-bottom {
    position: fixed;
    z-index: 85;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #0d69a0;
    color: #fff;
    font-family: Montserrat, system-ui, sans-serif;
  }
  .hpw-header-bottom a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    line-height: 17px;
  }
}
@media (max-width: 600px) {
  #hpw-site-header .hpw-header__row {
    grid-template-columns: 42px 28px minmax(0, 1fr) 28px 42px;
    gap: 12px;
    padding: 8px 16px;
  }
  #hpw-site-header .hpw-header__logo {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    width: 100%;
  }
  #hpw-site-header .hpw-header__logo img {
    width: 100%;
    max-width: 180px;
    height: 57px;
    margin-inline: auto;
    object-position: center;
  }
  #hpw-site-header .hpw-header__mobile-menu {
    grid-column: 1;
    grid-row: 1;
  }
  #hpw-site-header .hpw-header__search {
    grid-column: 2;
    grid-row: 1;
  }
  #hpw-site-header .hpw-header__account {
    grid-column: 4;
    grid-row: 1;
  }
  #hpw-site-header .hpw-header__cart {
    grid-column: 5;
    grid-row: 1;
  }
}

/* Keep announcements and navigation together while scrolling. */
#hpw-site-header {
  position: sticky;
  top: 0;
}
body.admin-bar #hpw-site-header {
  top: 32px;
}
body #hpw-site-header.hpw-header--fixed {
  position: fixed;
  top: var(--hpw-admin-offset, 0px);
  left: 0;
  right: 0;
  width: 100%;
}
.hpw-header-spacer {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
#hpw-site-header .hpw-header__cart-icon {
  position: relative;
  display: block;
}
#hpw-site-header .hpw-header__cart-icon svg {
  width: 40px;
  height: 32px;
}
#hpw-site-header .hpw-header__search > summary > svg,
#hpw-site-header .hpw-header__account > svg {
  width: 40px;
  height: 32px;
  stroke-width: 2.5;
}
#hpw-site-header .hpw-header__action > span:last-child:not(.hpw-header__cart-icon),
#hpw-site-header .hpw-header__search > summary > span {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
#hpw-site-header .hpw-header__cart-count {
  top: 1px;
  left: 23px;
  right: auto;
  width: 22px;
  min-width: 0;
  padding: 0;
  transform: translateX(-50%);
  background: transparent;
  color: #0d69a0;
  font-size: 14px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#hpw-site-header .hpw-header__search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid #d5e0e7;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 24px #17344a26;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}
#hpw-site-header .hpw-header__search-inner {
  max-width: 1000px;
  margin-inline: auto;
}
#hpw-site-header .hpw-header__row {
  position: static;
}
#hpw-site-header .hpw-header__search form {
  position: static;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
#hpw-site-header .hpw-header__search-field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid #0d69a0;
  border-radius: 6px;
  margin: 0;
}
#hpw-site-header .hpw-header__search input[type="search"] {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: #fff;
  color: #0d69a0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  box-shadow: none;
}
#hpw-site-header .hpw-header__search-field input[type="search"],
#hpw-site-header .hpw-header__search-field input[type="search"]:focus,
#hpw-site-header .hpw-header__search-field input[type="search"]:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
#hpw-site-header .hpw-header__search-field:focus-within {
  outline: none;
  border-color: #0d69a0;
}
#hpw-site-header .hpw-header__search input::placeholder {
  color: #0d69a0;
  opacity: 1;
}
#hpw-site-header .hpw-header__search button[type="submit"] {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  border-radius: 12px;
}
#hpw-site-header .hpw-header__search button.hpw-header__search-close {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 0;
}
#hpw-site-header .hpw-header__suggestions {
  margin: 24px 0 0;
  color: #0d69a0;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
}
#hpw-site-header .hpw-header__suggestions a:hover {
  text-decoration: underline;
}
@media (max-width: 782px) {
  body.admin-bar #hpw-site-header {
    top: 46px;
  }
}
@media (max-width: 600px) {
  #hpw-site-header .hpw-header__search-panel {
    padding: 44px 16px 24px;
  }
  #hpw-site-header .hpw-header__search form {
    flex-wrap: wrap;
  }
  #hpw-site-header .hpw-header__search-field {
    flex-basis: 100%;
  }
  #hpw-site-header .hpw-header__search button[type="submit"] {
    width: 100%;
  }
  #hpw-site-header .hpw-header__search input[type="search"] {
    font-size: 16px;
  }
  body.admin-bar #hpw-site-header {
    top: 0;
  }
}

/* Active navigation and dropdowns share the reference's neutral background. */
#hpw-site-header {
  --hpw-menu-surface: #f2f2f2;
}
#hpw-site-header .hpw-header__desktop-nav > ul {
  gap: clamp(4px, 0.7vw, 12px);
}
#hpw-site-header .hpw-header__desktop-nav > ul > li > a {
  padding-inline: clamp(10px, 1vw, 18px);
  border-radius: 999px;
}
#hpw-site-header
  .hpw-header__menu
  > :is(.current-menu-item, .current-menu-parent, .current-menu-ancestor)
  > a,
#hpw-site-header .hpw-header__desktop-nav > ul > li > a:hover,
#hpw-site-header .hpw-header__desktop-nav > ul > li:focus-within > a {
  background: var(--hpw-menu-surface);
}
#hpw-site-header .hpw-header__desktop-nav .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 10px;
}
#hpw-site-header .hpw-header__desktop-nav .menu-item-has-children > a::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
#hpw-site-header .sub-menu {
  padding: 0;
  background: var(--hpw-menu-surface);
  border: 0;
  border-radius: 0;
}
#hpw-site-header .sub-menu > li + li {
  border-top: 1px solid #dcdcdc;
}
#hpw-site-header .sub-menu a {
  padding: 12px 24px;
}
#hpw-site-header .sub-menu a,
#hpw-site-header .sub-menu a:is(:hover, :focus, :focus-visible) {
  display: block;
  width: 100%;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}
@media (min-width: 1101px) {
  /* Extend the parent hover area through the row's bottom padding. */
  #hpw-site-header .hpw-header__desktop-nav {
    display: flex;
    align-self: stretch;
  }
  #hpw-site-header .hpw-header__desktop-nav > ul {
    flex: 1;
    align-items: stretch;
    margin-bottom: -8px;
  }
  #hpw-site-header .hpw-header__desktop-nav > ul > li {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
  }
  #hpw-site-header .hpw-header__desktop-nav > ul > li > .sub-menu {
    top: 100%;
    z-index: 3;
  }
}
@media (max-width: 1100px) {
  #hpw-site-header
    .hpw-header__menu
    > :is(.current-menu-item, .current-menu-parent, .current-menu-ancestor)
    > a {
    border-radius: 0;
    padding-left: 16px;
  }
  #hpw-site-header .hpw-header__mobile-panel .sub-menu {
    padding: 0;
    background: var(--hpw-menu-surface);
  }
  #hpw-site-header .hpw-header__mobile-panel .sub-menu a {
    padding: 12px 44px 12px 24px;
  }
}
