.ds-lang-switcher {
	position: relative;
	display: inline-flex;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
}

.ds-lang-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 12px 6px 10px;
	border: 1.5px solid #1a3a5c;
	border-radius: 999px;
	background: #fff;
	color: #1a3a5c;
	cursor: pointer;
	font: inherit;
	white-space: nowrap;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-lang-switcher__toggle:hover {
	border-color: #0f2840;
	box-shadow: 0 2px 8px rgba(26, 58, 92, 0.12);
}

.ds-lang-switcher__toggle:focus-visible {
	outline: 2px solid #1a3a5c;
	outline-offset: 3px;
}

.ds-lang-switcher.is-open .ds-lang-switcher__toggle {
	border-color: #0f2840;
	box-shadow: 0 2px 8px rgba(26, 58, 92, 0.12);
}

.ds-lang-switcher__flag {
	display: block;
	width: 23px;
	height: 15px;
	object-fit: cover;
	border-radius: 0;
	flex-shrink: 0;
}

.ds-lang-switcher__label {
	font-weight: 500;
	line-height: 1;
}

.ds-lang-switcher__chevron {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.ds-lang-switcher.is-open .ds-lang-switcher__chevron {
	transform: rotate(180deg);
}

.ds-lang-switcher__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 9999;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid rgba(26, 58, 92, 0.12);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(26, 58, 92, 0.14);
}

.ds-lang-switcher__menu[hidden] {
	display: none;
}

.ds-lang-switcher__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	color: #1a3a5c;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.ds-lang-switcher__option:hover,
.ds-lang-switcher__option:focus-visible {
	background: rgba(26, 58, 92, 0.06);
	outline: none;
}

.ds-lang-switcher__option.is-active {
	background: rgba(26, 58, 92, 0.08);
	font-weight: 600;
}

.ds-lang-switcher__name {
	flex: 1;
}

.ds-lang-switcher__check,
.ds-lang-switcher__external {
	flex-shrink: 0;
	color: #1a3a5c;
	opacity: 0.75;
}

.ds-lang-switcher__option.is-active .ds-lang-switcher__check {
	opacity: 1;
}

@media (max-width: 767px) {
	.ds-lang-switcher__toggle {
		min-height: 40px;
	}

	.ds-lang-switcher__option {
		min-height: 44px;
		padding-top: 10px;
		padding-bottom: 10px;
	}
}
