/*
 * Cookie banner. Uses the theme's palette variables so it reads as part of the
 * site rather than a bolted-on widget, and sits on top of everything without
 * blocking the page - the visitor can keep reading while deciding.
 */
.nn-consent {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 9999;
	background: var(--white, #fff);
	border-top: 1px solid var(--line, #d8d8cf);
	box-shadow: 0 -18px 50px rgba(18, 18, 15, .12);
}

.nn-consent__inner {
	width: min(calc(100% - 48px), var(--max, 1220px));
	margin-inline: auto;
	padding: 20px 0 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nn-consent__title {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ink, #12120f);
}

.nn-consent__text {
	margin: 0;
	max-width: 78ch;
	color: var(--grey, #6c6c64);
	font-size: 14px;
	line-height: 1.6;
}

.nn-consent__link {
	color: var(--ink, #12120f);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nn-consent__details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--line, #d8d8cf);
	border-radius: 14px;
}

/*
 * A class with `display` beats the UA stylesheet's `[hidden] { display: none }`,
 * so the details panel stayed open despite `details.hidden = true`. Restore it.
 */
.nn-consent__details[hidden] {
	display: none;
}

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

.nn-consent__row input {
	margin-top: 3px;
	accent-color: var(--ink, #12120f);
}

.nn-consent__row input:disabled {
	cursor: not-allowed;
}

.nn-consent__row-text {
	display: block;
	font-size: 14px;
	line-height: 1.5;
}

.nn-consent__row-label {
	display: block;
	font-weight: 700;
	color: var(--ink, #12120f);
}

.nn-consent__row-desc {
	display: block;
	color: var(--grey, #6c6c64);
}

.nn-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.nn-consent__btn {
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.nn-consent__btn--ghost {
	color: var(--grey, #6c6c64);
}

.nn-consent__btn--ghost:hover {
	color: var(--ink, #12120f);
}

.nn-consent__btn--outline {
	border-color: var(--line, #d8d8cf);
	color: var(--ink, #12120f);
}

.nn-consent__btn--outline:hover {
	border-color: var(--ink, #12120f);
}

.nn-consent__btn--primary {
	background: var(--yellow, #ffc900);
	color: var(--ink, #12120f);
}

.nn-consent__btn--primary:hover {
	background: var(--acid, #f5ff9a);
}

@media (max-width: 620px) {
	.nn-consent__actions {
		justify-content: stretch;
	}

	.nn-consent__actions .nn-consent__btn {
		flex: 1 1 auto;
	}
}
