/* Smash Consent: site tokens from DESIGN.md (ink #0F2C52, yellow #FFD400, cream #FFF8E7), Outfit body face. Scoped so theme button and heading styles don't leak in. */
.smash-privacy-notice,
.smash-privacy-dialog {
	--sp-ink: #0f2c52;
	--sp-yellow: #ffd400;
	--sp-cream: #fff8e7;
	--sp-line: rgba(15, 44, 82, .14);
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--sp-ink);
	font-size: 15px;
	line-height: 1.45;
	box-sizing: border-box;
}
.smash-privacy-notice *,
.smash-privacy-dialog * { box-sizing: border-box; }

/* Notice: small card, bottom left; full width on phones. Never blocks the page. */
.smash-privacy-notice {
	position: fixed;
	left: max(16px, env(safe-area-inset-left, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	width: min(420px, calc(100vw - 32px));
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	background: var(--sp-cream);
	border: 1px solid var(--sp-line);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(15, 44, 82, .18);
}
.smash-privacy-notice[hidden] { display: none; }
.smash-privacy-notice__text { margin: 0; }
.smash-privacy-notice__text a,
.smash-privacy-dialog a { color: var(--sp-ink); text-decoration: underline; text-underline-offset: 2px; }
.smash-privacy-notice__actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
/* The gift box page's phone bar sits at the bottom of the screen: lift the notice above it. */
html:has(.smash-gb__mbar.is-visible) .smash-privacy-notice { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

.smash-privacy-btn {
	appearance: none;
	font: 600 15px/1 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	border-radius: 999px;
	cursor: pointer;
	letter-spacing: 0;
	text-transform: none;
	margin: 0;
}
.smash-privacy-btn--primary {
	background: var(--sp-yellow);
	color: var(--sp-ink);
	border: 0;
	padding: 11px 22px;
	min-height: 44px;
}
.smash-privacy-btn--primary:hover { background: #ffdf33; }
.smash-privacy-btn--quiet {
	background: none;
	border: 0;
	padding: 11px 2px;
	min-height: 44px;
	color: var(--sp-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.smash-privacy-btn:focus-visible,
.smash-privacy-dialog__close:focus-visible,
.smash-privacy-switch input:focus-visible + .smash-privacy-switch__track { outline: 3px solid #1b4e8e; outline-offset: 2px; }

/* Panel */
.smash-privacy-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(15, 44, 82, .3);
}
.smash-privacy-dialog::backdrop { background: rgba(15, 44, 82, .45); }
.smash-privacy-dialog__body { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 24px 22px; }
.smash-privacy-dialog__title {
	margin: 0;
	padding-right: 36px;
	font: 400 30px/1.05 "Anton", Impact, "Arial Narrow", sans-serif;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: var(--sp-ink);
}
.smash-privacy-dialog__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--sp-ink);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.smash-privacy-dialog__close:hover { background: var(--sp-cream); }
.smash-privacy-row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--sp-line);
}
.smash-privacy-row__text { min-width: 0; }
.smash-privacy-row__text p { margin: 0 0 6px; }
.smash-privacy-row__name { font-weight: 700; font-size: 16px; }
.smash-privacy-row__name label { cursor: pointer; }
.smash-privacy-gpc { font-weight: 600; }
.smash-privacy-gpc[hidden] { display: none; }
.smash-privacy-always { flex: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sp-cream); white-space: nowrap; }

.smash-privacy-switch { flex: none; position: relative; display: inline-block; width: 52px; height: 30px; cursor: pointer; }
.smash-privacy-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.smash-privacy-switch__track { position: absolute; inset: 0; border-radius: 999px; background: #c5cfdb; transition: background .15s; }
.smash-privacy-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.smash-privacy-switch input:checked + .smash-privacy-switch__track { background: var(--sp-ink); }
.smash-privacy-switch input:checked + .smash-privacy-switch__track::after { transform: translateX(22px); }
.smash-privacy-switch input:disabled + .smash-privacy-switch__track { opacity: .5; }

.smash-privacy-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding-top: 4px; }
.smash-privacy-saved { margin: 0; font-weight: 600; }
.smash-privacy-saved[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.smash-privacy-switch__track,
	.smash-privacy-switch__track::after { transition: none; }
}
