#masthead #ast-desktop-header { --krown-header-control-height: 44px; }

#masthead #ast-hf-menu-1 > li:has(> a[href*="/distributors/"]) {
  display: flex;
  align-items: center;
}

#masthead #ast-hf-menu-1 > li > a[href*="/distributors/"],
#masthead #ast-desktop-header .krown-language-menu summary {
  box-sizing: border-box;
  height: var(--krown-header-control-height);
}

#masthead .krown-language-menu {
  align-items: center;
  display: flex;
  margin-inline: .5rem 0;
}

#masthead .krown-language-menu details { position: relative; }

#masthead .krown-language-menu summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  list-style: none;
  min-height: 44px;
  padding: 0 .625rem;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25;
}

#masthead .krown-language-menu summary::-webkit-details-marker { display: none; }

#masthead .krown-language-menu summary::after {
  display: inline-block;
  width: .42em;
  height: .42em;
  margin: 0 .05em .18em 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

#masthead .krown-language-menu details[open] summary { color: #ffcf00; }

#masthead .krown-language-menu details > ul {
  position: absolute;
  z-index: 30;
  inset-inline-end: 0;
  width: max-content;
  min-width: 100%;
  margin: 4px 0 0;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 4px;
  background: #1e1810;
  list-style: none;
}

#masthead .krown-language-menu details a {
  display: block;
  align-content: center;
  min-height: 44px;
  padding: .35rem .75rem;
  color: #fff;
  line-height: 1.3;
}

#masthead .krown-language-menu details a:is(:hover, [aria-current]) { color: #ffcf00; }

#masthead .krown-language-menu :is(summary, a):focus-visible {
  outline: 2px solid #ffcf00;
  outline-offset: -2px;
}

.ast-header-break-point #masthead .krown-language-menu { margin: .5rem 1rem; }
.ast-header-break-point #masthead .krown-language-menu details { width: 100%; }
.ast-header-break-point #masthead .krown-language-menu details > ul { position: static; }

.ast-header-break-point #masthead #ast-hf-mobile-menu .menu-link:not([href*="/distributors/"]),
.ast-header-break-point #masthead #ast-hf-mobile-menu .krown-mobile-submenu-toggle {
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

.ast-header-break-point #masthead #ast-hf-mobile-menu .krown-mobile-submenu-toggle {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .625rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8f7f3;
  font: inherit;
  line-height: 1.35;
  text-align: start;
}

.ast-header-break-point #masthead #ast-hf-mobile-menu .sub-menu .krown-mobile-submenu-toggle {
  padding-inline-start: 2.5rem;
}

.ast-header-break-point #masthead #ast-hf-mobile-menu .krown-mobile-submenu-toggle > span {
  pointer-events: none;
}

.ast-header-break-point #masthead #ast-hf-mobile-menu .krown-mobile-submenu-toggle::before {
  display: none;
}

.ast-header-break-point #masthead #ast-hf-mobile-menu .krown-mobile-submenu-toggle::after {
  flex: none;
  width: .5rem;
  height: .5rem;
  border: solid var(--krown-yellow, #ffcf00);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.ast-header-break-point #masthead #ast-hf-mobile-menu .krown-mobile-submenu-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

.ast-header-break-point #masthead #ast-hf-mobile-menu .krown-mobile-submenu-toggle:focus-visible,
.ast-header-break-point #masthead #ast-hf-mobile-menu .menu-link:focus-visible {
  outline-offset: -3px;
}

#masthead #ast-hf-mobile-menu .krown-mobile-parent-link { display: none; }
