/* GTH Multilingual: deliberately scoped so Elementor and Royal Addons keep control. */
.gthml-switcher {
	--gthml-x: 0px;
	--gthml-y: 0px;
	--gthml-scale: 1;
	--gthml-z: 10320;
	box-sizing: border-box;
	color: inherit;
	display: inline-block;
	font: inherit;
	line-height: 1;
	position: relative;
	vertical-align: middle;
}

.gthml-switcher *,
.gthml-switcher *::before,
.gthml-switcher *::after {
	box-sizing: border-box;
}

.gthml-switcher__button,
.gthml-switcher__inline-list a {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(23, 55, 70, 0.2);
	border-radius: 999px;
	color: #173746;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	gap: 7px;
	justify-content: center;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0;
	min-height: 34px;
	padding: 6px 10px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.gthml-switcher__button:hover,
.gthml-switcher__inline-list a:hover,
.gthml-switcher__button[aria-expanded="true"] {
	background: #f1f7f8;
	border-color: rgba(23, 55, 70, 0.42);
	color: #173746;
}

.gthml-switcher__button:focus-visible,
.gthml-switcher a:focus-visible {
	border-radius: 6px;
	outline: 3px solid #145a78;
	outline-offset: 3px;
}

.gthml-switcher__label {
	white-space: nowrap;
}

.gthml-flag {
	align-items: center;
	background: #edf2f4;
	color: #173746;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 9px;
	font-weight: 800;
	justify-content: center;
	overflow: hidden;
	text-align: center;
}

.gthml-flag--circle {
	border-radius: 50%;
	height: 20px;
	width: 20px;
}

.gthml-flag--rectangle {
	border-radius: 2px;
	height: 14px;
	width: 21px;
}

.gthml-flag svg,
.gthml-flag img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

img.gthml-flag {
	display: block;
	object-fit: contain;
}

.gthml-flag--fallback {
	background: #edf2f4;
}

.gthml-tr-only-link {
	display: none !important;
}

.gthml-switcher__chevron {
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	display: inline-block;
	height: 6px;
	margin: -3px 1px 0 1px;
	transform: rotate(45deg);
	transition: transform 160ms ease;
	width: 6px;
}

.gthml-switcher.is-open .gthml-switcher__chevron {
	margin-top: 3px;
	transform: rotate(225deg);
}

.gthml-switcher__menu {
	background: #fff;
	border: 1px solid rgba(23, 55, 70, 0.18);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(12, 46, 60, 0.16);
	list-style: none;
	margin: 8px 0 0;
	min-width: 120px;
	padding: 5px;
	position: absolute;
	right: 0;
	top: 100%;
	width: max-content;
	z-index: calc(var(--gthml-z) + 1);
}

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

.gthml-switcher__item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gthml-switcher__menu a {
	align-items: center;
	border-radius: 6px;
	color: #173746;
	display: flex;
	font-size: 12px;
	font-weight: 700;
	gap: 8px;
	letter-spacing: 0.04em;
	min-height: 34px;
	padding: 7px 9px;
	text-decoration: none;
	text-transform: uppercase;
}

.gthml-switcher__menu a:hover,
.gthml-switcher__menu a:focus-visible {
	background: #edf5f6;
	color: #173746;
}

.gthml-switcher--compact .gthml-switcher__button {
	gap: 5px;
	min-height: 30px;
	padding: 5px 8px;
}

.gthml-switcher--compact .gthml-switcher__label {
	font-size: 10px;
}

.gthml-switcher--pill .gthml-switcher__button {
	min-height: 38px;
	padding-inline: 12px;
}

.gthml-switcher--inline {
	max-width: 100%;
}

/* Manual shortcode/widget instances retain normal flow at their defaults. */
.gthml-switcher--placement-manual {
	position: relative;
	transform: translate(var(--gthml-x), var(--gthml-y)) scale(var(--gthml-scale));
	transform-origin: left center;
	z-index: var(--gthml-z);
}

.gthml-switcher__inline-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gthml-switcher__inline-list .is-active a {
	background: #173746;
	border-color: #173746;
	color: #fff;
}

/* Automatic zones are deliberately separate from manually placed widgets. */
.gthml-auto-slot {
	display: contents;
}

.gthml-auto-slot--header_desktop .gthml-switcher--automatic {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translate(var(--gthml-x), calc(-50% + var(--gthml-y))) scale(var(--gthml-scale));
	transform-origin: right center;
	z-index: var(--gthml-z);
}

.gthml-auto-slot--mobile_menu {
	margin: 0;
	padding: 0;
}

.gthml-auto-slot--mobile_menu .gthml-switcher--automatic {
	display: flex;
	margin: 8px 0 12px;
	position: relative;
	transform: translate(var(--gthml-x), var(--gthml-y)) scale(var(--gthml-scale));
	transform-origin: left center;
	z-index: var(--gthml-z);
}

.gthml-auto-slot--footer .gthml-switcher--automatic {
	display: inline-block;
	margin: 14px 0 0;
	position: relative;
	transform: translate(var(--gthml-x), var(--gthml-y)) scale(var(--gthml-scale));
	transform-origin: left center;
	z-index: var(--gthml-z);
}

.gthml-auto-slot--floating .gthml-switcher--automatic {
	bottom: 24px;
	position: fixed;
	right: 24px;
	transform: translate(var(--gthml-x), var(--gthml-y)) scale(var(--gthml-scale));
	transform-origin: right bottom;
	z-index: var(--gthml-z);
}

.gthml-switcher[data-gthml-hidden="true"] {
	display: none !important;
}

@media (max-width: 1024px) {
	.gthml-auto-slot--floating .gthml-switcher--automatic {
		bottom: 16px;
		right: 16px;
	}
}

@media (max-width: 600px) {
	.gthml-switcher__button,
	.gthml-switcher__inline-list a {
		font-size: 11px;
	}

	.gthml-switcher__menu {
		max-width: calc(100vw - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gthml-switcher *,
	.gthml-switcher *::before,
	.gthml-switcher *::after {
		transition-duration: 0.01ms !important;
	}
}
