/* The language control is the only header surface owned by this stylesheet. */
.header-layout1 .header-topbar {
  position: relative;
  z-index: 1100;
  overflow: visible;
}

.header-topbar .language-switcher--topbar {
  position: relative;
  direction: ltr;
}

.header-topbar .language-switcher__trigger {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background-color .16s ease, border-color .16s ease;
}

.header-topbar .language-switcher__trigger:hover,
.header-topbar .language-switcher__trigger[aria-expanded='true'] {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
}

.header-topbar .language-switcher__trigger:focus-visible {
  outline: 2px solid #48d7cf;
  outline-offset: 2px;
}

.header-topbar .language-switcher__featured-flag,
.header-topbar .language-switcher__option-flag {
  display: block;
  flex: 0 0 auto;
  width: 25px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

.header-topbar .language-switcher__featured-code,
.header-topbar .language-switcher__more {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.header-topbar .language-switcher__more { margin-left: 1px; }
.header-topbar .language-switcher__chevron {
  width: 13px;
  height: 13px;
  margin-left: 1px;
  filter: brightness(0) invert(1);
  transition: transform .16s ease;
}
.header-topbar .language-switcher__trigger[aria-expanded='true'] .language-switcher__chevron { transform: rotate(180deg); }

.header-topbar .language-switcher__menu {
  position: absolute;
  z-index: 1101;
  top: calc(100% + 5px);
  right: 0;
  width: min(326px, calc(100vw - 24px));
  max-height: min(76vh, 420px);
  overflow-y: auto;
  padding: 0 9px 9px;
  border: 1px solid #d9e4f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(7, 37, 87, .17);
  color: #0d2d64;
  white-space: normal;
  direction: ltr;
}
.header-topbar .language-switcher__menu[hidden] { display: none; }

.header-topbar .language-switcher__menu-heading {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin: 0 -9px 5px;
  padding: 0 17px;
  border-radius: 9px 9px 0 0;
  background: #0b3477;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.header-topbar .language-switcher__menu-heading img { filter: brightness(0) invert(1); }

.header-topbar .language-switcher__option {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  color: #0e2d61;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .14s ease;
}
.header-topbar .language-switcher__option:hover,
.header-topbar .language-switcher__option:focus-visible,
.header-topbar .language-switcher__option.is-current { background: #edf4ff; color: #0a3276; }
.header-topbar .language-switcher__option:focus-visible { outline: 2px solid #2bbdb2; outline-offset: -2px; }
.header-topbar .language-switcher__option-flag { width: 25px; height: 18px; box-shadow: 0 0 0 1px #e1e8f0; }
.header-topbar .language-switcher__option-name { min-width: 0; flex: 1 1 auto; text-align: left; }
.header-topbar .language-switcher__option-code { color: #7388aa; font-size: 11px; font-weight: 600; }
.header-topbar .language-switcher__option-check { width: 15px; height: 15px; filter: invert(15%) sepia(74%) saturate(1188%) hue-rotate(188deg); }
.header-topbar .language-switcher__menu-divider { height: 1px; margin: 6px 0; background: #e1e9f3; }

html[dir='rtl'] .header-topbar .language-switcher__menu,
html[dir='rtl'] .header-topbar .language-switcher__menu-heading { direction: rtl; }
html[dir='rtl'] .header-topbar .language-switcher__option-name { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .header-topbar .language-switcher__trigger,
  .header-topbar .language-switcher__chevron,
  .header-topbar .language-switcher__option { transition: none; }
}
