.eml-switcher {
	display: inline-flex;
	max-width: 100%;
	font-family: inherit;
	box-sizing: border-box;
	vertical-align: middle;
}

.eml-switcher--center {
	display: flex;
	justify-content: center;
	width: 100%;
}

.eml-switcher--right {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

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

.eml-switcher__dropdown {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.eml-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 4px 10px 4px 5px;
	border: 1px solid rgba(28, 25, 23, 0.12);
	border-radius: 999px;
	background: #fff;
	color: #1c1917;
	box-shadow: 0 1px 1px rgba(28, 25, 23, 0.05);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	list-style: none;
	cursor: pointer;
	white-space: nowrap;
}

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

.eml-switcher__toggle:focus-visible {
	outline: 2px solid #1c1917;
	outline-offset: 2px;
}

.eml-switcher__chevron {
	width: 7px;
	height: 7px;
	margin-right: 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: 0.7;
}

.eml-switcher__dropdown[open] .eml-switcher__chevron {
	transform: translateY(1px) rotate(225deg);
}

.eml-switcher__list {
	display: none;
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	min-width: 100%;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(28, 25, 23, 0.12);
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(28, 25, 23, 0.12);
}

.eml-switcher__dropdown[open] > .eml-switcher__list {
	display: flex;
}

.eml-switcher--right .eml-switcher__list {
	left: auto;
	right: 0;
}

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

.eml-switcher__item a {
	position: relative;
	width: 100%;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 34px;
	padding: 4px 12px 4px 5px;
	border: 1px solid rgba(28, 25, 23, 0.12);
	border-radius: 999px;
	background: #fff;
	color: #1c1917;
	box-shadow: 0 1px 1px rgba(28, 25, 23, 0.05);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eml-switcher__item a:hover {
	border-color: rgba(28, 25, 23, 0.38);
}

.eml-switcher__item a:focus-visible {
	outline: 2px solid #1c1917;
	outline-offset: 2px;
}

.eml-switcher__item.is-active a,
.eml-switcher__item.current-lang a {
	background: #1c1917;
	border-color: #1c1917;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 0 0 2px #fff;
}

.eml-switcher__flag {
	display: block;
	width: 22px;
	height: 15px;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
	flex: none;
}

.eml-switcher__flag svg,
.eml-switcher__flag img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eml-switcher--code .eml-switcher__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.eml-switcher--flags .eml-switcher__item a {
	padding: 3px;
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

.eml-switcher--flags .eml-switcher__item a:hover {
	border-color: transparent;
}

.eml-switcher--flags .eml-switcher__flag {
	width: 28px;
	height: 19px;
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eml-switcher--flags .eml-switcher__item a:hover .eml-switcher__flag {
	transform: translateY(-1px);
}

.eml-switcher--flags .eml-switcher__item.is-active a,
.eml-switcher--flags .eml-switcher__item.current-lang a {
	background: transparent;
	border-color: transparent;
	color: inherit;
	box-shadow: none;
}

.eml-switcher--flags .eml-switcher__item.is-active .eml-switcher__flag,
.eml-switcher--flags .eml-switcher__item.current-lang .eml-switcher__flag {
	box-shadow: 0 0 0 2px currentColor;
}

.eml-switcher .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.eml-switcher__notice {
	margin: 0;
	padding: 8px 14px;
	border: 1px dashed rgba(28, 25, 23, 0.35);
	border-radius: 999px;
	color: #1c1917;
	font-size: 13px;
}
