.ator-switcher {
	position: relative;
	display: inline-block;
	font-size: 14px;
	font-family: inherit;
	z-index: 9999;
}

.ator-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	color: #1f2937;
}

.ator-toggle:hover {
	border-color: #9aa1a9;
}

.ator-caret {
	font-size: 10px;
	opacity: .6;
}

.ator-menu {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 180px;
	max-height: 320px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	margin: 0;
	padding: 6px;
	list-style: none;
}

.ator-switcher.ator-open .ator-menu {
	display: block;
}

.ator-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2937;
}

.ator-item a:hover {
	background: #f2f4f6;
}

.ator-item.ator-active a {
	font-weight: 600;
	background: #eef2ff;
}

.ator-flag {
	font-size: 16px;
	line-height: 1;
}

/* Floating corner widget */
.ator-floating {
	position: fixed;
	bottom: 16px;
	right: 16px;
	z-index: 2147483647;
	pointer-events: auto;
}

.ator-floating .ator-menu {
	bottom: calc(100% + 4px);
	top: auto;
	right: 0;
	left: auto;
}

.ator-style-list .ator-toggle {
	display: none;
}

.ator-style-list .ator-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	position: static;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* Two-language direct toggle (no dropdown) */
.ator-toggle-link {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 6px;
	padding: 6px 10px;
	text-decoration: none;
	color: #1f2937;
}

.ator-toggle-link:hover {
	border-color: #9aa1a9;
	background: #f2f4f6;
}
