/**
 * Opanijé first-party consent banner (WP-13a).
 *
 * Heritage Gold canon (SD-27): ink-deep band (#15120D), cream text (#F4EEE1),
 * flat CTA-gold accept pill (#9c6408, white text — the AA text-on-gold fill),
 * ghost/outline decline pill, Montserrat 800 button voice.
 *
 * The banner is hidden by default (`hidden` attribute + display:none) and only
 * shown for un-answered visitors — the markup is server-rendered identically
 * for everyone (SD-12), visibility is decided client-side.
 */

.op-consent[hidden] {
	display: none;
}

.op-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000; /* above page chrome; below Calendly/Intercom overlays */
	background: #15120D; /* ink-deep */
	color: #F4EEE1; /* cream */
	border-top: 2px solid #B7780D; /* primary gold accent border */
	box-shadow: 0 -12px 30px rgba(43, 40, 35, 0.28);

	/* Enter transition: start off-screen, slide up when .is-visible is set. */
	transform: translateY(100%);
	opacity: 0;
	transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.op-consent.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.op-consent__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.op-consent__copy {
	flex: 1 1 320px;
	min-width: 0;
}

.op-consent__title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #EBC65A; /* gold-bright */
	margin: 0 0 6px;
}

.op-consent__body {
	font-family: 'Lato', sans-serif;
	font-size: 0.94rem;
	line-height: 1.55;
	color: #F4EEE1;
	margin: 0;
}

.op-consent__link {
	color: #EBC65A;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.op-consent__link:hover,
.op-consent__link:focus {
	color: #E0A92B;
}

.op-consent__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.op-consent__btn {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px; /* pill */
	padding: 12px 26px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

/* Primary: flat CTA-gold pill, white text (AA ≈ 4.9:1). */
.op-consent__btn--accept {
	background: #9c6408;
	color: #FFFFFF;
	border-color: #9c6408;
}

.op-consent__btn--accept:hover,
.op-consent__btn--accept:focus {
	background: #7a5c11; /* gold-deep */
	border-color: #7a5c11;
}

/* Secondary: ghost/outline pill on the dark band. */
.op-consent__btn--ghost {
	background: transparent;
	color: #F4EEE1;
	border-color: rgba(244, 238, 225, 0.5);
}

.op-consent__btn--ghost:hover,
.op-consent__btn--ghost:focus {
	border-color: #F4EEE1;
	background: rgba(244, 238, 225, 0.08);
}

.op-consent__btn:focus-visible {
	outline: 3px solid #EBC65A;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.op-consent__inner {
		padding: 16px 18px;
		gap: 14px;
	}
	.op-consent__actions {
		width: 100%;
	}
	.op-consent__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.op-consent {
		transition: none;
		transform: translateY(0);
	}
}
