/* NN Consent banner / preferences modal */

.nn-consent { --nn-accent: #2565C7; }
.nn-consent[hidden] { display: none; }

.nn-consent__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	z-index: 2147483646;
}
.nn-pos-bottom .nn-consent__backdrop { display: none; }

.nn-consent__panel {
	position: fixed;
	z-index: 2147483647;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 -2px 24px rgba(15, 23, 42, .18);
	border-top: 3px solid var(--nn-accent);
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.nn-pos-bottom .nn-consent__panel {
	left: 0; right: 0; bottom: 0;
	padding: 20px clamp(16px, 4vw, 48px);
}
.nn-pos-center .nn-consent__panel {
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	border: 1px solid #e5e7eb;
	border-top: 3px solid var(--nn-accent);
	border-radius: 12px;
	padding: 24px;
}

.nn-consent__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #0f172a; }
.nn-consent__text { margin: 0 0 16px; max-width: 70ch; color: #374151; }

.nn-consent__prefs { margin: 0 0 16px; border-top: 1px solid #eef0f3; }
.nn-consent__row {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 16px; padding: 12px 0; border-bottom: 1px solid #eef0f3;
}
.nn-consent__row span { display: flex; flex-direction: column; gap: 2px; }
.nn-consent__row small { color: #6b7280; font-size: 13px; }
.nn-consent__row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--nn-accent); flex: 0 0 auto; }
.nn-consent__row--locked input { opacity: .55; }

.nn-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nn-pos-bottom .nn-consent__actions { justify-content: flex-end; }

.nn-btn {
	font: inherit; font-weight: 600; cursor: pointer;
	padding: 10px 18px; border-radius: 8px; border: 1.5px solid transparent;
	transition: filter .12s ease, background .12s ease;
}
.nn-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--nn-accent) 45%, transparent); outline-offset: 2px; }

/* Reject and Accept are visually equal — same size, same weight. */
.nn-btn--solid { background: var(--nn-accent); color: #fff; }
.nn-btn--solid:hover { filter: brightness(.93); }

.nn-btn--ghost { background: #fff; color: var(--nn-accent); border-color: var(--nn-accent); }
.nn-btn--ghost:hover { background: color-mix(in srgb, var(--nn-accent) 8%, #fff); }

.nn-consent-reopen {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147483640;
	background: #fff; color: #374151; border: 1px solid #d1d5db;
	border-radius: 999px; padding: 8px 14px; font: 13px/1 -apple-system, sans-serif;
	cursor: pointer; box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}
.nn-consent-reopen[hidden] { display: none; }
.nn-consent-reopen:hover { border-color: var(--nn-accent); color: var(--nn-accent); }

@media (max-width: 600px) {
	.nn-consent__actions { justify-content: stretch; }
	.nn-btn { flex: 1 1 auto; text-align: center; }
}
