:root {
	--mlt-bar-bg: #0f172a;
	--mlt-bar-text: #ffffff;
	--mlt-bar-height: 52px;
}

.mlt-topbar {
	position: relative;
	z-index: 99990;
	width: 100%;
	min-height: var(--mlt-bar-height);
	background: var(--mlt-bar-bg);
	color: var(--mlt-bar-text);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(15, 23, 42, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.mlt-topbar.is-sticky {
	position: sticky;
	top: 0;
}

body.admin-bar .mlt-topbar.is-sticky {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .mlt-topbar.is-sticky {
		top: 46px;
	}
}

.mlt-topbar-inner {
	display: flex;
	align-items: center;
	min-height: var(--mlt-bar-height);
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}

.mlt-topbar.mlt-pos-top-left .mlt-topbar-inner {
	justify-content: flex-start;
}

.mlt-topbar.mlt-pos-top-center .mlt-topbar-inner {
	justify-content: center;
}

.mlt-topbar.mlt-pos-top-right .mlt-topbar-inner {
	justify-content: flex-end;
}

html[dir="rtl"] .mlt-topbar.mlt-pos-top-right .mlt-topbar-inner {
	justify-content: flex-start;
}

html[dir="rtl"] .mlt-topbar.mlt-pos-top-left .mlt-topbar-inner {
	justify-content: flex-end;
}

.mlt-switcher {
	position: relative;
	z-index: 2;
}

.mlt-switcher-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 10px 6px 8px;
	border: 1px solid rgba(15, 23, 42, 0.16);
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mlt-topbar .mlt-switcher-toggle {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
}

.mlt-switcher-toggle:hover,
.mlt-switcher-toggle:focus {
	background: #f8fafc;
	border-color: rgba(15, 23, 42, 0.28);
	outline: none;
}

.mlt-topbar .mlt-switcher-toggle:hover,
.mlt-topbar .mlt-switcher-toggle:focus {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.4);
}

.mlt-switcher-toggle:focus-visible {
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.55);
}

.mlt-flag {
	display: block;
	width: 22px;
	height: 16px;
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	flex-shrink: 0;
}

.mlt-switcher-label {
	white-space: nowrap;
}

.mlt-switcher-chevron {
	width: 8px;
	height: 8px;
	margin-left: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0.8;
}

html[dir="rtl"] .mlt-switcher-chevron {
	margin-left: 0;
	margin-right: 2px;
}

.mlt-switcher.is-open .mlt-switcher-chevron {
	transform: rotate(225deg) translateY(-1px);
}

.mlt-switcher-status {
	font-size: 12px;
	font-weight: 500;
	opacity: 0.85;
}

.mlt-switcher.is-busy .mlt-switcher-status {
	display: inline !important;
}

.mlt-switcher-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 240px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #ffffff;
	color: #0f172a;
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

html[dir="rtl"] .mlt-switcher-menu,
.mlt-topbar.mlt-pos-top-left .mlt-switcher-menu {
	right: auto;
	left: 0;
}

.mlt-topbar.mlt-pos-top-center .mlt-switcher-menu {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
}

.mlt-switcher-menu[hidden] {
	display: none;
}

.mlt-switcher-menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlt-switcher-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #0f172a;
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

html[dir="rtl"] .mlt-switcher-option {
	text-align: right;
}

.mlt-switcher-option:hover,
.mlt-switcher-option:focus {
	background: #f1f5f9;
	outline: none;
}

.mlt-switcher-option.is-current {
	background: #e2e8f0;
	font-weight: 600;
}

.mlt-option-native {
	flex: 1;
}

.mlt-option-name {
	font-size: 12px;
	color: #64748b;
}

.mlt-widget .mlt-switcher-toggle {
	border-color: rgba(15, 23, 42, 0.15);
	background: #ffffff;
	color: #0f172a;
}

body.mlt-translating {
	cursor: progress;
}

.mlt-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.12);
}

.mlt-progress span {
	display: block;
	height: 100%;
	width: 40%;
	background: #38bdf8;
	animation: mlt-indeterminate 1.1s ease-in-out infinite;
}

@keyframes mlt-indeterminate {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(350%);
	}
}
