/*
 * The consent banner and the "Cookie settings" button.
 *
 * Every colour is one of the theme's tokens with a fallback, so it matches
 * the site, follows its dark mode, and still looks right under any theme.
 */

.fc-consent {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 99999;
	max-width: 30rem;
	margin: 0 auto;
	padding: 18px 20px;
	border: 1px solid var(--fc-line, #e3d8c2);
	border-radius: var(--fc-radius, 14px);
	background: var(--fc-surface, #fffdf8);
	color: var(--fc-ink, #2a221b);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
	font: 0.95rem/1.5 var(--fc-font, system-ui, sans-serif);
}

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

.fc-consent__title {
	margin: 0 0 6px;
	font-weight: 700;
}

.fc-consent__text {
	margin: 0 0 14px;
	color: var(--fc-muted, #6b5f52);
}

.fc-consent__text a {
	color: var(--fc-link, #24513a);
}

.fc-consent__choices {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
}

.fc-consent__choice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.fc-consent__choice input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--fc-primary, #24513a);
}

.fc-consent__choice input:focus-visible {
	outline: 3px solid var(--fc-focus, #24513a);
	outline-offset: 2px;
}

.fc-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Every choice looks the same on purpose: refusing is as easy as agreeing. */
.fc-consent__button {
	flex: 1 1 8rem;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--fc-accent, #e8a936);
	border-radius: 999px;
	background: var(--fc-accent, #e8a936);
	color: var(--fc-on-accent, #2a221b);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.fc-consent__button:focus-visible,
.fc-consent-open:focus-visible {
	outline: 3px solid var(--fc-focus, #24513a);
	outline-offset: 2px;
}

/* Reads as a link wherever it is put: the footer, the policy. */
.fc-consent-open {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

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