.language-toggle {
  position: absolute;
  z-index: 90;
  top: 50%;
  right: 0;
  display: inline-flex;
  min-width: 82px;
  height: 40px;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d7e0e8;
  border-radius: 999px;
  color: #60778b;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 14px rgba(20, 42, 66, .08);
  font: 750 .78rem/1 "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: #368ec4;
  outline: none;
  box-shadow: 0 5px 18px rgba(54, 142, 196, .2);
}

.language-toggle .language-code {
  display: grid;
  min-width: 27px;
  height: 27px;
  padding: 0 4px;
  place-items: center;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.language-toggle .language-code.is-active {
  color: #fff;
  background: #368ec4;
}

.language-toggle .language-divider { color: #a4b2bd; }

@media (max-width: 480px) {
  .language-toggle {
    min-width: 72px;
    height: 38px;
    padding-inline: 5px;
    gap: 3px;
    font-size: .72rem;
  }

  .language-toggle .language-code {
    min-width: 25px;
    height: 25px;
  }
}
