.language-switcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(18, 20, 23, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.language-switcher button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: #fff;
}

.language-switcher button.is-active {
  background: #0274b5;
  color: #fff;
}

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

.language-prompt {
  position: fixed;
  right: 24px;
  bottom: 82px;
  z-index: 1099;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(18, 20, 23, 0.97);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  animation: language-prompt-in 220ms ease-out both;
}

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

.language-prompt::after {
  position: absolute;
  right: 31px;
  bottom: -6px;
  width: 11px;
  height: 11px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: #121417;
  content: "";
  transform: rotate(45deg);
}

.language-prompt button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #52b8ed;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-prompt .language-prompt-close {
  align-self: flex-start;
  margin: -5px -5px 0 -7px;
  padding: 2px 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1;
}

.language-prompt button:focus-visible {
  border-radius: 4px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@keyframes language-prompt-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  .language-switcher {
    right: 16px;
    bottom: 16px;
  }

  .language-prompt {
    right: 16px;
    bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher button,
  .language-prompt {
    transition: none;
    animation: none;
  }
}