.ang-language-switcher {
  --ang-lang-accent: #00a9cb;
  --ang-lang-accent-light: #38d7f1;
  --ang-lang-dark: #071820;
  position: relative;
  z-index: 99998;
  font-family: inherit;
}

.ang-language-switcher--floating {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
}

.ang-language-switcher--bottom-left {
  left: max(22px, env(safe-area-inset-left));
}

.ang-language-switcher--bottom-right {
  right: max(22px, env(safe-area-inset-right));
}

.ang-language-switcher__button {
  min-width: 94px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 215, 241, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(15, 46, 57, 0.98), rgba(5, 21, 28, 0.99));
  box-shadow:
    0 12px 30px rgba(5, 21, 28, 0.2),
    0 24px 60px rgba(5, 21, 28, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.ang-language-switcher__button:hover {
  border-color: rgba(56, 215, 241, 0.45);
  box-shadow:
    0 15px 34px rgba(5, 21, 28, 0.24),
    0 28px 70px rgba(5, 21, 28, 0.22);
  transform: translateY(-3px);
}

.ang-language-switcher__button:focus-visible {
  outline: 3px solid rgba(56, 215, 241, 0.42);
  outline-offset: 4px;
}

.ang-language-switcher__button:disabled {
  cursor: wait;
  opacity: 0.82;
}

.ang-language-switcher__globe {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 215, 241, 0.22);
  border-radius: 11px;
  color: var(--ang-lang-accent-light);
  background: rgba(56, 215, 241, 0.09);
}

.ang-language-switcher__globe svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ang-language-switcher__labels {
  display: flex;
  align-items: baseline;
  gap: 5px;
  direction: ltr;
}

.ang-language-switcher__labels strong {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.ang-language-switcher__labels small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.ang-language-switcher__spinner {
  width: 16px;
  height: 16px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--ang-lang-accent-light);
  border-radius: 50%;
  animation: angLanguageSpin 700ms linear infinite;
}

.ang-language-switcher.is-loading .ang-language-switcher__globe,
.ang-language-switcher.is-loading .ang-language-switcher__labels {
  display: none;
}

.ang-language-switcher.is-loading .ang-language-switcher__spinner {
  display: block;
}

.ang-language-switcher__status {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: min(280px, 80vw);
  padding: 0;
  color: #5e7078;
  font-size: 0.7rem;
  line-height: 1.6;
}

.ang-language-switcher__status:not(:empty) {
  padding: 8px 11px;
  border: 1px solid rgba(16, 24, 32, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 25px rgba(7, 24, 32, 0.12);
}

.ang-language-switcher__status.is-error {
  color: #a33535;
}

.ang-language-switcher--inline {
  display: inline-flex;
  vertical-align: middle;
}

.ang-language-switcher--inline .ang-language-switcher__status {
  right: 0;
  left: auto;
}

body.ang-language-is-english {
  direction: ltr;
}

body.ang-language-is-persian {
  direction: rtl;
}

@keyframes angLanguageSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .ang-language-switcher--floating {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .ang-language-switcher--bottom-left {
    left: max(14px, env(safe-area-inset-left));
  }

  .ang-language-switcher--bottom-right {
    right: max(14px, env(safe-area-inset-right));
  }

  .ang-language-switcher__button {
    min-width: 84px;
    min-height: 48px;
    border-radius: 15px;
  }

  .ang-language-switcher__globe {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ang-language-switcher *,
  .ang-language-switcher *::before,
  .ang-language-switcher *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
