.header-language.tm-lang {
	position: relative;
	display: flex;
	align-items: center;
}

.tm-lang__toggle {
	display: grid;
	place-items: center;
}

.tm-lang__current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
}

.tm-lang__code {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.tm-lang__flag {
	display: block;
	width: 18px;
	height: auto;
	border-radius: 2px;
	object-fit: cover;
}

.tm-lang__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 196px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d5e1f8;
	border-radius: 10px;
	box-shadow: 0 18px 45px rgba(44, 104, 228, 0.12);
	z-index: 1002;
}

.tm-lang.is-open .tm-lang__menu {
	display: block;
}

.tm-lang__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	color: #101820;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.tm-lang__abbr {
	flex: 0 0 auto;
	min-width: 2.2em;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #2c68e4;
	text-align: center;
}

.tm-lang__meta {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
	line-height: 1.25;
}

.tm-lang__locale {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #6b7280;
}

.tm-lang__name-alt {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
}

.tm-lang__link:hover,
.tm-lang__item.is-active .tm-lang__link {
	background: #f3f7fd;
	color: #2c68e4;
}

.tm-lang--plugin .trp-language-switcher,
.tm-lang--plugin .trp-ls-shortcode-current-language {
	margin: 0;
}

.tm-lang--plugin .trp-ls-shortcode-current-language {
	display: flex;
	align-items: center;
}

.tm-lang--plugin .trp-ls-shortcode-current-language > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: none;
}

.tm-lang--plugin .trp-ls-shortcode-current-language img {
	width: 18px;
	height: auto;
}