/* VEFtranslate language switcher. Sizes are fluid, colors come from the theme. */
:root {
	--vefwt-font-size-normal: clamp(0.875rem, 0.79rem + 0.39vw, 1.1rem);
}

.vefwt-switcher {
	font-size: var(--wp--preset--font-size--normal, var(--vefwt-font-size-normal));
	line-height: 1.4;
}

.vefwt-switcher__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vefwt-switcher__item a {
	color: inherit;
	text-decoration: none;
}

.vefwt-switcher__item a:hover,
.vefwt-switcher__item a:focus-visible {
	text-decoration: underline;
}

.vefwt-switcher__item.is-current a {
	font-weight: 700;
}

.vefwt-switcher--dropdown {
	position: relative;
	display: inline-block;
}

.vefwt-switcher__details > summary {
	cursor: pointer;
	list-style: none;
	padding: 0.25rem 0.5rem;
	border: 1px solid currentcolor;
}

.vefwt-switcher__details > summary::-webkit-details-marker {
	display: none;
}

.vefwt-switcher--dropdown .vefwt-switcher__list {
	position: absolute;
	z-index: 9999;
	inset-inline-start: 0;
	flex-direction: column;
	min-width: 100%;
	padding: 0.5rem;
	background: Canvas;
	color: CanvasText;
	border: 1px solid currentcolor;
}

.vefwt-floating {
	position: fixed;
	z-index: 9999;
}

.vefwt-floating--bottom-right {
	inset-block-end: 1rem;
	inset-inline-end: 1rem;
}

.vefwt-floating--bottom-left {
	inset-block-end: 1rem;
	inset-inline-start: 1rem;
}

.vefwt-floating--top-right {
	inset-block-start: 1rem;
	inset-inline-end: 1rem;
}

.vefwt-floating--top-left {
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
}

.vefwt-floating .vefwt-switcher__details > summary {
	background: Canvas;
	color: CanvasText;
}
