.lang-switcher {
  position: relative;
  flex: 0 0 auto;
}

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.lang-switcher__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switcher__current {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.lang-switcher__chevron {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1;
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 160;
  display: grid;
  gap: 4px;
  min-width: 200px;
  max-height: min(360px, 58vh);
  overflow-y: auto;
  padding: 8px;
  background: rgba(10, 14, 24, .97);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
}

.lang-switcher__menu[hidden] {
  display: none !important;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  color: #e2e8f0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  outline: none;
}

.lang-switcher__option.is-active {
  color: #fff;
  background: rgba(255, 122, 0, .2);
  border-color: rgba(255, 145, 0, .45);
}

.lang-switcher__flag {
  font-size: 18px;
  line-height: 1;
}

body.panel-future .lang-switcher__toggle {
  color: #e2e8f0;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

html[dir="rtl"] .lang-switcher__menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .nav {
  direction: rtl;
}

@media (max-width: 560px) {
  body.home-future .lang-switcher {
    width: 100%;
  }

  body.home-future .lang-switcher__toggle {
    width: 100%;
    justify-content: space-between;
  }

  body.home-future .lang-switcher__menu {
    left: 0;
    right: 0;
    width: 100%;
  }
}
