/* Pulse Analytics — consent banner. Colours follow the theme through custom properties:
   --pulse-bg, --pulse-fg, --pulse-muted, --pulse-accent, --pulse-accent-fg, --pulse-radius. */

.pulse-consent {
	--_bg: var(--pulse-bg, #fff);
	--_fg: var(--pulse-fg, #1d2327);
	--_muted: var(--pulse-muted, #50575e);
	--_accent: var(--pulse-accent, #1d2327);
	--_accent-fg: var(--pulse-accent-fg, #fff);
	--_radius: var(--pulse-radius, 10px);
	position: fixed;
	z-index: 99990;
	display: flex;
	gap: 16px 24px;
	align-items: center;
	box-sizing: border-box;
	color: var(--_fg);
	background: var(--_bg);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
	font-size: 14px;
	line-height: 1.5;
}
.pulse-consent[hidden],
.pulse-consent-reopen[hidden] { display: none; }

.pulse-consent--bar {
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 18px 22px;
	border-radius: var(--_radius);
}
.pulse-consent--box {
	left: 16px;
	bottom: 16px;
	width: min(400px, calc(100vw - 32px));
	flex-direction: column;
	align-items: stretch;
	padding: 20px;
	border-radius: var(--_radius);
}

.pulse-consent__body { flex: 1; min-width: 0; }
.pulse-consent__title { margin: 0 0 4px; font-weight: 700; font-size: 15px; }
.pulse-consent__text { margin: 0; color: var(--_muted); }
.pulse-consent__text a { color: inherit; text-decoration: underline; }

.pulse-consent__actions { display: flex; gap: 8px; flex-shrink: 0; }
.pulse-consent--box .pulse-consent__actions > * { flex: 1; }

/* Both choices are equally easy to pick. */
.pulse-consent__btn {
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid var(--_accent);
	border-radius: calc(var(--_radius) - 2px);
	color: var(--_accent);
	background: transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.pulse-consent__btn--accept { color: var(--_accent-fg); background: var(--_accent); }
.pulse-consent__btn:focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }

.pulse-consent-reopen {
	position: fixed;
	z-index: 99989;
	left: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--pulse-fg, #1d2327);
	background: var(--pulse-bg, #fff);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
	cursor: pointer;
	opacity: .75;
}
.pulse-consent-reopen:hover,
.pulse-consent-reopen:focus-visible { opacity: 1; }

@media (max-width: 640px) {
	.pulse-consent--bar { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 16px; }
	.pulse-consent--bar .pulse-consent__actions > * { flex: 1; }
}

@media print { .pulse-consent, .pulse-consent-reopen { display: none !important; } }
