/* Default language switcher — themes may override */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  flex-shrink: 0;
  z-index: 5;
}
.lang-switcher--pills {
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switcher__btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}
.lang-switcher__btn.is-active {
  color: #0b0b0b !important;
  background: #fff;
}
.lang-switcher--dropdown {
  min-width: 56px;
}
.lang-switcher--dropdown .lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 56px;
  height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.lang-switcher__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.lang-switcher--dropdown.is-open .lang-switcher__caret {
  transform: rotate(180deg);
}
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 10px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.lang-switcher__menu[hidden] {
  display: none !important;
}
.lang-switcher__menu li {
  margin: 0;
  padding: 0;
}
.lang-switcher__option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-switcher__option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}
.lang-switcher__option.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}
.footer-bottom__row .lang-switcher {
  margin-right: 0;
}
@media (max-width: 767px) {
  .lang-switcher {
    margin-right: 8px;
  }
  header .top-nav .lang-switcher {
    order: -1;
  }
  .modal-content .lang-switcher {
    margin: 0 0 16px;
    align-self: flex-start;
  }
}

/* Universal host — only when theme did not print switcher in header */
.lang-switcher-host--float,
.lang-switcher-host--fallback {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
  margin: 0;
}
body.admin-bar .lang-switcher-host--float,
body.admin-bar .lang-switcher-host--fallback {
  top: 46px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .lang-switcher-host--float,
  body.admin-bar .lang-switcher-host--fallback {
    top: 60px;
  }
}
.lang-switcher-host--float .lang-switcher,
.lang-switcher-host--fallback .lang-switcher,
.lang-switcher-host--inline .lang-switcher {
  margin-right: 0;
}
.lang-switcher-host--pending {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 767px) {
  .lang-switcher-host--float,
  .lang-switcher-host--fallback {
    top: 10px;
    right: 10px;
  }
  body.admin-bar .lang-switcher-host--float,
  body.admin-bar .lang-switcher-host--fallback {
    top: 56px;
  }
}
