/* Переключатель языков [bvml_switcher]: выпадающий список с флагами. Шрифт и цвет — от меню темы. */
.bvml-switcher { font: inherit; color: inherit; line-height: 1; }
.bvml-switcher .bvml-flag { display: inline-block; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset; vertical-align: -1px; flex: none; }
.bvml-switcher .bvml-name { white-space: nowrap; }

/* Выпадающий */
.bvml-switcher.bvml-menu { position: relative; display: inline-block; vertical-align: middle; }
.bvml-switcher .bvml-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0; padding: 6px 4px; border: 0; background: none;
	font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
	cursor: pointer; line-height: 1.2;
}
.bvml-switcher .bvml-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.bvml-switcher .bvml-caret {
	width: 7px; height: 7px; margin-left: -2px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .7;
}
.bvml-switcher.bvml-open .bvml-caret, .bvml-switcher.bvml-menu:hover .bvml-caret { transform: translateY(1px) rotate(225deg); }
.bvml-switcher .bvml-drop {
	position: absolute; top: 100%; left: 0; z-index: 1001;
	min-width: 170px; margin: 0; padding: 6px 0; list-style: none;
	background: #fff; color: #1d2327; border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .05);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.bvml-switcher.bvml-menu:hover .bvml-drop,
.bvml-switcher.bvml-menu.bvml-open .bvml-drop,
.bvml-switcher.bvml-menu:focus-within .bvml-drop {
	opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.bvml-switcher .bvml-drop li { margin: 0; padding: 0; list-style: none; }
.bvml-switcher .bvml-drop a {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 14px; text-decoration: none; color: inherit; font-size: 14px; font-weight: 400; text-transform: none;
	white-space: nowrap;
}
.bvml-switcher .bvml-drop a:hover, .bvml-switcher .bvml-drop a:focus-visible { background: #f3f5f3; color: inherit; outline: none; }
/* В правой части шапки список не должен вылезать за экран */
.bvml-switcher.bvml-menu.bvml-right .bvml-drop { left: auto; right: 0; }
@media (max-width: 767px) {
	.bvml-switcher .bvml-drop { min-width: 150px; }
}

/* Простой список (style="list") */
.bvml-switcher.bvml-list { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 0; padding: 0; list-style: none; }
.bvml-switcher.bvml-list .bvml-item { margin: 0; padding: 0; list-style: none; }
.bvml-switcher.bvml-list .bvml-item a, .bvml-switcher.bvml-list .bvml-item span { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.bvml-switcher.bvml-list .bvml-current span { font-weight: 600; cursor: default; }
