/* EAI Language Switcher - Floating Pill */
.eai-ls {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(0, 27, 114, 0.95);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: transform 0.2s ease, opacity 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* RTL: keep switcher on the right side visually */
html[dir="rtl"] .eai-ls,
body.eai-lang-ar .eai-ls {
	right: auto;
	left: 24px;
}

.eai-ls:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Admin bar offset */
body.admin-bar .eai-ls {
	bottom: 56px;
}

/* Language button */
.eai-ls__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	background: transparent;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
}

.eai-ls__btn:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
	text-decoration: none;
}

.eai-ls__btn:focus {
	outline: 2px solid rgba(255, 255, 255, 0.4);
	outline-offset: -2px;
}

.eai-ls__btn.is-active {
	color: #001b72;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.eai-ls__btn.is-active:hover {
	background: #f0f0f0;
	color: #001b72;
}

/* Mobile */
@media (max-width: 782px) {
	.eai-ls {
		bottom: 16px;
		right: 16px;
	}

	html[dir="rtl"] .eai-ls,
	body.eai-lang-ar .eai-ls {
		right: auto;
		left: 16px;
	}

	body.admin-bar .eai-ls {
		bottom: 62px;
	}

	.eai-ls__btn {
		min-width: 38px;
		height: 30px;
		padding: 0 10px;
		font-size: 11px;
	}
}

/* Print: hide switcher */
@media print {
	.eai-ls {
		display: none !important;
	}
}
