.sbm-language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-family: inherit;
	line-height: 1;
}

.sbm-language-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 47px;
	min-height: 31px;
	padding: 6px 8px;
	border: 1px solid #d9e2e8;
	border-radius: 5px;
	background: #ffffff;
	color: #123448;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sbm-language-flag {
	display: block;
	width: 18px;
	height: 13px;
	border: 1px solid rgba(18, 52, 72, 0.14);
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 1px 2px rgba(18, 52, 72, 0.16);
}

.sbm-language-code {
	display: block;
	line-height: 1;
}

.sbm-language-link:hover,
.sbm-language-link:focus-visible {
	border-color: #ff9926;
	background: #fff7ed;
	color: #123448;
	transform: translateY(-1px);
}

.sbm-language-link.is-active {
	border-color: #ff9926;
	background: #ff9926;
	color: #ffffff;
}

.sbm-language-menu {
	position: relative;
	width: 156px;
	color: #123448;
	font-size: 12px;
	line-height: 1.2;
}

.sbm-language-menu summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid rgba(18, 52, 72, 0.13);
	border-radius: 6px;
	background: #ffffff;
	color: #123448;
	cursor: pointer;
	box-sizing: border-box;
	list-style: none;
}

.sbm-language-menu summary::-webkit-details-marker {
	display: none;
}

.sbm-language-menu summary:focus-visible {
	outline: 2px solid #ff9926;
	outline-offset: 2px;
}

.sbm-current-language,
.sbm-language-option {
	display: flex;
	align-items: center;
	gap: 7px;
}

.sbm-dropdown-chevron {
	width: 7px;
	height: 7px;
	border-right: 2px solid #123448;
	border-bottom: 2px solid #123448;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.sbm-language-menu[open] .sbm-dropdown-chevron {
	transform: rotate(225deg) translate(-1px, -1px);
}

.sbm-language-options {
	position: absolute;
	right: 0;
	bottom: calc(100% + 6px);
	z-index: 2;
	width: 100%;
	padding: 4px;
	border: 1px solid rgba(18, 52, 72, 0.13);
	border-radius: 7px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(18, 52, 72, 0.18);
	box-sizing: border-box;
}

.sbm-language-option {
	min-height: 33px;
	padding: 6px 8px;
	border-radius: 5px;
	color: #123448;
	text-decoration: none;
	box-sizing: border-box;
}

.sbm-language-option:hover,
.sbm-language-option:focus-visible {
	background: #fff3e4;
	color: #123448;
}

.sbm-language-option.is-active {
	background: #ff9926;
	color: #ffffff;
}

.sbm-position-top-right .sbm-language-options,
.sbm-position-top-left .sbm-language-options {
	top: calc(100% + 6px);
	bottom: auto;
}

.sbm-floating-switcher {
	position: fixed;
	z-index: 9998;
}

.sbm-position-bottom-right { right: 22px; bottom: 22px; }
.sbm-position-bottom-left { left: 22px; bottom: 22px; }
.sbm-position-top-right { right: 22px; top: 22px; }
.sbm-position-top-left { left: 22px; top: 22px; }

.sbm-floating-switcher .sbm-language-switcher {
	padding: 3px;
	border: 1px solid rgba(18, 52, 72, 0.12);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 5px 18px rgba(18, 52, 72, 0.16);
	backdrop-filter: blur(8px);
}

.sbm-floating-switcher .sbm-style-dropdown {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

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

@media (max-width: 600px) {
	.sbm-position-bottom-right,
	.sbm-position-bottom-left {
		bottom: 14px;
	}
	.sbm-position-bottom-right,
	.sbm-position-top-right {
		right: 14px;
	}
	.sbm-position-bottom-left,
	.sbm-position-top-left {
		left: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sbm-language-link {
		transition: none;
	}
}
