/* WRS international language switcher — Phase 3 */
.wrs-lang-switcher {
  position: relative;
  font-family: Poppins, system-ui, sans-serif;
}

.wrs-lang-switcher--header {
  display: none;
  align-self: center;
  margin-right: 0.75rem;
  z-index: 1200;
}

.wrs-lang-switcher--mobile {
  display: block;
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(21, 44, 68, 0.12);
  margin-bottom: 0.5rem;
}

.wrs-lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(21, 44, 68, 0.2);
  border-radius: 4px;
  background: #fff;
  color: #152c44;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}

.wrs-lang-switcher__btn:hover {
  border-color: #0479af;
}

.wrs-lang-switcher__btn:focus-visible,
.wrs-lang-switcher__link:focus-visible {
  outline: 2px solid #0479af;
  outline-offset: 2px;
}

.wrs-lang-switcher__caret {
  font-size: 0.65rem;
  opacity: 0.7;
}

.wrs-lang-switcher__list {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(21, 44, 68, 0.15);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(21, 44, 68, 0.12);
  z-index: 1300;
}

.wrs-lang-switcher__list[hidden] {
  display: none;
}

.wrs-lang-switcher__list li {
  margin: 0;
}

.wrs-lang-switcher__list a {
  display: block;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: #152c44;
  text-decoration: none;
  font-size: 0.875rem;
}

.wrs-lang-switcher__list a:hover {
  background: rgba(4, 121, 175, 0.08);
}

.wrs-lang-switcher__list a[aria-current="page"] {
  font-weight: 600;
  background: rgba(4, 121, 175, 0.1);
}

.wrs-lang-switcher--footer {
  margin-top: 0.75rem;
}

.wrs-lang-switcher__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrs-lang-switcher__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wrs-lang-switcher__link--current,
.wrs-lang-switcher__link[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
}

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

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

@media (min-width: 1024px) {
  .wrs-lang-switcher--header.wrs-lang-switcher--desktop {
    display: block;
  }

  .wrs-lang-switcher--mobile {
    display: none;
  }
}
