/* The website's language selector: main/views/site/_language_selector.php. */
.vk-lang { position: relative; flex: none; font-family: Manrope, 'Manrope Fallback', system-ui, sans-serif; }

.vk-lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 11px 0 12px;
  border: 1px solid #E2E0D8;
  border-radius: 11px;
  background: #fff;
  color: #1C1B17;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color .16s ease, box-shadow .18s ease;
}
.vk-lang-current::-webkit-details-marker { display: none; }
.vk-lang-current:hover { border-color: #1C1B17; }
.vk-lang-current:focus-visible { outline: 3px solid rgba(28, 27, 23, .8); outline-offset: 2px; }
.vk-lang[open] .vk-lang-current { border-color: #1C1B17; box-shadow: 0 0 0 3px rgba(255, 237, 0, .55); }

.vk-lang-flag {
  display: block;
  flex: none;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(28, 27, 23, .12);
}
.vk-lang-chevron { flex: none; color: #6F6C63; transition: transform .18s ease; }
.vk-lang[open] .vk-lang-chevron { transform: rotate(180deg); }

.vk-lang-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #E2E0D8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(28, 27, 23, .16);
  animation: vk-lang-open .16s cubic-bezier(.2, .8, .25, 1);
}
@keyframes vk-lang-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.vk-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 9px;
  color: #1C1B17;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease;
}
.vk-lang-option:hover, .vk-lang-option:focus-visible { background: #F2F1EB; color: #1C1B17; }
.vk-lang-option:focus-visible { outline: 2px solid #1C1B17; outline-offset: -2px; }
.vk-lang-option.is-current { font-weight: 800; }
.vk-lang-check { flex: none; margin-left: auto; color: #A89C00; }

/* On the narrowest phones the header keeps the flag and gives the name to the list. */
@media (max-width: 380px) {
  .vk-lang-name { display: none; }
  .vk-lang-current { gap: 5px; padding: 0 8px 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .vk-lang-menu { animation: none; }
  .vk-lang-chevron { transition: none; }
}
