.language-switcher {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  border: 1px solid #e8edf2;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 14px rgba(28,67,105,.08);
  color: #777;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: inherit;
  padding: 4px 10px 4px 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.language-trigger:hover,
.language-switcher.is-open .language-trigger {
  color: #1976d2;
}

.language-switcher-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 12px;
  font-weight: 900;
}

.language-current {
  min-width: 68px;
  color: #222;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.language-chevron {
  width: 12px;
  height: 8px;
  margin-left: 2px;
  overflow: visible;
  color: #777;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform .18s ease;
}

.language-switcher.is-open .language-chevron {
  transform: rotate(180deg);
}

.language-trigger:focus-visible {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

.language-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  min-width: 154px;
  padding: 6px;
  border: 1px solid rgba(25,118,210,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 34px rgba(28,67,105,.18);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  min-height: 34px;
  border-radius: 9px;
  padding: 8px 10px;
  color: #777;
  font-size: 11px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.active {
  background: #e3f2fd;
  color: #1976d2;
  outline: 0;
}
