.site-header__locale-switcher {
  position: relative;
  display: none;
  flex: 0 0 auto;
}

.site-header__locale-switcher-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  min-height: var(--public-header-control-height, 46px);
  padding: 0 5px;
  border: 1px solid #d5e1ef;
  border-radius: 10px;
  background: #ffffff;
  color: #17355f;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  list-style: none;
}

.site-header__locale-switcher-trigger-code {
  min-width: 2ch;
  line-height: 1;
  text-align: center;
}

.site-header__locale-switcher-trigger::-webkit-details-marker {
  display: none;
}

.site-header__locale-switcher-trigger:hover,
.site-header__locale-switcher[data-disclosure-open="true"] > .site-header__locale-switcher-trigger {
  background: #f8fbff;
}

.site-header__locale-switcher-chevron {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 140ms ease;
}

.site-header__locale-switcher[data-disclosure-open="true"] .site-header__locale-switcher-chevron,
.site-header__locale-switcher[open] .site-header__locale-switcher-chevron {
  transform: rotate(180deg);
}

.site-header__locale-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(208px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 35, 67, 0.18);
}

.site-header__locale-switcher-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__locale-switcher-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: #17355f;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header__locale-switcher-link:hover {
  background: #f1f6fc;
  text-decoration: none;
}

.site-header__locale-switcher-link[aria-current="page"] {
  background: #0f2a52;
  color: #ffffff;
}

.site-header__locale-switcher-name {
  min-width: 0;
}

.site-header__locale-switcher-code {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
}

.site-header__locale-switcher-check {
  text-align: center;
}

.site-header__utility-menu {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 36px;
  align-items: stretch;
  flex: 0 0 auto;
  min-width: 0;
  min-height: var(--public-header-control-height, 46px);
  overflow: visible;
  border: 1px solid #d5e1ef;
  border-radius: 10px;
  background: #ffffff;
  color: #17355f;
}

.site-header__utility-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px 0 0 9px;
  background: transparent;
  color: #17355f;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.site-header__utility-trigger-label {
  display: inline-block;
  min-width: 0;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__utility-disclosure {
  display: contents;
}

.site-header__utility-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-left: 1px solid #dbe5f2;
  border-radius: 0 9px 9px 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

.site-header__utility-toggle::-webkit-details-marker {
  display: none;
}

.site-header__utility-trigger:hover,
.site-header__utility-toggle:hover,
.site-header__utility-menu[data-disclosure-open="true"] {
  background: #f8fbff;
}

.site-header__utility-trigger:hover,
.site-header__utility-trigger:focus,
.site-header__utility-trigger:active {
  text-decoration: none;
}

.site-header__utility-trigger:focus-visible,
.site-header__utility-toggle:focus-visible,
.site-header__account-link:focus-visible,
.site-header__locale-switcher-trigger:focus-visible,
.site-header__locale-switcher-link:focus-visible,
.site-header__utility-locale-link:focus-visible {
  outline: 3px solid #0f2a52;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--storefront-action-focus);
}

.site-header__account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0f2a52;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header__account-avatar svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-header__account-avatar [hidden] {
  display: none;
}

.site-header__utility-chevron {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 140ms ease;
}

.site-header__utility-menu[data-disclosure-open="true"] .site-header__utility-chevron,
.site-header__utility-disclosure[open] .site-header__utility-chevron {
  transform: rotate(180deg);
}

.site-header__utility-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(286px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 35, 67, 0.18);
}

.site-header__utility-section {
  display: grid;
  gap: 5px;
}

.site-header__utility-section--locale {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e6ecf4;
}

.site-header__utility-section--locale .site-header__utility-section-label {
  padding-inline: 8px 2px;
  white-space: nowrap;
}

.site-header__utility-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  color: #6b7787;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header__utility-section-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.site-header__account-link {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #17355f;
  font-weight: 800;
  text-decoration: none;
}

.site-header__account-actions {
  display: grid;
  gap: 2px;
}

.site-header__utility-menu[data-public-account-signed-in="false"] [data-public-account-signed-in-only] {
  display: none;
}

.site-header__account-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.site-header__account-link-icon svg {
  display: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-header__account-link-icon--static svg {
  display: block;
}

.site-header__account-link[data-public-account-signed-in="false"] [data-public-account-menu-guest-icon],
.site-header__account-link[data-public-account-signed-in="true"] [data-public-account-menu-orders-icon] {
  display: block;
}

.site-header__account-link:hover {
  background: #f1f6fc;
  color: #0f2a52;
  text-decoration: none;
}

.site-header__account-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__account-link-arrow {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-header__utility-locale-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__utility-locale-link {
  display: grid;
  grid-template-columns: 24px 16px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 10px;
  color: #17355f;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header__utility-locale-link:hover {
  background: #f1f6fc;
  text-decoration: none;
}

.site-header__utility-locale-link[aria-current="page"] {
  background: #0f2a52;
  color: #ffffff;
}

.site-header__utility-locale-name {
  min-width: 0;
}

.site-header__utility-locale-code {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
}

.site-header__utility-locale-check {
  width: 16px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__locale-switcher-chevron,
  .site-header__utility-chevron {
    transition: none;
  }
}

@media (min-width: 1320px) {
  .site-header__locale-switcher {
    display: block;
  }

  .site-header__utility-section--locale {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header__utility-panel {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .site-header__utility-trigger {
    min-width: 46px;
    padding-inline: 8px;
  }

  .site-header__utility-menu {
    grid-template-columns: minmax(0, auto) 28px;
  }

  .site-header__utility-toggle {
    width: 28px;
  }

  .site-header__utility-trigger-label,
  .catalog-mobile-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-header__cart-link,
  .catalog-mobile-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .catalog-mobile-toggle {
    min-height: var(--public-header-control-height, 46px);
  }

  .site-header__account-avatar {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .club-badge--logo-only {
    max-width: min(150px, 36vw);
  }
}
