.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher .lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.8px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  cursor: pointer;
}

.language-switcher .lang-switch:hover,
.language-switcher .lang-switch:focus { color: #fff; }

.language-switcher .lang-switch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.language-switcher .lang-switch svg {
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.language-switcher .lang-switch[aria-expanded="true"] svg { transform: rotate(180deg); }
.language-dropdown[hidden] { display: none !important; }

.language-dropdown {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 12px);
    width: max-content;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(68, 71, 59, .12);
    border-radius: 4px;
    background: #f9f7f2;
    box-shadow: 0 18px 45px rgba(30, 34, 27, .2);
    color: #30352d;
    left: 50%;
    transform: translateX(-50%);
}

.language-dropdown::before {
    position: absolute;
    right: auto;
    bottom: 100%;
    width: 0;
    height: 0;
    border-right: 7px solid transparent;
    border-bottom: 8px solid #f9f7f2;
    border-left: 7px solid transparent;
    content: "";
    left: 50%;
    margin: auto;
    transform: translateX(-50%);
}

.language-dropdown-list { display: grid; gap: 2px; }

.language-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 2px;
  color: #30352d;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

.language-dropdown-item:hover,
.language-dropdown-item:focus {
  background: #687259;
  color: #fff;
  text-decoration: none;
}

.language-dropdown-item:focus-visible {
  outline: 2px solid #687259;
  outline-offset: 2px;
}

.language-dropdown-item small {
  color: #737969;
  font-size: .62rem;
  letter-spacing: .1em;
}

.language-dropdown-item:hover small,
.language-dropdown-item:focus small { color: rgba(255, 255, 255, .8); }

.language-dropdown-item.is-disabled {
  color: #8a8d84;
  cursor: not-allowed;
  opacity: .65;
}

.language-dropdown-item.is-disabled:hover,
.language-dropdown-item.is-disabled:focus {
  background: transparent;
  color: #8a8d84;
}

@media (max-width: 575.98px) {
  .language-switcher .lang-switch { font-size: .64rem; letter-spacing: .12em; }
  .language-dropdown { min-width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher .lang-switch svg,
  .language-dropdown-item { transition: none; }
}
