/* Simple Privacy & Cookies */
:root {
	--spc-accent: #542a83;
	--spc-text: #1f1f24;
	--spc-muted: #5b5b66;
	--spc-bg: #ffffff;
	--spc-line: #e4e2ea;
}

.spc-banner,
.spc-prefs,
.spc-float,
.spc-placeholder {
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--spc-text);
	box-sizing: border-box;
}
.spc-banner *,
.spc-prefs *,
.spc-placeholder * {
	box-sizing: border-box;
}
.spc-banner[hidden],
.spc-prefs[hidden],
.spc-float[hidden] {
	display: none !important;
}

/* ---- pop-up ---- */
.spc-banner {
	position: fixed;
	z-index: 2147482000;
	background: var(--spc-bg);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
	border-radius: 14px;
	bottom: 16px;
	width: min(420px, calc(100vw - 32px));
}
.spc-pos-box-left { left: 16px; }
.spc-pos-box-right { right: 16px; }
.spc-pos-bar {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	border-radius: 0;
}
.spc-pos-bar .spc-banner-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 24px;
	align-items: center;
}
.spc-pos-bar .spc-title { grid-column: 1; }
.spc-pos-bar .spc-text { grid-column: 1; margin: 0; }
.spc-pos-bar .spc-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.spc-pos-center {
	left: 50%;
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
	width: min(520px, calc(100vw - 32px));
	box-shadow: 0 0 0 100vmax rgba(20, 12, 30, .55), 0 10px 40px rgba(0, 0, 0, .3);
}
.spc-banner-inner {
	padding: 20px 22px;
}
.spc-title {
	margin: 0 0 6px !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--spc-text) !important;
}
.spc-text {
	margin: 0 0 14px !important;
	color: var(--spc-muted) !important;
	font-size: 14.5px !important;
}
.spc-links {
	display: block;
	margin-top: 6px;
}
.spc-links a {
	color: var(--spc-accent) !important;
	text-decoration: underline !important;
}

/* ---- buttons (accept and reject look the same, as the ICO expects) ---- */
.spc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.spc-btn {
	appearance: none;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	padding: 11px 16px;
	border-radius: 8px;
	border: 2px solid var(--spc-accent);
	cursor: pointer;
	box-shadow: none !important;
	margin: 0;
	flex: 1 1 auto;
	transition: filter .15s, background .15s;
}
.spc-btn-solid {
	background: var(--spc-accent) !important;
	color: #fff !important;
}
.spc-btn-outline {
	background: #fff !important;
	color: var(--spc-accent) !important;
}
.spc-btn-link {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--spc-accent) !important;
	text-decoration: underline;
	flex: 0 1 auto;
}
.spc-btn:hover { filter: brightness(1.15); }
.spc-btn:focus-visible,
.spc-close:focus-visible,
.spc-float:focus-visible,
.spc-switch:focus-visible,
.spc-open-settings:focus-visible {
	outline: 3px solid var(--spc-accent) !important;
	outline-offset: 2px !important;
}

/* ---- preferences panel ---- */
.spc-prefs {
	position: fixed;
	inset: 0;
	z-index: 2147482001;
	background: rgba(20, 12, 30, .6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
html.spc-prefs-open,
html.spc-prefs-open body {
	overflow: hidden !important;
}
.spc-prefs-box {
	background: var(--spc-bg);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	width: min(560px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.spc-prefs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 8px;
}
.spc-prefs-head .spc-title { margin: 0 !important; }
.spc-close {
	appearance: none;
	background: transparent !important;
	border: 0;
	font-size: 22px;
	line-height: 1;
	padding: 6px 8px;
	cursor: pointer;
	color: var(--spc-text) !important;
	box-shadow: none !important;
}
.spc-prefs-body {
	padding: 4px 22px 8px;
	overflow-y: auto;
}
.spc-cat {
	border-top: 1px solid var(--spc-line);
	padding: 12px 0;
}
.spc-cat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 0;
}
.spc-cat-label {
	font-weight: 700;
	flex: 1;
}
.spc-always {
	font-size: 12.5px;
	color: var(--spc-muted);
}
.spc-cat-desc {
	margin: 4px 0 0 !important;
	font-size: 13.5px !important;
	color: var(--spc-muted) !important;
}
.spc-prefs-actions {
	padding: 14px 22px 20px;
	border-top: 1px solid var(--spc-line);
}

/* On/off switch */
.spc-switch {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 26px;
	border-radius: 13px;
	background: #c9c6d1;
	position: relative;
	cursor: pointer;
	flex: none;
	margin: 0;
	transition: background .15s;
}
.spc-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .15s;
}
.spc-switch:checked { background: var(--spc-accent); }
.spc-switch:checked::after { transform: translateX(18px); }
.spc-switch:disabled { opacity: .55; cursor: default; }

/* ---- floating "cookie settings" button ---- */
.spc-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147481999;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--spc-accent) !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
	opacity: .85;
}
.spc-float:hover { opacity: 1; }

/* ---- message shown instead of a blocked video / map ---- */
.spc-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	padding: 20px;
	background: #f3f0f7;
	border: 1px solid var(--spc-line);
	border-radius: 10px;
}
.spc-placeholder-fill {
	position: absolute;
	inset: 0;
}
.spc-placeholder p {
	margin: 0 !important;
	max-width: 420px;
	color: var(--spc-text) !important;
}
.spc-placeholder .spc-btn { flex: 0 0 auto; }

/* ---- [spc_cookie_settings] button and policy pages ---- */
.spc-open-settings {
	appearance: none;
	font: inherit;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 8px;
	border: 2px solid var(--spc-accent);
	background: #fff;
	color: var(--spc-accent);
	cursor: pointer;
}
.spc-table-wrap { overflow-x: auto; }
.spc-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.spc-cookie-table th,
.spc-cookie-table td {
	text-align: left;
	vertical-align: top;
	padding: 8px 10px;
	border-bottom: 1px solid var(--spc-line);
}
.spc-cookie-table code { font-size: 12.5px; word-break: break-word; }

@media (max-width: 600px) {
	.spc-banner:not(.spc-pos-center) {
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
	}
	.spc-pos-bar { left: 0; right: 0; bottom: 0; }
	.spc-pos-bar .spc-banner-inner { display: block; }
	.spc-banner-inner { padding: 16px; }
	.spc-btn { flex: 1 1 100%; }
	.spc-btn-link { flex: 1 1 100%; }
}

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