/* Выпадающий список языков на сайте */

.lang-switcher {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.lang-switcher .lang-select {
  min-width: 9rem;
  max-width: 14rem;
  padding: 0.35rem 1.75rem 0.35rem 0.65rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #1a1a1a !important;
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.85rem;
}

.lang-switcher .lang-select:focus {
  outline: 2px solid rgba(0, 0, 0, 0.15);
  outline-offset: 2px;
}

.navbar-dark .lang-switcher .lang-select,
.bg-dark .lang-switcher .lang-select {
  color: #111 !important;
  background-color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

@media (max-width: 991px) {
  .lang-switcher {
    margin: 0.5rem 0 1rem;
    padding-left: 0.5rem;
  }

  .lang-switcher .lang-select {
    min-width: 100%;
    max-width: 100%;
  }
}

/* WordPress / Astra header menu */
.main-header-menu .lang-switcher {
  display: flex;
  align-items: center;
  list-style: none;
  margin-left: 0.75rem;
}

.main-header-menu .lang-switcher .lang-select {
  min-width: 8.5rem;
  font-size: 0.8rem !important;
}

/* Astra/menu themes sometimes add their own chevron on top of native select */
.main-header-menu .lang-switcher::before,
.main-header-menu .lang-switcher::after,
.main-header-menu .lang-switcher .lang-select::before,
.main-header-menu .lang-switcher .lang-select::after {
  content: none !important;
  display: none !important;
}

.main-header-menu .menu-text {
  color: inherit;
}
