/**
 * Floating site mode control (T17). Outside .ll-theme — neutral chrome, mobile-first.
 *
 * @package ll-pagepatterns
 */

.llpp-site-mode-bar {
	box-sizing: border-box;
	position: fixed;
	z-index: 99990;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	padding: 0.625rem max(0.75rem, env(safe-area-inset-left)) calc(0.625rem + env(safe-area-inset-bottom))
		max(0.75rem, env(safe-area-inset-right));
	pointer-events: none;
}

.llpp-site-mode-bar__inner {
	pointer-events: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	border-radius: 12px;
	background: rgba(22, 32, 50, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.llpp-site-mode-bar__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #e8edf7;
	line-height: 1.3;
}

.llpp-site-mode-bar__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.llpp-site-mode-btn {
	min-height: 2.75rem;
	min-width: 5.5rem;
	padding: 0.35rem 0.85rem;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #f5f7ff;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.llpp-site-mode-btn:hover,
.llpp-site-mode-btn:focus-visible {
	outline: none;
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.35);
}

.llpp-site-mode-btn.is-active {
	box-shadow: 0 0 0 2px #5d90ff;
	border-color: rgba(93, 144, 255, 0.65);
	background: rgba(93, 144, 255, 0.2);
}

@media (min-width: 48rem) {
	.llpp-site-mode-bar {
		left: auto;
		right: max(1rem, env(safe-area-inset-right));
		bottom: max(1rem, env(safe-area-inset-bottom));
		padding: 0;
		justify-content: flex-end;
	}
}
