.mlm-switcher {
	display: flex;
}

.mlm-switcher__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mlm-switcher--list .mlm-switcher__list {
	flex-direction: column;
	align-items: flex-start;
}

.mlm-switcher__item {
	margin: 0;
	padding: 0;
}

.mlm-switcher__link,
.mlm-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s;
}

.mlm-switcher__item.is-current > .mlm-switcher__link {
	font-weight: 700;
}

.mlm-flag {
	display: inline-block;
	line-height: 1;
	font-size: 1.15em;
}

img.mlm-flag {
	width: 1.25em;
	height: auto;
	vertical-align: middle;
}

/* Dropdown (no JS: uses <details>) */
.mlm-switcher--dropdown {
	position: relative;
}

.mlm-switcher__details {
	position: relative;
}

.mlm-switcher__toggle {
	list-style: none;
	user-select: none;
}

.mlm-switcher__toggle::-webkit-details-marker {
	display: none;
}

.mlm-switcher__toggle::after {
	content: "";
	width: 0.4em;
	height: 0.4em;
	margin-inline-start: 0.25em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform 0.2s;
}

.mlm-switcher__details[open] > .mlm-switcher__toggle::after {
	transform: translateY(25%) rotate(-135deg);
}

.mlm-switcher--dropdown .mlm-switcher__list {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 9999;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	min-width: 100%;
	padding: 0.35em 0;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mlm-switcher--dropdown .mlm-switcher__link {
	display: flex;
	padding: 0.5em 1em;
	white-space: nowrap;
	color: #222;
}

.mlm-switcher--dropdown .mlm-switcher__link:hover,
.mlm-switcher--dropdown .mlm-switcher__link:focus-visible {
	background: rgba(0, 0, 0, 0.05);
}

/* Select */
.mlm-switcher__select {
	cursor: pointer;
}

/* Menu items */
.mlm-menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}
