/* WEM Language Switcher (WPML) — estilos do widget Elementor */

.wpof-lang-switcher {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.wpof-lang-switcher .wpof-lang-current {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	border: 0.8px solid var(--wpof-border-color, #fff);
	border-radius: 50px;
	padding: 0 16px;
	height: 42px;
	box-sizing: border-box;
	background: transparent;
	color: var(--wpof-text-color, #fff);
	cursor: pointer;
	font-family: 'Soho', sans-serif;
	font-weight: 500;
	font-size: 0.845rem;
	line-height: 1;
}

.wpof-lang-switcher--light .wpof-lang-current {
	border-color: var(--wpof-border-color, #000);
	color: var(--wpof-text-color, #000);
}

.wpof-lang-switcher .wpof-lang-current span {
	color: inherit;
}

.wpof-lang-switcher .wpof-lang-current img,
.wpof-lang-switcher .wpof-lang-dropdown a img {
	height: 20px;
	width: 20px;
	object-fit: cover;
	flex-shrink: 0;
	border-radius: 0 !important;
}

.wpof-lang-switcher .wpof-lang-chevron {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: inherit;
	transition: transform 0.2s ease;
}

.wpof-lang-switcher.is-open .wpof-lang-chevron {
	transform: rotate(180deg);
}

.wpof-lang-switcher .wpof-lang-current:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wpof-lang-switcher .wpof-lang-dropdown {
	display: none;
	position: absolute;
	top: 110%;
	left: 0;
	background: var(--wpof-dropdown-bg, #fff);
	border: none;
	border-radius: 0;
	height: auto;
	padding: 8px;
	list-style: none;
	min-width: 100%;
	z-index: 999;
	margin: 0;
}

.wpof-lang-switcher.is-open .wpof-lang-dropdown {
	display: block;
}

.wpof-lang-switcher .wpof-lang-dropdown li {
	margin: 0;
}

.wpof-lang-switcher .wpof-lang-dropdown a,
.wpof-lang-switcher .wpof-lang-dropdown a:hover,
.wpof-lang-switcher .wpof-lang-dropdown a:focus-visible {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wpof-dropdown-text, #000);
	padding: 0 8px;
	height: 42px;
	box-sizing: border-box;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px;
	font-family: 'Soho', sans-serif;
	font-weight: 500 !important;
	font-size: 0.845rem;
}

.wpof-lang-switcher .wpof-lang-dropdown a span {
	color: inherit;
}

.wpof-lang-switcher .wpof-lang-dropdown a:hover {
	background: var(--wpof-hover-bg, rgba(0, 0, 0, 0.08));
}

.wpof-lang-switcher .wpof-lang-dropdown a:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

/* Separador visual entre os idiomas do WPML e os itens extra do repeater. */
.wpof-lang-switcher .wpof-lang-dropdown li:not(.wpof-lang-dropdown-extra) + li.wpof-lang-dropdown-extra {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
