/**
 * Language switcher dropdown PL / EN / 中文.
 * Current language is hidden from the list.
 */
.nmrk-lang-switcher {
  position: relative;
  display: inline-block;
  width: auto;
  min-width: 0;
  text-align: center;
  z-index: 30;
}

.nmrk-lang-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: inherit;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.nmrk-lang-switcher__current i {
  display: inline-block !important;
  font-size: 0.75em;
  line-height: 1;
  color: inherit;
  font-weight: 900;
}

.nmrk-lang-switcher__list {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 8px 8px;
  list-style: none;
  background: #fff;
  box-shadow: rgba(45, 45, 45, 0.2) 0 10px 30px 0;
  box-sizing: border-box;
  text-align: center;
}

.nmrk-lang-switcher:hover .nmrk-lang-switcher__list,
.nmrk-lang-switcher.is-open .nmrk-lang-switcher__list {
  display: block;
}

.nmrk-lang-switcher__list li {
  display: block;
  padding: 4px 0;
}

.nmrk-lang-switcher__list a {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 15px;
  color: #000 !important;
  text-decoration: none;
  white-space: nowrap;
}

.nmrk-lang-switcher__list a:hover {
  opacity: 0.7;
}

header .nmrk-lang-switcher,
.gutenverse-text .nmrk-lang-switcher,
.gutenverse-element .nmrk-lang-switcher {
  overflow: visible;
}

body:has(.nmrk-lang-switcher) .mobile-lang-switch-link {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  .nmrk-lang-switcher {
    text-align: left;
  }

  .nmrk-lang-switcher__list {
    left: 0;
    right: auto;
    transform: none;
  }
}
