/**
 * SpeakerPacket consent banner, footer legal line, and embed gates
 * (v0.7.59). Follows the site system: white surfaces, navy #0D2B6C
 * text, #1A3F92 primary actions, #F1F5FE washes, #D8E2F7 borders,
 * thin-line detailing. No gradients, no stock imagery.
 */

/* ------------------------------------------------------------------
 * Footer legal line
 * ------------------------------------------------------------------ */

.spp-legal-footer {
	background: #fff;
	border-top: 1px solid #D8E2F7;
	padding: 12px 16px 16px;
	text-align: center;
}

/* v0.7.150: the founder line above the legal nav (transparency
   stack): 14px text, 8px clear below before the nav row. */
.spp-founder-line {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #3B4A68;
}

.spp-founder-line a {
	color: #1A3F92;
	font-weight: 600;
	text-decoration: none;
}

.spp-founder-line a:hover,
.spp-founder-line a:focus {
	text-decoration: underline;
}

.spp-legal-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 8px;
	font-size: 13px;
	line-height: 1.5;
}

.spp-legal-links a {
	color: #1A3F92;
	text-decoration: none;
	padding: 6px 2px;
}

.spp-legal-links a:hover,
.spp-legal-links a:focus {
	text-decoration: underline;
}

.spp-legal-sep {
	color: #97A7C9;
}

.spp-legal-settings {
	background: none;
	border: 0;
	margin: 0;
	padding: 6px 2px;
	font: inherit;
	color: #1A3F92;
	cursor: pointer;
}

.spp-legal-settings:hover,
.spp-legal-settings:focus {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Consent banner
 * ------------------------------------------------------------------ */

.spp-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	padding: 10px;
	box-sizing: border-box;
}

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

.spp-consent-card {
	background: #fff;
	border: 1px solid #D8E2F7;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(13, 43, 108, 0.18);
	padding: 20px;
	max-width: 560px;
	margin: 0 auto;
	box-sizing: border-box;
}

@media (min-width: 760px) {
	.spp-consent {
		left: auto;
		right: 20px;
		bottom: 20px;
		padding: 0;
	}

	.spp-consent-card {
		width: 430px;
		max-width: 430px;
		margin: 0;
	}
}

.spp-consent-title {
	color: #0D2B6C;
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 0 0 8px;
}

.spp-consent-text {
	color: #26324D;
	font-size: 0.92rem;
	line-height: 1.55;
	margin: 0 0 6px;
}

.spp-consent-text a {
	color: #1A3F92;
}

.spp-consent-gpc {
	background: #F1F5FE;
	border: 1px solid #D8E2F7;
	border-radius: 10px;
	color: #0D2B6C;
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 10px 0 0;
	padding: 10px 12px;
}

.spp-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.spp-consent-btn {
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid #0D2B6C;
	background: #fff;
	color: #0D2B6C;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.spp-consent-btn:hover,
.spp-consent-btn:focus-visible {
	filter: brightness(0.96);
}

.spp-consent-btn-primary {
	background: #0D2B6C;
	color: #fff;
}

.spp-consent-btn-link {
	border-color: transparent;
	background: transparent;
	font-weight: 500;
	text-decoration: underline;
}

/* Customize rows */

.spp-consent-customize {
	margin-top: 6px;
}

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

.spp-consent-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid #E4EAF8;
	padding: 12px 0;
	margin: 0;
	cursor: pointer;
	position: relative;
}

.spp-consent-row-text {
	flex: 1 1 auto;
	min-width: 0;
}

.spp-consent-row-text strong {
	display: block;
	color: #0D2B6C;
	font-size: 0.95rem;
	line-height: 1.3;
}

.spp-consent-row-text small {
	display: block;
	color: #5A6A8A;
	font-size: 0.82rem;
	line-height: 1.45;
	margin-top: 2px;
}

/* The checkbox itself is styled as the switch. */
.spp-consent-input {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 46px;
	height: 26px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #C9D5EE;
	position: relative;
	cursor: pointer;
	transition: background 0.15s ease;
}

.spp-consent-input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(13, 43, 108, 0.35);
	transition: left 0.15s ease;
}

.spp-consent-input:checked {
	background: #1A3F92;
}

.spp-consent-input:checked::after {
	left: 23px;
}

.spp-consent-input:focus-visible {
	outline: 2px solid #0D2B6C;
	outline-offset: 2px;
}

/* Decorative switches (labels style their own input instead). */
label.spp-consent-row .spp-consent-switch {
	display: none;
}

/* Locked (Necessary) row: switch shown on, at reduced strength. */
.spp-consent-row.is-locked {
	cursor: default;
}

.spp-consent-row.is-locked .spp-consent-switch {
	flex: none;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #1A3F92;
	opacity: 0.55;
	position: relative;
}

.spp-consent-row.is-locked .spp-consent-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 23px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
}

.spp-consent-customize .spp-consent-btn {
	width: 100%;
	margin-top: 4px;
}

/* ------------------------------------------------------------------
 * Video embed gates (click-to-load)
 * ------------------------------------------------------------------ */

.spp-embed-gate {
	position: relative;
	background: #F1F5FE;
	border: 1px solid #D8E2F7;
	border-radius: 12px;
	overflow: hidden;
	min-height: 200px;
	display: flex;
	align-items: stretch;
}

.spp-embed-gate.is-loaded {
	background: #000;
	border-color: transparent;
	min-height: 0;
	display: block;
}

.spp-embed-gate iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Inside the packet template's 16:9 .spp-video frame, the gate fills
 * the frame and centers the facade. */
.spp-video .spp-embed-gate {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border: 0;
	border-radius: 0;
}

.spp-video .spp-embed-gate.is-loaded {
	position: absolute;
}

.spp-embed-facade {
	margin: auto;
	text-align: center;
	padding: 32px 20px;
	max-width: 420px;
}

.spp-embed-load {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: 999px;
	border: 1px solid #0D2B6C;
	background: #fff;
	color: #0D2B6C;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.spp-embed-load:hover,
.spp-embed-load:focus-visible {
	background: #F1F5FE;
}

.spp-embed-play {
	color: #1A3F92;
	flex: none;
}

.spp-embed-note {
	color: #43506B;
	font-size: 0.85rem;
	line-height: 1.5;
	margin: 14px 0 0;
}

.spp-embed-note a {
	color: #1A3F92;
}
