/* Advertising measurement consent banner. Moved into the theme from the
   must-use plugin stovercrouch-ad-consent on September 12, 2026. Layout,
   sizes and spacing are the plugin's; colors and type faces are the theme's
   tokens, which the theme's own override rules for body .sc-ad-consent had
   already been forcing over the plugin's retired faces and blue since
   September 8, so nothing visible changes. */

.sc-ad-consent {
	position: fixed;
	bottom: 1rem;
	left: 1rem;
	z-index: 100000;
	width: min(26rem, calc(100vw - 2rem));
	padding: 1rem 1.125rem 1.125rem;
	color: var(--sc-navy);
	background: var(--sc-surface, #fff);
	border: 1px solid #d8d0c1;
	border-top: 4px solid var(--sc-gold);
	border-radius: 0.5rem;
	box-shadow: 0 1rem 2.75rem rgba(14, 42, 71, 0.22);
}

.sc-ad-consent__copy strong {
	display: block;
	margin: 0;
	color: var(--sc-navy);
	font-family: var(--sc-font-display, var(--sc-serif));
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
}

.sc-ad-consent__copy p {
	margin: 0.5rem 0 0.625rem;
	color: var(--sc-ink-warm, #5d564a);
	font-family: var(--sc-font-body, var(--sc-serif));
	font-size: 0.98rem;
	line-height: 1.42;
}

.sc-ad-consent__copy a {
	display: inline-block;
	color: var(--sc-navy);
	font-family: var(--sc-font-ui, var(--sc-sans));
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.sc-ad-consent__copy a:hover {
	color: var(--sc-red-deep);
}

.sc-ad-consent__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
	margin-top: 0.875rem;
}

.sc-ad-consent__actions button {
	min-width: 0;
	min-height: 44px;
	padding: 0.625rem 0.75rem;
	font-family: var(--sc-font-ui, var(--sc-sans));
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	border-radius: 0.35rem;
	cursor: pointer;
}

.sc-ad-consent__allow {
	color: #fff;
	background: var(--sc-navy);
	border: 2px solid var(--sc-navy);
}

.sc-ad-consent__allow:hover {
	background: var(--sc-charcoal);
	border-color: var(--sc-charcoal);
}

.sc-ad-consent__deny {
	color: var(--sc-navy);
	background: transparent;
	border: 2px solid rgba(14, 42, 71, 0.55);
}

.sc-ad-consent__deny:hover {
	background: rgba(14, 42, 71, 0.07);
	border-color: var(--sc-navy);
}

.sc-ad-consent__reopen {
	color: inherit;
}

.sc-ad-consent__actions button:focus-visible,
.sc-ad-consent__copy a:focus-visible,
.sc-ad-consent__reopen:focus-visible {
	outline: 3px solid var(--sc-gold-light, #B7995B);
	outline-offset: 3px;
}

@media (max-width: 420px) {
	.sc-ad-consent {
		bottom: 0.75rem;
		left: 0.75rem;
		width: calc(100vw - 1.5rem);
		padding: 0.875rem 1rem 1rem;
	}

	.sc-ad-consent__copy p {
		font-size: 0.94rem;
	}
}

@media print {
	.sc-ad-consent {
		display: none;
	}
}
