.nt-switcher {
  position: relative;
  display: inline-block;
  font: 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1d2327;
}

/* Corner and distances come from the settings, as inline styles. */
.nt-switcher--floating {
  position: fixed;
  z-index: 99999;
}

/* Keep top positions clear of the WordPress admin bar. */
body.admin-bar .nt-switcher--top {
  margin-top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .nt-switcher--top {
    margin-top: 46px;
  }
}

.nt-switcher summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  list-style: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  user-select: none;
}

.nt-switcher summary::-webkit-details-marker {
  display: none;
}

.nt-switcher summary:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.nt-switcher ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 190px;
  max-height: 60vh;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}

/* The menu opens away from the screen edge the switcher sits on. */
.nt-switcher--inline ul,
.nt-switcher--top ul {
  top: calc(100% + 8px);
  bottom: auto;
}

.nt-switcher--inline ul,
.nt-switcher--left ul {
  left: 0;
  right: auto;
}

.nt-switcher li {
  margin: 0;
}

.nt-switcher a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: #1d2327;
  text-decoration: none;
}

.nt-switcher a:hover,
.nt-switcher a:focus-visible {
  background: #f0f0f1;
}

.nt-switcher a[aria-current] {
  font-weight: 600;
}

.nt-switcher .nt-flag {
  flex: none;
  width: 20px;
  height: 15px;
  margin: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  object-fit: cover;
}

.nt-switcher .nt-flag--round {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
