/**
 * NeuroLogic — Consent
 * Brand tokens are inlined rather than read from the Elementor kit so the
 * banner renders correctly even if the kit stylesheet is late or absent.
 */

/* Tokens live on :root, not on .nl-consent-root — the [nl_consent_settings]
   shortcode renders a button anywhere in the page, outside that wrapper. */
:root {
	--nlc-navy-900: #101227;
	--nlc-navy-800: #16163f;
	--nlc-blue-600: #2e478a;
	--nlc-gold-400: #d3bf90;
	--nlc-gold-500: #c3ac77;
	--nlc-grey-700: #4a4c60;
	--nlc-grey-500: #7c7e92;
	--nlc-grey-300: #cecbcb;
	--nlc-grey-200: #e4e2de;
	--nlc-white: #fff;
	--nlc-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nl-consent-root *,
.nl-consent-root *::before,
.nl-consent-root *::after {
	box-sizing: border-box;
}

.nl-consent-root[hidden],
.nl-consent-root [hidden] {
	display: none !important;
}

.nl-consent-scroll-lock {
	overflow: hidden;
}

.nl-consent-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* --------------------------------------------------------------- eyebrow */

.nl-consent-eyebrow {
	margin: 0 0 6px;
	font-family: var(--nlc-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--nlc-gold-400);
}

.nl-consent-eyebrow--dark {
	color: var(--nlc-blue-600);
}

/* --------------------------------------------------------------- buttons */

/* Selectors are deliberately doubled. A theme's global button defaults are
   usually `.some-kit button`, which outranks a single class; two classes
   outrank that in turn without resorting to !important. */
.nl-consent-btn.nl-consent-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: auto;
	margin: 0;
	padding: 11px 26px;
	border: 1px solid transparent;
	border-radius: 50px;
	box-shadow: none;
	font-family: var(--nlc-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.2px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

/* Accept and Refuse are deliberately identical: refusing must be no harder
   than accepting. Do not restyle one without the other. */
.nl-consent-btn.nl-consent-btn--primary {
	background: var(--nlc-gold-400);
	border-color: var(--nlc-gold-400);
	color: var(--nlc-navy-900);
}

.nl-consent-btn.nl-consent-btn--primary:hover,
.nl-consent-btn.nl-consent-btn--primary:focus {
	background: var(--nlc-gold-500);
	border-color: var(--nlc-gold-500);
	color: var(--nlc-navy-900);
}

.nl-consent-btn.nl-consent-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--nlc-white);
}

.nl-consent-btn.nl-consent-btn--ghost:hover,
.nl-consent-btn.nl-consent-btn--ghost:focus {
	border-color: var(--nlc-white);
	background: rgba(255, 255, 255, 0.08);
	color: var(--nlc-white);
}

.nl-consent-modal .nl-consent-btn.nl-consent-btn--ghost {
	background: transparent;
	border-color: var(--nlc-navy-900);
	color: var(--nlc-navy-900);
}

.nl-consent-modal .nl-consent-btn.nl-consent-btn--ghost:hover,
.nl-consent-modal .nl-consent-btn.nl-consent-btn--ghost:focus {
	background: var(--nlc-navy-900);
	border-color: var(--nlc-navy-900);
	color: var(--nlc-white);
}

.nl-consent-root button:focus-visible,
.nl-consent-root a:focus-visible,
.nl-consent-root input:focus-visible + .nl-consent-switch__track,
.nl-consent-tab:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(46, 71, 138, 0.9);
}

.nl-consent-banner button:focus-visible,
.nl-consent-banner a:focus-visible {
	box-shadow: 0 0 0 3px rgba(211, 191, 144, 0.9);
}

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

.nl-consent-banner {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 99998;
	background: var(--nlc-navy-800);
	color: var(--nlc-white);
	font-family: var(--nlc-font);
	box-shadow: 0 -8px 32px rgba(16, 18, 39, 0.35);
	animation: nl-consent-rise 0.28s ease both;
}

@keyframes nl-consent-rise {
	from {
		transform: translateY(16px);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nl-consent-banner {
		animation: none;
	}
}

.nl-consent-banner__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 24px;
}

.nl-consent-banner__title {
	margin: 0 0 6px;
	font-family: var(--nlc-font);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nlc-white);
}

.nl-consent-banner__body {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
	max-width: 68ch;
}

.nl-consent-banner__link {
	margin: 8px 0 0;
	font-size: 13px;
}

.nl-consent-root .nl-consent-banner__link a {
	color: var(--nlc-gold-400);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nl-consent-root .nl-consent-banner__link a:hover {
	color: var(--nlc-white);
}

.nl-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

@media (max-width: 900px) {
	.nl-consent-banner__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 20px;
	}

	.nl-consent-banner__actions .nl-consent-btn {
		flex: 1 1 auto;
	}
}

/* ----------------------------------------------------------------- modal */

.nl-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(16, 18, 39, 0.66);
}

.nl-consent-modal {
	position: relative;
	width: 100%;
	max-width: 660px;
	max-height: 88vh;
	overflow-y: auto;
	padding: 34px 36px 30px;
	border-radius: 12px;
	background: var(--nlc-white);
	color: var(--nlc-navy-900);
	font-family: var(--nlc-font);
	box-shadow: 0 24px 60px rgba(16, 18, 39, 0.35);
}

.nl-consent-modal__close.nl-consent-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	background: transparent;
	color: var(--nlc-grey-500);
	font-family: var(--nlc-font);
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

/* Three classes deep: a theme's `.kit button:hover` is (0,2,1) and would
   otherwise repaint this on focus, which is exactly when it is visible. */
.nl-consent-modal__close.nl-consent-modal__close.nl-consent-modal__close:hover,
.nl-consent-modal__close.nl-consent-modal__close.nl-consent-modal__close:focus,
.nl-consent-modal__close.nl-consent-modal__close.nl-consent-modal__close:focus-visible {
	background: var(--nlc-grey-200);
	border: 0;
	color: var(--nlc-navy-900);
}

.nl-consent-modal__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--nlc-navy-900);
}

.nl-consent-modal__body {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--nlc-grey-700);
}

.nl-consent-cats {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	border-top: 1px solid var(--nlc-grey-200);
}

.nl-consent-cat {
	padding: 18px 0;
	border-bottom: 1px solid var(--nlc-grey-200);
}

.nl-consent-cat__head {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.nl-consent-cat__text {
	flex: 1 1 auto;
}

.nl-consent-cat__name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--nlc-navy-900);
}

.nl-consent-cat__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--nlc-grey-700);
}

.nl-consent-always {
	flex-shrink: 0;
	padding-top: 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--nlc-grey-500);
}

/* ---------------------------------------------------------------- switch */

.nl-consent-switch {
	position: relative;
	flex-shrink: 0;
	display: inline-block;
	width: 48px;
	height: 28px;
	cursor: pointer;
}

.nl-consent-switch input {
	position: absolute;
	opacity: 0;
	width: 48px;
	height: 28px;
	margin: 0;
	cursor: pointer;
}

.nl-consent-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 28px;
	background: var(--nlc-grey-300);
	transition: background-color 0.18s ease;
	pointer-events: none;
}

.nl-consent-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--nlc-white);
	box-shadow: 0 1px 3px rgba(16, 18, 39, 0.3);
	transition: transform 0.18s ease;
}

.nl-consent-switch input:checked + .nl-consent-switch__track {
	background: var(--nlc-gold-400);
}

.nl-consent-switch input:checked + .nl-consent-switch__track::after {
	transform: translateX(20px);
}

/* ---------------------------------------------------------------- detail */

.nl-consent-detail {
	margin-top: 12px;
}

.nl-consent-root .nl-consent-detail summary {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--nlc-blue-600);
	cursor: pointer;
}

.nl-consent-tablewrap {
	overflow-x: auto;
	margin-top: 10px;
}

.nl-consent-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	line-height: 1.5;
}

.nl-consent-root .nl-consent-table th,
.nl-consent-root .nl-consent-table td {
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--nlc-grey-200);
	background: transparent;
	font-size: 12.5px;
}

.nl-consent-root .nl-consent-table th {
	font-weight: 600;
	color: var(--nlc-navy-900);
	white-space: nowrap;
}

.nl-consent-root .nl-consent-table td {
	color: var(--nlc-grey-700);
}

.nl-consent-empty {
	margin: 10px 0 0;
	font-size: 13px;
	font-style: italic;
	color: var(--nlc-grey-500);
}

.nl-consent-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nl-consent-modal__actions .nl-consent-btn {
	flex: 1 1 auto;
}

.nl-consent-modal__link {
	margin: 16px 0 0;
	font-size: 13px;
	text-align: center;
}

.nl-consent-root .nl-consent-modal__link a {
	color: var(--nlc-blue-600);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 600px) {
	.nl-consent-modal {
		padding: 28px 20px 24px;
		max-height: 92vh;
	}

	.nl-consent-modal__actions .nl-consent-btn {
		flex: 1 1 100%;
	}
}

/* ------------------------------------------------ inline + floating entry */

.nl-consent-inline {
	font-family: var(--nlc-font);
}

.nl-consent-tab.nl-consent-tab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	min-height: 0;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--nlc-grey-300);
	border-radius: 50px;
	background: var(--nlc-white);
	color: var(--nlc-navy-900);
	font-family: var(--nlc-font);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(16, 18, 39, 0.14);
}

.nl-consent-tab.nl-consent-tab:hover {
	background: var(--nlc-grey-200);
}
