/* Language switch: segmented control with flag (woodofy_pll_language_switch()).
   Colors come from custom properties; set them on .lang-switch or any ancestor:
   --woodofy-pll-switch-color, --woodofy-pll-switch-hover-bg,
   --woodofy-pll-switch-active-bg, --woodofy-pll-switch-active-color. */
.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: var(--woodofy-pll-switch-color, inherit);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
}

.lang-switch__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.lang-switch__item:hover,
.lang-switch__item:focus-visible {
	color: inherit;
	background-color: var(--woodofy-pll-switch-hover-bg, rgba(0, 0, 0, .08));
}

.lang-switch__item.is-active,
.lang-switch__item.is-active:hover {
	background-color: var(--woodofy-pll-switch-active-bg, #1d1d1b);
	color: var(--woodofy-pll-switch-active-color, #ffffff);
}

.lang-switch__flag {
	flex-shrink: 0;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
