/* Pantovigar country selector (DE / AT) shown before the search icon. */
/* No display rule here, so the theme's responsive visibility classes (max-xl:hidden) keep working. */
.pv-lang-switch {
  flex: 0 0 auto;
}

.pv-lang-switch__list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-lang-switch__item {
  display: flex;
  align-items: center;
}

.pv-lang-switch__item + .pv-lang-switch__item::before {
  content: "";
  display: block;
  width: 1px;
  height: 14px;
  margin: 0 2px;
  background: rgb(24 52 20 / 0.3);
}

.pv-lang-switch__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 4px;
  color: rgb(24 52 20);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.pv-lang-switch__link:hover {
  color: rgb(85 172 66);
  background-color: rgb(85 172 66 / 0.08);
}

.pv-lang-switch__link:focus-visible {
  outline: 2px solid rgb(85 172 66);
  outline-offset: 1px;
}

.pv-lang-switch__link.is-active {
  color: rgb(85 172 66);
}

.pv-lang-switch__link.is-active::after {
  position: absolute;
  inset-inline: 4px;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  content: "";
}

.pv-lang-switch__flag {
  display: block;
  border-radius: 2px;
  outline: 1px solid rgb(24 52 20 / 0.18);
  outline-offset: -1px;
}

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

/* Give the open search field the full width. */
.pv-lang-switch:has(+ .dca-nav__overlay-content.dca-search-bar--open) {
  display: none;
}
