/**
 * Nectar WPML Language Switcher — front-end styles.
 *
 * Deliberately minimal. Everything inherits from the theme so the switcher
 * matches the header it sits in without per-client overrides. Colour, weight,
 * and font are NOT set here on purpose.
 */

.nectar-wpml-ls {
	display: flex;
	align-items: center;
	line-height: 1;
}

.nectar-wpml-ls__list {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nectar-wpml-ls__item {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nectar-wpml-ls__item::before,
.nectar-wpml-ls__item::marker {
	content: none;
}

.nectar-wpml-ls__link {
	color: inherit;
	font: inherit;
	text-decoration: none;
	opacity: 0.65;
	transition: opacity 0.15s ease-in-out;
}

.nectar-wpml-ls__link:hover,
.nectar-wpml-ls__link:focus-visible {
	opacity: 1;
}

.nectar-wpml-ls__link--current {
	opacity: 1;
	font-weight: 600;
}

/* Non-clickable current language when "keep current clickable" is off. */
span.nectar-wpml-ls__link {
	cursor: default;
}

.nectar-wpml-ls__separator {
	opacity: 0.4;
	padding: 0 0.15em;
	user-select: none;
}

.nectar-wpml-ls__item.is-untranslated .nectar-wpml-ls__link {
	opacity: 0.4;
}

/* Menu placement: the wrapper li should not inherit menu item padding rules
   that assume a text label. */
.nectar-wpml-ls-menu-item > .nectar-wpml-ls {
	height: 100%;
}

/*
 * Screen reader text.
 *
 * The visible label is a two letter code, which a screen reader announces as
 * an initialism. The full language name is rendered alongside it and hidden
 * visually. Defined locally rather than relying on the theme, since not every
 * theme ships .screen-reader-text.
 */
.nectar-wpml-ls .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.nectar-wpml-ls__link {
		transition: none;
	}
}
