/* Manual Translator – Language Switcher. Kept minimal so Elementor style controls win. */

.mt-switcher {
	--mt-flag-w: 20px;
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	line-height: 1.2;
	text-align: left;
	vertical-align: middle;
}

.mt-switcher .mt-lang-btn,
.mt-switcher .mt-lang-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.mt-switcher .mt-lang-btn:focus-visible,
.mt-switcher .mt-lang-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.mt-switcher .mt-lang-btn.is-active {
	font-weight: 600;
}

.mt-switcher .mt-globe {
	flex: none;
}

/* Flags */
.mt-switcher .mt-flag {
	display: block;
	flex: none;
	width: var(--mt-flag-w);
	height: calc(var(--mt-flag-w) * .75);
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.mt-switcher.mt-flag-rounded .mt-flag {
	border-radius: 3px;
}

.mt-switcher.mt-flag-circle .mt-flag {
	height: var(--mt-flag-w);
	border-radius: 50%;
}

.mt-switcher .mt-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.mt-switcher .mt-inline-icon {
	display: inline-flex;
}

/* Dropdown: native <details>, works without JavaScript */
.mt-switcher .mt-dropdown {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
}

.mt-switcher .mt-dropdown > summary {
	list-style: none;
	user-select: none;
}

.mt-switcher .mt-dropdown > summary::-webkit-details-marker {
	display: none;
}

.mt-switcher .mt-dropdown > summary::marker {
	content: "";
}

.mt-switcher .mt-caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform .15s ease;
}

.mt-switcher .mt-dropdown[open] .mt-caret {
	transform: rotate(180deg);
}

.mt-switcher .mt-lang-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 1000;
	min-width: 100%;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	color: #1a1a1a;
	border-radius: 6px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
	text-align: left;
}

/* Invisible bridge so the hover dropdown doesn't close in the 4px gap. */
.mt-switcher.mt-open-hover .mt-lang-list::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -6px;
	height: 6px;
}

.mt-open-right .mt-switcher .mt-lang-list {
	left: auto;
	right: 0;
}

.mt-switcher .mt-lang-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mt-switcher .mt-lang-list li::before,
.mt-switcher .mt-lang-list li::marker {
	content: none;
}

.mt-switcher .mt-lang-list .mt-lang-btn {
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.mt-switcher .mt-lang-list .mt-lang-btn:hover {
	background-color: rgba(0, 0, 0, .06);
}

.mt-switcher .mt-lang-btn.mt-unavailable {
	opacity: .55;
}

@media (prefers-reduced-motion: reduce) {
	.mt-switcher * {
		transition: none !important;
	}
}
