.elml-switcher {
	--elml-flag-size: 18px;
	display: flex;
	width: 100%;
	font-size: 0.95em;
	line-height: 1.3;
}

.elml-switcher__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.elml-switcher__item a,
.elml-switcher__summary {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
	color: inherit;
}

.elml-switcher__item.is-current a {
	font-weight: 700;
}

.elml-switcher__emoji {
	display: inline-block;
	font-style: normal;
	font-size: var(--elml-flag-size);
	line-height: 1;
}

.elml-switcher__flag-img {
	width: var(--elml-flag-size);
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 2px;
}

.elml-switcher__code {
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.elml-switcher--dropdown .elml-switcher__details {
	position: relative;
}

.elml-switcher--dropdown .elml-switcher__summary {
	cursor: pointer;
	list-style: none;
}

.elml-switcher--dropdown .elml-switcher__summary::-webkit-details-marker {
	display: none;
}

.elml-switcher--dropdown .elml-switcher__list {
	position: absolute;
	z-index: 20;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.35rem;
	min-width: 10rem;
	margin-top: 0.4rem;
	padding: 0.5rem 0.75rem;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
