#masthead .esp-header-picker {
  --language-ink: #30251c;
  --language-brass: #876834;
  --language-edge: #d9cbb5;
  --language-paper: #fffcf7;
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  text-align: start;
}
#masthead .esp-header__actions > .esp-language { order: 6; }
#masthead.es-touch-menu .esp-header__actions > .esp-language { display: none; }
/* The translated navigation needs room for longer labels beside the regional controls. */
@media (min-width: 1024px) {
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) .esp-header__main:has(.es-desktop-menu:not([hidden])) {
    display: grid !important;
    grid-template-columns: minmax(max-content,1fr) max-content minmax(max-content,1fr);
    align-items: center;
    gap: clamp(6px,1vw,16px);
  }
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) #esp-primary-navigation.esp-nav-panel {
    position: static;
    inset: auto;
    transform: none;
    width: max-content;
    margin: 0;
  }
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) .esp-header__actions {
    justify-self: end;
    column-gap: clamp(4px,calc(3vw - 26px),16px);
  }
  /* Keep the controls in position while the regional language switcher initializes. */
  body.esp-region-ch #masthead:has(.es-desktop-menu:not([hidden])) .esp-header__actions:not(:has(.esp-language))::after {
    content: '';
    order: 6;
    inline-size: 80px;
    flex: none;
  }
}
@media (min-width: 1024px) and (max-width: 1250px) {
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) #esp-primary-navigation .es-desktop-menu {
    gap: clamp(8px,calc(4vw - 32px),18px);
  }
}
@media (min-width: 1024px) and (max-width: 1100px) {
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) .esp-header__main:has(.es-desktop-menu:not([hidden])) {
    column-gap: 6px;
  }
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) #esp-primary-navigation .es-desktop-menu > a,
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) #esp-primary-navigation .es-menu-top {
    font-size: 14px;
  }
  body.esp-redesign.esp-region-ch #masthead:not(.es-touch-menu) .esp-header__actions {
    column-gap: 0;
  }
}
#masthead .esp-header-picker .esp-language-trigger,
#masthead .esp-header-picker .esp-language-option {
  appearance: none;
  box-sizing: border-box;
  margin: 0;
  cursor: pointer;
  color: var(--language-ink);
  text-decoration: none;
  text-transform: none;
  font-family: var(--esp-font-body,Poppins,sans-serif);
  -webkit-tap-highlight-color: transparent;
}
#masthead .esp-header-picker .esp-language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  inline-size: max-content;
  min-block-size: 40px;
  padding: 0 9px;
  border: 1px solid var(--language-edge);
  border-radius: 999px;
  background: var(--language-paper);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .045em;
  transition: border-color 150ms ease, background-color 150ms ease;
}
#masthead .esp-header__actions .esp-language > .esp-language-trigger { inline-size: 80px; }
#masthead .esp-header-picker > .esp-language-trigger > .esp-picker-chevron {
  display: block;
  flex: 0 0 7px;
  box-sizing: border-box;
  inline-size: 7px;
  block-size: 7px;
  margin-inline-start: 1px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}
#masthead .esp-header-picker > .esp-language-trigger[aria-expanded="true"] > .esp-picker-chevron { transform: translateY(2px) rotate(225deg); }
#masthead .esp-header-picker .esp-language-trigger[aria-expanded="true"] {
  border-color: var(--language-brass);
  background: #f6efdf;
}
#masthead .esp-language-globe {
  position: relative;
  flex: none;
  inline-size: 15px;
  block-size: 15px;
  border: 1.25px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  color: var(--language-brass);
}
#masthead .esp-language-globe::before,
#masthead .esp-language-globe::after {
  content: '';
  position: absolute;
}
#masthead .esp-language-globe::before {
  inset: 0 3px;
  border-inline: 1px solid currentColor;
  border-radius: 50%;
}
#masthead .esp-language-globe::after { inset: 50% 0 auto; border-block-start: 1px solid currentColor; }
#masthead .esp-language-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  box-sizing: border-box;
  inline-size: 198px;
  max-inline-size: calc(100vw - 24px);
  padding: 6px;
  background: var(--language-paper);
  border: 1px solid var(--language-edge);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(52,36,19,.14), 0 2px 5px rgba(52,36,19,.06);
}
#masthead .esp-language-menu[hidden] { display: none !important; }
#masthead .esp-header-picker > .esp-language-trigger[aria-expanded="true"] + .esp-language-menu { animation: esp-language-reveal 140ms ease-out; }
@keyframes esp-language-reveal {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
#masthead .esp-header-picker .esp-language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  inline-size: 100%;
  min-block-size: 44px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  text-align: start;
}
#masthead .esp-header-picker .esp-language-option[aria-checked="true"] {
  background: #efe5d3;
  font-weight: 600;
}
#masthead .esp-language-option[aria-checked="true"]::after {
  content: '';
  inline-size: 6px;
  block-size: 11px;
  margin-inline-end: 3px;
  border: solid var(--language-brass);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
@media (hover: hover) {
  #masthead .esp-header-picker .esp-language-trigger:hover { border-color: var(--language-brass); }
  #masthead .esp-header-picker .esp-language-option:hover { background-color: #f4ecdf; }
}
#masthead .esp-header-picker :is(summary,button,a):focus-visible {
  outline: 2px solid #80612e;
  outline-offset: 2px;
}
#masthead .esp-header-picker .esp-language-option:focus-visible { outline-offset: -2px; }
@media (min-width: 1024px) and (max-width: 1250px) {
  #masthead .esp-header__actions .esp-language-globe { display: none; }
  #masthead .esp-header__actions .esp-language > .esp-language-trigger,
  body.esp-region-ch #masthead:has(.es-desktop-menu:not([hidden])) .esp-header__actions:not(:has(.esp-language))::after { inline-size: 58px; }
}
#masthead #es-store-drawer .esp-header-picker {
  display: grid;
  justify-self: stretch;
}
#masthead #es-store-drawer .esp-language-trigger {
  inline-size: 100%;
  min-block-size: 46px;
  justify-content: start;
  gap: 10px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
}
#masthead #es-store-drawer .esp-header-picker .esp-picker-chevron { margin-inline-start: auto; }
#masthead #es-store-drawer .esp-language-menu {
  position: static;
  inline-size: 100%;
  max-inline-size: none;
  margin-block-start: 5px;
  border-radius: 11px;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  #masthead .esp-header-picker > .esp-language-trigger[aria-expanded="true"] + .esp-language-menu { animation: none; }
  #masthead .esp-header-picker .esp-language-trigger,
  #masthead .esp-header-picker > .esp-language-trigger > .esp-picker-chevron { transition: none; }
}
#masthead .esp-language [role="status"]:empty { display: none; }
#masthead .esp-language [role="status"]:not(:empty) {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  width: 15rem;
  padding: 10px 14px;
  border-radius: 8px;
  background: #211a15;
  color: white;
  font: 400 13px/1.4 var(--esp-font-body,Poppins,sans-serif);
}
#es-store-drawer .esp-language [role="status"] { inset-inline: 0 auto; }
body.esp-region-ch .gtranslate_wrapper[hidden] { display: none !important; }

#masthead details.esp-header-picker { padding: 0; border: 0; }
#masthead details.esp-header-picker > summary { list-style: none; white-space: nowrap; }
#masthead details.esp-header-picker > summary::-webkit-details-marker { display: none; }
#masthead .esp-header__actions details.esp-market > .esp-language-trigger { inline-size: max-content; padding-inline: 12px; }
#masthead #es-store-drawer details.esp-header-picker > .esp-language-trigger { inline-size: 100%; }
#masthead details.esp-header-picker > .esp-language-trigger::after,
#masthead #es-store-drawer details.esp-header-picker > .esp-language-trigger::after { content: none; }
@media (max-width: 639px) {
  #masthead.es-touch-menu .esp-header__actions > .esp-market { display: none; }
}
