.ni-language-switcher-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.6em;
}

.ni-language-switcher {
  position: relative;
  display: inline-block;
  font-size: 0.9em;
}

.ni-language-switcher > summary {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.25em 0.55em;
  border: 1px solid rgba(0, 89, 159, 0.4);
  border-radius: 3px;
  color: #00599f;
  background: #fff;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}

.ni-language-switcher > summary::-webkit-details-marker {
  display: none;
}

.ni-language-switcher > summary::marker {
  content: "";
}

.ni-language-switcher-caret::before {
  content: "\25BE";
  display: inline-block;
  transition: transform 0.15s ease;
}

.ni-language-switcher[open] .ni-language-switcher-caret::before {
  transform: rotate(180deg);
}

.ni-language-switcher-popup {
  display: none;
  position: absolute;
  top: calc(100% + 0.25em);
  right: 0;
  z-index: 1000;
  min-width: 7em;
  margin: 0;
  padding: 0.2em 0;
  border: 1px solid rgba(0, 89, 159, 0.4);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  list-style: none;
}

.ni-language-switcher[open] > .ni-language-switcher-popup {
  display: block;
}

.ni-language-switcher-popup > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ni-language-switcher-popup > li > a {
  display: block;
  padding: 0.35em 0.7em;
  color: #00599f;
  text-decoration: none;
  white-space: nowrap;
}

.ni-language-switcher-popup > li > a:hover,
.ni-language-switcher-popup > li > a:focus {
  background: #f2f7fb;
  text-decoration: underline;
}

.ni-language-switcher-popup > li > a[aria-current="page"] {
  font-weight: 700;
}

.ni-language-switcher > summary:focus-visible {
  outline: 2px solid #00599f;
  outline-offset: 2px;
}
