.scc-wrap {
	--scc-bg: #ffffff;
	--scc-fg: #1d1d1f;
	--scc-muted: #5f6368;
	--scc-accent: #6cb653;      /* brand colour */
	--scc-accent-fg: #ffffff;
	--scc-link: #3f7f2b;        /* darker green so text links stay readable on white */
	--scc-border: #e3e3e6;
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	display: flex;
	justify-content: center;
	pointer-events: none;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.scc-box {
	pointer-events: auto;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--scc-bg);
	color: var(--scc-fg);
	border: 1px solid var(--scc-border);
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
	padding: 20px 22px;
	box-sizing: border-box;
	animation: scc-in .25s ease-out;
}
@keyframes scc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.scc-box h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: inherit; }
.scc-text { margin: 0 0 14px; color: var(--scc-muted); }
.scc-text a { color: var(--scc-link); text-decoration: underline; }

.scc-prefs { border-top: 1px solid var(--scc-border); margin-bottom: 14px; }
.scc-prefs[hidden] { display: none; }
.scc-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--scc-border); }
.scc-row p { margin: 2px 0 0; color: var(--scc-muted); font-size: 13px; }
.scc-always { font-size: 12px; color: var(--scc-muted); white-space: nowrap; }

.scc-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; cursor: pointer; }
.scc-switch input { position: absolute; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scc-switch span[aria-hidden] { position: absolute; inset: 0; pointer-events: none; background: #c8c8cc; border-radius: 24px; transition: background .2s; }
.scc-switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.scc-switch input:checked + span { background: var(--scc-accent); }
.scc-switch input:checked + span::after { transform: translateX(18px); }
.scc-switch input:focus-visible + span { outline: 2px solid var(--scc-accent); outline-offset: 2px; }
.scc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.scc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.scc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 9px 16px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}
.scc-btn[hidden] { display: none; }
.scc-primary { background: var(--scc-accent); color: var(--scc-accent-fg); }
.scc-secondary { background: transparent; color: var(--scc-fg); border-color: var(--scc-border); }
.scc-ghost { background: transparent; color: var(--scc-link); margin-right: auto; padding-left: 4px; padding-right: 4px; }
.scc-btn:hover { filter: brightness(.95); }
.scc-btn:focus-visible { outline: 2px solid var(--scc-accent); outline-offset: 2px; }

/* Floating "cookie settings" button (shown after a choice is made) */
.scc-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482000;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e3e3e6;
	background: #ffffff;
	color: #6cb653;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: .85;
	transition: opacity .2s, transform .2s;
}
.scc-fab:hover, .scc-fab:focus-visible { opacity: 1; transform: scale(1.06); }
.scc-fab svg { width: 22px; height: 22px; }

/* Google Maps placeholder (before consent) */
.scc-map {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 250px;
	padding: 20px;
	box-sizing: border-box;
	background: #f1f3f1;
	color: #333;
	text-align: center;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.scc-map p { margin: 0; max-width: 420px; }
.scc-map button {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 9px 18px;
	background: #6cb653;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 520px) {
	.scc-wrap { left: 8px; right: 8px; bottom: 8px; }
	.scc-actions { flex-direction: column-reverse; }
	.scc-btn { width: 100%; }
	.scc-ghost { margin-right: 0; }
}
