/* Google Translate mount point: visually hidden but script-accessible. */
.lfls-google-root {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/*
 * Prevent Google’s optional browser UI from overlaying the website. Google
 * also applies a 40px top offset to translated pages for its hidden banner.
 * That offset is the white strip visible below the header after switching
 * from English. The more-specific selectors below preserve the original site
 * flow while leaving the translation engine itself intact.
 */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
/*
 * Google Translate can create a temporary 40px banner offset. The early
 * JavaScript guard removes the offset and, where a fixed/sticky header still
 * leaves a measured Google-sized white strip, compensates the first content
 * container only for the translated document.
 */
html.lfls-translation-active,
html:has(body.translated-ltr),
html:has(body.translated-rtl) {
	top: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}
html.lfls-translation-active body.translated-ltr,
html.lfls-translation-active body.translated-rtl,
html body.translated-ltr,
html body.translated-rtl {
	top: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}
.goog-text-highlight {
	background: transparent !important;
	box-shadow: none !important;
}

.lfls-switcher {
	--lfls-surface: #ffffff;
	--lfls-text: #182230;
	--lfls-muted: #5d6775;
	--lfls-border: rgba(24, 34, 48, 0.13);
	--lfls-accent: #1667c9;
	--lfls-shadow: 0 16px 34px rgba(24, 34, 48, 0.18);
	position: relative;
	z-index: 99990;
	box-sizing: border-box;
	font: inherit;
}
.lfls-switcher *,
.lfls-switcher *::before,
.lfls-switcher *::after {
	box-sizing: border-box;
}
.lfls-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: #182230;
	color: #ffffff;
	cursor: pointer;
	line-height: 1;
	box-shadow: 0 5px 15px rgba(24, 34, 48, 0.24);
	transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.lfls-trigger:hover,
.lfls-trigger:focus-visible {
	background: var(--lfls-accent);
	box-shadow: 0 7px 20px rgba(22, 103, 201, 0.31);
	outline: none;
}
.lfls-trigger:hover {
	transform: translateY(-1px);
}
.lfls-globe-icon {
	font-size: 20px;
}
.lfls-panel {
	display: none;
	position: absolute;
	min-width: 168px;
	max-width: min(300px, calc(100vw - 32px));
	padding: 6px;
	border: 1px solid var(--lfls-border);
	border-radius: 12px;
	background: var(--lfls-surface);
	box-shadow: var(--lfls-shadow);
}
.lfls-panel.is-open {
	display: block;
	animation: lfls-panel-enter 150ms ease-out;
}
@keyframes lfls-panel-enter {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
.lfls-lang-option {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	min-height: 38px;
	padding: 7px 9px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--lfls-text);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	text-align: start;
	line-height: 1.3;
}
.lfls-lang-option:hover,
.lfls-lang-option:focus-visible {
	background: rgba(22, 103, 201, 0.09);
	color: var(--lfls-accent);
	outline: none;
}
.lfls-lang-option.is-current {
	background: rgba(22, 103, 201, 0.12);
	color: var(--lfls-accent);
	font-weight: 700;
}
.lfls-flag {
	display: inline-block;
	flex: 0 0 auto;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 20px;
	line-height: 1;
}
.lfls-lang-label {
	white-space: nowrap;
}

/* Direct inline controls: 🇺🇸 EN | 🇫🇷 FR. */
.lfls-inline-switcher {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	max-width: 100%;
}
.lfls-context-auto {
	display: none;
}
.lfls-context-auto.lfls-is-mounted {
	display: inline-flex;
}
.lfls-inline-list {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	max-width: 100%;
	min-width: 0;
	line-height: 1;
	white-space: nowrap;
}
.lfls-inline-option {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 2px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.lfls-inline-option:hover,
.lfls-inline-option:focus-visible,
.lfls-inline-option.is-current {
	color: var(--lfls-accent);
	outline: none;
}
.lfls-inline-option:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}
.lfls-inline-option .lfls-flag {
	font-size: 16px;
}
.lfls-inline-label {
	display: inline-block;
}
.lfls-inline-separator {
	display: inline-block;
	margin: 0 8px;
	color: currentColor;
	opacity: 0.55;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	user-select: none;
}

/* Floating placement. */
.lfls-context-floating {
	position: fixed;
}
.lfls-pos-bottom-right { right: 20px; bottom: 20px; }
.lfls-pos-bottom-left  { left: 20px; bottom: 20px; }
.lfls-pos-top-right    { right: 20px; top: 20px; }
.lfls-pos-top-left     { left: 20px; top: 20px; }
.lfls-pos-bottom-right .lfls-panel,
.lfls-pos-top-right .lfls-panel { right: 0; }
.lfls-pos-bottom-left .lfls-panel,
.lfls-pos-top-left .lfls-panel { left: 0; }
.lfls-pos-bottom-right .lfls-panel,
.lfls-pos-bottom-left .lfls-panel { bottom: calc(100% + 10px); }
.lfls-pos-top-right .lfls-panel,
.lfls-pos-top-left .lfls-panel { top: calc(100% + 10px); }


/*
 * Floating panels must never inherit a theme's generic dropdown positioning.
 * A number of themes style buttons/menus with `top` rules, which can make a
 * bottom-corner panel open underneath the browser viewport. Keep the floating
 * panel in the viewport coordinate system; JavaScript refines this position
 * when it opens so it also remains visible on small screens and at high zoom.
 */
.lfls-context-floating .lfls-panel {
	position: fixed !important;
	z-index: 2147483000 !important;
}
.lfls-context-floating.lfls-pos-bottom-right .lfls-panel {
	top: auto !important;
	right: 20px !important;
	bottom: 76px !important;
	left: auto !important;
}
.lfls-context-floating.lfls-pos-bottom-left .lfls-panel {
	top: auto !important;
	right: auto !important;
	bottom: 76px !important;
	left: 20px !important;
}
.lfls-context-floating.lfls-pos-top-right .lfls-panel {
	top: 76px !important;
	right: 20px !important;
	bottom: auto !important;
	left: auto !important;
}
.lfls-context-floating.lfls-pos-top-left .lfls-panel {
	top: 76px !important;
	right: auto !important;
	bottom: auto !important;
	left: 20px !important;
}

/* Classic navigation-menu placement. */
li.lfls-context-menu {
	display: inline-flex;
	align-items: center;
	list-style: none;
	margin: 0 0 0 8px;
}
.lfls-context-menu .lfls-trigger {
	width: 38px;
	height: 38px;
}
.lfls-context-menu .lfls-globe-icon {
	font-size: 17px;
}
.lfls-context-menu .lfls-panel {
	top: calc(100% + 8px);
	right: 0;
}

/* The shortcode uses normal flow and is suitable for builder templates. */
.lfls-context-shortcode {
	display: inline-flex;
	vertical-align: middle;
}
.lfls-context-shortcode .lfls-panel {
	top: calc(100% + 8px);
	inset-inline-start: 0;
}

/* Compact picker. */
.lfls-open-row .lfls-panel {
	min-width: auto;
	max-width: min(350px, calc(100vw - 32px));
}
.lfls-open-row .lfls-panel.is-open {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
}
.lfls-open-row .lfls-lang-option {
	width: auto;
	min-height: 34px;
	padding: 6px;
}
.lfls-open-row .lfls-lang-label {
	margin-inline-end: 2px;
}

@media (max-width: 640px) {
	.lfls-inline-list {
		white-space: normal;
		flex-wrap: wrap;
		row-gap: 6px;
	}
	.lfls-inline-separator {
		margin: 0 6px;
	}
}

@media (max-width: 480px) {
	.lfls-pos-bottom-right { right: 14px; bottom: 14px; }
	.lfls-pos-bottom-left  { left: 14px; bottom: 14px; }
	.lfls-pos-top-right    { right: 14px; top: 14px; }
	.lfls-pos-top-left     { left: 14px; top: 14px; }
	.lfls-context-floating.lfls-pos-bottom-right .lfls-panel { right: 14px !important; bottom: 70px !important; }
	.lfls-context-floating.lfls-pos-bottom-left .lfls-panel  { left: 14px !important; bottom: 70px !important; }
	.lfls-context-floating.lfls-pos-top-right .lfls-panel    { right: 14px !important; top: 70px !important; }
	.lfls-context-floating.lfls-pos-top-left .lfls-panel     { left: 14px !important; top: 70px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.lfls-trigger,
	.lfls-panel.is-open {
		transition: none;
		animation: none;
	}
}
