/**
 * Default styles for the front-end language switcher (.lang template).
 * Override or replace these in AI Translator → «Внешний вид».
 */
.lang {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1.2;
}

.lang__current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 7px 12px;
	border: 1px solid #dadada;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	user-select: none;
	white-space: nowrap;
}

.lang__icon,
.lang .svg-planet-dims {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.lang__list {
	position: absolute;
	z-index: 9999;
	top: calc(100% + 4px);
	left: 0;
	min-width: 100%;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid #dadada;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.lang.is-open .lang__list,
.lang:hover .lang__list,
.lang:focus-within .lang__list {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.lang__list-item {
	margin: 0;
	padding: 0;
}

.lang__list-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

a.lang__list-link:hover,
a.lang__list-link:focus {
	background: #f2f2f2;
}

.lang__list-link--active {
	font-weight: 600;
	opacity: .7;
	cursor: default;
}

.lang__list-link-icon {
	width: 20px;
	height: 15px;
	border-radius: 2px;
	box-shadow: 0 0 1px rgba(0, 0, 0, .35);
	object-fit: cover;
	flex: 0 0 auto;
}
