/* FWP Translate — language dropdown (flag + code + chevron) */

.fwp-translate-switcher {
	--fwp-tr-fg: currentColor;
	--fwp-tr-muted: color-mix(in srgb, currentColor 55%, transparent);
	--fwp-tr-menu-bg: #0f172a;
	--fwp-tr-menu-fg: #f8fafc;
	--fwp-tr-accent: #c4a574;
	display: inline-flex;
	align-items: center;
	padding: 0;
	/* Do NOT set z-index here: as a flex item it stacks above Elementor off-canvas
	   content and paints the flag over the mobile menu logo (esp. iOS Safari). */
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1.2;
	color: inherit;
}

/* Header switcher must not sit on top of the open hamburger / off-canvas drawer. */
body.e-off-canvas__no-scroll .elementor-location-header .fwp-translate-switcher,
body.e-off-canvas__no-scroll .elementor-sticky--active .fwp-translate-switcher,
body.e-off-canvas__no-scroll header .fwp-translate-switcher {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.fwp-translate-switcher--auto {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	display: flex;
	justify-content: center;
	padding: 0.75rem 1rem;
	background: rgb(15 23 42 / 92%);
	backdrop-filter: blur(8px);
	border-top: 1px solid rgb(255 255 255 / 12%);
	color: #f8fafc;
}

.fwp-translate-switcher__dropdown {
	position: relative;
	display: inline-flex;
}

.fwp-translate-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.25rem 0.15rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.fwp-translate-switcher__toggle:hover,
.fwp-translate-switcher__toggle:focus-visible {
	opacity: 0.85;
	outline: none;
}

.fwp-translate-switcher__toggle:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 4px;
}

.fwp-translate-switcher__flag {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	font-style: normal;
}

.fwp-translate-switcher__flag-img {
	display: block;
	width: 20px;
	height: 15px;
	object-fit: contain;
	border-radius: 2px;
}

.fwp-translate-switcher__code {
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fwp-translate-switcher__chevron {
	display: inline-flex;
	align-items: center;
	opacity: 0.85;
	transition: transform 0.2s ease;
}

.fwp-translate-switcher.is-open .fwp-translate-switcher__chevron {
	transform: rotate(180deg);
}

.fwp-translate-switcher__menu {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	min-width: 10.5rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: var(--fwp-tr-menu-bg);
	color: var(--fwp-tr-menu-fg);
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: 0.5rem;
	box-shadow: 0 12px 28px rgb(0 0 0 / 28%);
	z-index: 1000;
}

.fwp-translate-switcher__menu[hidden] {
	display: none;
}

.fwp-translate-switcher--auto .fwp-translate-switcher__menu {
	top: auto;
	bottom: calc(100% + 0.45rem);
}

.fwp-translate-switcher__item {
	margin: 0;
}

.fwp-translate-switcher__link {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.65rem;
	border-radius: 0.35rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.fwp-translate-switcher__link:hover,
.fwp-translate-switcher__link:focus-visible {
	background: rgb(255 255 255 / 10%);
	outline: none;
}

.fwp-translate-switcher__item.is-active .fwp-translate-switcher__link {
	background: color-mix(in srgb, var(--fwp-tr-accent) 28%, transparent);
	font-weight: 600;
}

.fwp-translate-switcher__label {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.85;
	font-size: 0.8125rem;
}
