/* Cookie choice. Tokens come from tokens.css. */

.thrive-cc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	color: var(--t-forest, #1b3322);
	font-family: var(--t-font-sans, "Inter", -apple-system, "Segoe UI", sans-serif);
}

.thrive-cc[hidden] {
	display: none !important;
}

.thrive-cc-bar,
.thrive-cc-panel {
	background: var(--t-cream, #f9f6f0);
	border-top: 1px solid var(--t-sand-deep, #e8dfc9);
	box-shadow: 0 -16px 40px rgb(var(--t-forest-deep-rgb, 15 31 20) / 0.12);
}

.thrive-cc-panel[hidden],
.thrive-cc-bar[hidden] {
	display: none !important;
}

.thrive-cc-panel {
	max-height: min(78vh, 640px);
	overflow: auto;
}

.thrive-cc-inner {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
}

.thrive-cc-bar .thrive-cc-inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.thrive-cc-title {
	margin: 0 0 0.35rem;
	font-family: var(--t-font-serif, "Playfair Display", Georgia, serif);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.15;
	color: var(--t-forest, #1b3322);
}

.thrive-cc-copy,
.thrive-cc-lead,
.thrive-cc-desc {
	margin: 0;
	color: var(--t-muted, #5a6b5e);
	font-size: 0.92rem;
	line-height: 1.5;
}

.thrive-cc-copy a {
	color: var(--t-forest, #1b3322);
}

.thrive-cc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.6rem;
	flex: 0 0 auto;
	/* The Ask Thrive launcher sits fixed at the bottom right, above this bar. */
	margin-right: 11rem;
}

.thrive-cc-btn {
	appearance: none;
	border-radius: 999px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	min-height: 44px;
	padding: 0.7rem 1.15rem;
	cursor: pointer;
}

.thrive-cc-btn-primary {
	background: var(--t-forest, #1b3322);
	border: 1px solid var(--t-forest, #1b3322);
	color: var(--t-cream, #f9f6f0);
}

.thrive-cc-btn-primary:hover {
	background: var(--t-gold, #c4a265);
	border-color: var(--t-gold, #c4a265);
	color: var(--t-forest-deep, #0f1f14);
}

.thrive-cc-btn-ghost {
	background: transparent;
	border: 1px solid var(--t-forest, #1b3322);
	color: var(--t-forest, #1b3322);
}

.thrive-cc-btn-ghost:hover {
	background: var(--t-sand, #efe8da);
}

.thrive-cc-btn-text {
	background: transparent;
	border: 0;
	color: var(--t-forest, #1b3322);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	padding-inline: 0.4rem;
}

.thrive-cc-btn:focus-visible,
.thrive-cc-row input:focus-visible,
.thrive-cc-reopen:focus-visible {
	outline: 2px solid var(--t-gold, #c4a265);
	outline-offset: 3px;
}

.thrive-cc-list {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
	border-top: 1px solid var(--t-sand-deep, #e8dfc9);
}

.thrive-cc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--t-sand-deep, #e8dfc9);
}

.thrive-cc-row label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	cursor: pointer;
}

.thrive-cc-name {
	display: block;
	font-weight: 600;
	color: var(--t-forest, #1b3322);
}

.thrive-cc-desc {
	display: block;
	margin-top: 0.15rem;
}

.thrive-cc-row input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--t-forest, #1b3322);
	flex: 0 0 auto;
}

.echo .q-footer-bottom button.thrive-cc-reopen {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: rgb(var(--t-cream-rgb, 249 246 240) / 0.5);
	font: inherit;
	font-size: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.echo .q-footer-bottom button.thrive-cc-reopen:hover {
	color: var(--t-cream, #f9f6f0);
}

@media (max-width: 768px) {
	.thrive-cc {
		bottom: calc(72px + env(safe-area-inset-bottom));
	}

	.thrive-cc-bar .thrive-cc-inner,
	.thrive-cc-actions {
		flex-direction: column;
		align-items: stretch;
		margin-right: 0;
	}

	.thrive-cc-btn {
		width: 100%;
	}

	body.thrive-cc-visible {
		padding-bottom: calc(var(--thrive-cc-offset, 0px) + 72px + env(safe-area-inset-bottom));
	}
}

@media (min-width: 769px) {
	body.thrive-cc-visible {
		padding-bottom: var(--thrive-cc-offset, 0px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.thrive-cc-btn {
		transition: none;
	}
}

@media print {
	.thrive-cc {
		display: none !important;
	}
}
