.language-switcher {
  position: relative;
}

.language-switcher summary {
  list-style: none;
  cursor: pointer;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(216, 227, 242, 0.95);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
  color: #182433;
  box-shadow: 0 14px 26px rgba(15, 31, 61, 0.08);
}

.language-switcher--auth .language-switcher__current {
  background: #ffffff;
}

.language-switcher--admin .language-switcher__current {
  background: #f9fbff;
}

.language-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(216, 227, 242, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 46px rgba(15, 31, 61, 0.14);
  z-index: 60;
}

.language-switcher__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #182433;
  text-align: left;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible {
  border-color: #d8e3f2;
  background: #f7faff;
  transform: translateY(-1px);
}

.language-switcher__option.is-active {
  border-color: rgba(31, 111, 229, 0.24);
  background: rgba(31, 111, 229, 0.08);
}

.language-switcher__names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.language-switcher__names small {
  color: #5c6e86;
}

@media (max-width: 720px) {
  .language-switcher__menu {
    right: auto;
    left: 0;
  }
}
