/* =========================================================
   ELK LANGUAGES
   Header language switcher and translated-content utilities
========================================================= */

.elk-language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 32px;
  margin: 0 0 0 14px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--elk-black, #050505);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.elk-language-switcher[data-elk-language-switcher-auto]:not(.is-mounted) {
  display: none;
}

.elk-language-switcher__link {
  display: inline-flex;
  min-width: 28px;
  min-height: 32px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  opacity: 0.52;
}

.elk-language-switcher__link:hover,
.elk-language-switcher__link:focus-visible {
  border-color: currentColor;
  opacity: 1;
}

.elk-language-switcher__link.is-active {
  color: var(--elk-white, #fff);
  background-color: var(--elk-black, #050505);
  border-color: var(--elk-black, #050505);
  opacity: 1;
}

.elk-language-switcher--inline {
  margin: 0;
}

.elk-language-switcher.is-floating {
  position: fixed;
  z-index: 9997;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 5px;
  background-color: var(--elk-white, #fff);
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.admin-bar .elk-language-switcher.is-floating {
  top: 50px;
}

@media (max-width: 900px) {
  .elk-language-switcher.is-mobile-placement {
    width: 100%;
    min-height: 64px;
    margin: 10px 0 0;
    padding: 14px 18px;
    justify-content: flex-start;
    color: var(--elk-white, #fff);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  .elk-language-switcher.is-mobile-placement .elk-language-switcher__link {
    min-width: 48px;
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.45);
  }

  .elk-language-switcher.is-mobile-placement .elk-language-switcher__link.is-active {
    color: var(--elk-black, #050505);
    background-color: var(--elk-white, #fff);
    border-color: var(--elk-white, #fff);
  }

  .elk-language-switcher.is-floating {
    top: auto;
    right: 14px;
    bottom: 14px;
  }
}
