/* Simple Consent EU */
.sce[hidden],
.sce-reopen[hidden],
.sce [hidden] { display: none !important; }

.sce,
.sce-reopen {
	--sce-accent: #1a73e8;
	--sce-bg: #ffffff;
	--sce-text: #1f2328;
	--sce-muted: #59636e;
	--sce-border: #d8dee4;
}

.sce {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 999999;
	display: flex;
	justify-content: center;
	pointer-events: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--sce-text);
}

.sce-box {
	pointer-events: auto;
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--sce-bg);
	border: 1px solid var(--sce-border);
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	padding: 20px 22px;
}

.sce .sce-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	color: var(--sce-text);
}

.sce .sce-text {
	margin: 0;
	color: var(--sce-text);
	font-size: 15px;
}

.sce .sce-link {
	color: var(--sce-accent);
	text-decoration: underline;
	white-space: nowrap;
}

/* Preferences */
.sce-prefs {
	margin-top: 14px;
	border-top: 1px solid var(--sce-border);
}

.sce-cat {
	padding: 12px 0;
	border-bottom: 1px solid var(--sce-border);
}

.sce .sce-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	cursor: pointer;
	font-weight: 600;
}

.sce .sce-cat-desc {
	margin: 4px 0 0;
	font-size: 13.5px;
	color: var(--sce-muted);
}

.sce-always {
	font-size: 13px;
	font-weight: 500;
	color: var(--sce-muted);
}

/* Toggle switch */
.sce .sce-switch {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	position: relative;
	width: 42px;
	height: 24px;
	margin: 0;
	border-radius: 999px;
	background: #c4cbd3;
	cursor: pointer;
	transition: background 0.15s;
	border: 0;
}

.sce .sce-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s;
}

.sce .sce-switch:checked { background: var(--sce-accent); }
.sce .sce-switch:checked::after { transform: translateX(18px); }

/* Buttons */
.sce-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.sce .sce-btn {
	box-sizing: border-box;
	min-height: 40px;
	margin: 0;
	padding: 8px 18px;
	border: 1px solid var(--sce-accent);
	border-radius: 8px;
	background: var(--sce-accent);
	color: #fff;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
}

.sce .sce-btn:hover { filter: brightness(0.92); }

.sce .sce-btn-ghost {
	background: transparent;
	color: var(--sce-accent);
	margin-right: auto;
}

.sce .sce-btn-ghost + .sce-btn-ghost { margin-right: 0; }

.sce .sce-btn:focus-visible,
.sce .sce-switch:focus-visible,
.sce .sce-link:focus-visible,
.sce-reopen:focus-visible {
	outline: 2px solid var(--sce-accent);
	outline-offset: 2px;
}

/* Reopen button */
.sce-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--sce-border);
	border-radius: 50%;
	background: var(--sce-bg);
	color: var(--sce-accent);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

@media (max-width: 520px) {
	.sce { left: 8px; right: 8px; bottom: 8px; }
	.sce-box { padding: 16px; }
	.sce-actions { justify-content: stretch; }
	.sce .sce-btn { flex: 1 1 100%; }
	.sce .sce-btn-ghost { margin-right: 0; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
	.sce .sce-switch,
	.sce .sce-switch::after { transition: none; }
}
