.lpt-switcher {
	--lpt-bg: #fff;
	--lpt-fg: #1d2327;
	--lpt-accent: #2271b1;
	font: 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--lpt-fg);
	z-index: 99999;
	direction: ltr;
}
.lpt-switcher.lpt-floating { position: fixed; }
.lpt-switcher.lpt-inline { position: relative; display: inline-block; }
.lpt-pos-bottom-left { bottom: 20px; left: 20px; }
.lpt-pos-bottom-right { bottom: 20px; right: 20px; }
.lpt-pos-top-left { top: 20px; left: 20px; }
.lpt-pos-top-right { top: 20px; right: 20px; }
.admin-bar .lpt-pos-top-left, .admin-bar .lpt-pos-top-right { top: 52px; }

.lpt-switcher button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}
.lpt-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--lpt-bg);
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.lpt-toggle:hover, .lpt-toggle:focus-visible { border-color: var(--lpt-accent); }
.lpt-toggle:focus-visible, .lpt-menu button:focus-visible { outline: 2px solid var(--lpt-accent); outline-offset: 2px; }
.lpt-globe { flex: none; }

.lpt-menu {
	position: absolute;
	min-width: 150px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--lpt-bg);
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
}
.lpt-menu[hidden] { display: none; }
.lpt-pos-bottom-left .lpt-menu, .lpt-pos-bottom-right .lpt-menu { bottom: calc(100% + 8px); }
.lpt-pos-top-left .lpt-menu, .lpt-pos-top-right .lpt-menu, .lpt-inline .lpt-menu { top: calc(100% + 8px); }
.lpt-pos-bottom-left .lpt-menu, .lpt-pos-top-left .lpt-menu, .lpt-inline .lpt-menu { left: 0; }
.lpt-pos-bottom-right .lpt-menu, .lpt-pos-top-right .lpt-menu { right: 0; }
.lpt-menu li { margin: 0; padding: 0; }
.lpt-menu button {
	display: block;
	width: 100%;
	padding: 8px 12px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	text-align: start;
}
.lpt-menu button:hover { background: rgba(34, 113, 177, .08); }
.lpt-menu button[aria-checked="true"] { color: var(--lpt-accent); font-weight: 600; }

.lpt-spinner {
	display: none;
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: lpt-spin .8s linear infinite;
	opacity: .6;
}
.lpt-busy .lpt-spinner { display: inline-block; }
@keyframes lpt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lpt-spinner { animation-duration: 3s; } }
@media print { .lpt-switcher { display: none !important; } }
