/* TM i18n language switcher — lives in the header nav cluster. */
.tm-i18n-switcher {
	position: relative;
	display: inline-flex;
	font-size: 0.95rem;
	line-height: 1;
}
.tm-i18n-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.4em 0.7em;
	background: transparent;
	border: 1px solid var(--wp--preset--color--rule, #ddd);
	border-radius: 999px;
	cursor: pointer;
	color: inherit;
	font: inherit;
}
.tm-i18n-toggle:hover {
	background: rgba(0, 0, 0, 0.04);
}
.tm-i18n-code {
	font-weight: 600;
	letter-spacing: 0.02em;
}
.tm-i18n-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 170px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--wp--preset--color--rule, #ddd);
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 1000;
}
.tm-i18n-switcher.is-open .tm-i18n-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.tm-i18n-item a {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em 0.7em;
	border-radius: 8px;
	text-decoration: none;
	color: #222;
	white-space: nowrap;
}
.tm-i18n-item a:hover {
	background: rgba(0, 0, 0, 0.05);
}
.tm-i18n-item.is-active a {
	font-weight: 700;
}
.tm-i18n-flag {
	font-size: 1.1em;
}
