﻿.language-switcher-floating {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1200;
  pointer-events: none;
}

.language-switcher-floating .language-switcher {
  pointer-events: auto;
}

.language-switcher {
  position: relative;
  display: inline-flex;
}

.language-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 20, 47, 0.2);
  background-color: #ffffff;
  color: #0a142f;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 20, 47, 0.08);
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.language-switcher__toggle:hover {
  transform: translateY(-1px);
}

.language-switcher__toggle:focus-visible {
  outline: 2px solid #0a142f;
  outline-offset: 2px;
}

.language-switcher.is-open .language-switcher__toggle {
  border-color: #0a142f;
  box-shadow: 0 8px 18px rgba(10, 20, 47, 0.12);
}

.language-switcher__current {
  line-height: 1;
}

.language-switcher__sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 9rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(10, 20, 47, 0.12);
  box-shadow: 0 16px 30px rgba(10, 20, 47, 0.12);
}

body.rtl-enabled .language-switcher__menu {
  left: 0;
  right: auto;
}

.language-switcher__item + .language-switcher__item {
  margin-top: 0.15rem;
}

.language-switcher__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  color: #0a142f;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus {
  background-color: rgba(10, 20, 47, 0.08);
  color: #0a142f;
}

.language-switcher__link.is-active {
  font-weight: 600;
  background-color: rgba(10, 20, 47, 0.12);
}

.language-switcher__menu-label {
  flex: 1 1 auto;
}

[hidden] {
  display: none !important;
}

@media (max-width: 575px) {
  .language-switcher-floating {
    top: 0.5rem;
    left: 0.5rem;
  }

  .language-switcher__toggle {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
  }
}






