.top-row {
  gap: 24px;
}

.language-switcher {
  position: relative;
  font-family: inherit;
  z-index: 20;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 64px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.language-switcher__chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.language-switcher__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 156px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.language-switcher.is-open .language-switcher__list {
  display: block;
}

.language-switcher__list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #222;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher__list a:hover,
.language-switcher__list a[aria-current="true"] {
  background: #f1f4f3;
}

@media (max-width: 1000px) {
  #container #header .top-row .language-switcher {
    position: absolute;
    top: 50%;
    right: calc(3% + 44px);
    transform: translateY(-50%);
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .language-switcher__button {
    min-width: 56px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}
