/**
 * Naxialis Cookie Consent — front banner & preferences (v1.0.5)
 */

.ncc-root {
	--ncc-font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-family: var(--ncc-font);
	font-size: 15px;
	line-height: 1.45;
	z-index: 99999;
}

.ncc-banner,
.ncc-preferences__panel {
	background: var(--ncc-bg, #1a1a1a);
	color: var(--ncc-text, #fff);
	border: 1px solid var(--ncc-border, #333);
	border-radius: var(--ncc-radius, 8px);
	box-sizing: border-box;
}

.ncc-banner {
	position: fixed;
	z-index: 100000;
	padding: 1.25rem 1.5rem;
	max-width: min(640px, calc(100vw - 2rem));
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.ncc-banner[hidden],
.ncc-preferences[hidden],
.ncc-reopen[hidden] {
	display: none !important;
}

.ncc-banner--bottom {
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	width: min(720px, calc(100vw - 2rem));
	max-width: none;
}

.ncc-banner--center {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 2rem));
}

.ncc-banner--bottom-left {
	left: 1rem;
	bottom: 1rem;
}

.ncc-banner--bottom-right {
	right: 1rem;
	bottom: 1rem;
}

.ncc-banner__logo {
	display: block;
	max-height: 40px;
	width: auto;
	margin-bottom: 0.75rem;
}

.ncc-banner__title,
.ncc-preferences__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 650;
	line-height: 1.3;
}

.ncc-banner__desc,
.ncc-preferences__intro,
.ncc-category__desc {
	margin: 0 0 0.75rem;
	opacity: 0.92;
}

.ncc-banner__links {
	margin: 0 0 1rem;
	font-size: 0.9rem;
}

.ncc-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ncc-link:focus-visible,
.ncc-btn:focus-visible,
.ncc-reopen:focus-visible,
.ncc-preferences__close:focus-visible,
.ncc-category input:focus-visible {
	outline: 2px solid var(--ncc-accept-bg, #1b7a45);
	outline-offset: 2px;
}

.ncc-banner__actions,
.ncc-preferences__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	align-items: stretch;
}

.ncc-btn {
	appearance: none;
	border: 1px solid var(--ncc-border, #333);
	border-radius: calc(var(--ncc-radius, 8px) * 0.6);
	padding: 0.65rem 1rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	min-width: 0;
	min-height: 44px;
	height: auto;
	width: 100%;
	text-align: center;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ncc-btn:hover {
	opacity: 0.92;
}

.ncc-btn:active {
	transform: scale(0.98);
}

.ncc-btn--accept {
	background: var(--ncc-accept-bg, #1b7a45);
	color: var(--ncc-accept-text, #fff);
	border-color: transparent;
}

.ncc-btn--refuse {
	background: var(--ncc-refuse-bg, #fff);
	color: var(--ncc-refuse-text, #1a1a1a);
	border-width: 2px;
	border-color: var(--ncc-refuse-text, #1a1a1a);
}

.ncc-btn--customize {
	background: transparent;
	color: inherit;
}

/* Customize spans full width; accept/refuse share one equal row */
.ncc-btn--customize,
.ncc-preferences__actions .ncc-btn--customize,
.ncc-banner__actions .ncc-btn--customize {
	grid-column: 1 / -1;
}

.ncc-reopen {
	position: fixed;
	z-index: 99998;
	left: 1rem;
	bottom: 1rem;
	appearance: none;
	border: 1px solid var(--ncc-border, #333);
	background: var(--ncc-bg, #1a1a1a);
	color: var(--ncc-text, #fff);
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	min-height: 40px;
}

/* Preferences modal */
.ncc-preferences {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.ncc-preferences__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.ncc-preferences__panel {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	padding: 1.5rem;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.ncc-preferences__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	width: 44px;
	height: 44px;
}

.ncc-category {
	border: 1px solid var(--ncc-border, #333);
	border-radius: calc(var(--ncc-radius, 8px) * 0.6);
	padding: 0.85rem 1rem;
	margin: 0 0 0.75rem;
}

.ncc-category__legend {
	padding: 0;
	float: none;
	width: 100%;
}

.ncc-category__label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	cursor: pointer;
}

.ncc-category__label input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--ncc-accept-bg, #1b7a45);
}

.ncc-category__badge {
	margin-left: auto;
	font-size: 0.75rem;
	font-weight: 500;
	opacity: 0.75;
	border: 1px solid var(--ncc-border, #333);
	border-radius: 999px;
	padding: 0.15rem 0.5rem;
}

.ncc-category__desc {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	clear: both;
}

/* Center position overlay hint */
.ncc-banner--center::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: -1;
	pointer-events: none;
}

@media (max-width: 600px) {
	.ncc-banner--bottom,
	.ncc-banner--bottom-left,
	.ncc-banner--bottom-right,
	.ncc-banner--center {
		left: 0.75rem;
		right: 0.75rem;
		bottom: 0.75rem;
		top: auto;
		transform: none;
		width: auto;
		max-width: none;
		max-height: min(90vh, 640px);
		overflow: auto;
	}

	.ncc-banner__actions,
	.ncc-preferences__actions {
		grid-template-columns: 1fr;
	}

	.ncc-btn--customize,
	.ncc-preferences__actions .ncc-btn--customize,
	.ncc-banner__actions .ncc-btn--customize {
		grid-column: auto;
	}

	.ncc-reopen {
		left: 0.75rem;
		right: auto;
		bottom: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ncc-btn,
	.ncc-reopen,
	.ncc-banner,
	.ncc-preferences__panel {
		transition: none !important;
		animation: none !important;
	}

	.ncc-btn:active {
		transform: none;
	}
}
