/* Net Launch cookie consent */

.nlc-ck {
	--ck-bg: #ffffff;
	--ck-text: #1d2433;
	--ck-muted: color-mix(in srgb, var(--ck-text) 70%, transparent);
	--ck-line: color-mix(in srgb, var(--ck-text) 14%, transparent);
	--ck-accent: var(--wp--preset--color--accent, #1f6fe5);
	--ck-accent-t: #ffffff;
	--ck-radius: 14px;
	--ck-width: 400px;
	--ck-font: 15px;
	--ck-btn-radius: 10px;
	--ck-shadow: 0 18px 50px rgba(11, 16, 34, 0.22), 0 2px 6px rgba(11, 16, 34, 0.08);
	position: fixed;
	z-index: 99990;
	inset: auto 0 0 0;
	font-family: inherit;
	font-size: var(--ck-font);
	line-height: 1.5;
	color: var(--ck-text);
	pointer-events: none;
}
.nlc-ck[hidden],
.nlc-ck [hidden],
.nlc-ck-reopen[hidden] {
	display: none !important;
}
.nlc-ck *,
.nlc-ck *::before,
.nlc-ck *::after {
	box-sizing: border-box;
}

/* Themes */
.nlc-ck--dark {
	--ck-bg: #111827;
	--ck-text: #f3f5f9;
}
.nlc-ck--brand {
	--ck-bg: var(--wp--preset--color--dark, #13294b);
	--ck-text: #ffffff;
	--ck-accent: var(--wp--preset--color--accent, #1f6fe5);
}
.nlc-ck--glass {
	--ck-bg: rgba(255, 255, 255, 0.78);
	--ck-text: #111827;
}
.nlc-ck--glass .nlc-ck__banner,
.nlc-ck--glass .nlc-ck__panel-box {
	-webkit-backdrop-filter: saturate(160%) blur(18px);
	backdrop-filter: saturate(160%) blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Button shapes */
.nlc-ck--btn-pill {
	--ck-btn-radius: 999px;
}
.nlc-ck--btn-square {
	--ck-btn-radius: 3px;
}

/* ---------- The banner ---------- */
.nlc-ck__banner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 22px;
	background: var(--ck-bg);
	color: var(--ck-text);
	box-shadow: var(--ck-shadow);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.nlc-ck.is-in .nlc-ck__banner {
	opacity: 1;
	transform: none;
}
.nlc-ck__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ck-accent) 14%, transparent);
	color: var(--ck-accent);
}
.nlc-ck--brand .nlc-ck__icon,
.nlc-ck--dark .nlc-ck__icon {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}
.nlc-ck__text {
	flex: 1;
	min-width: 0;
}
.nlc-ck__title {
	margin: 0 0 3px;
	font-size: 1.08em;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ck-text);
}
.nlc-ck__msg {
	margin: 0;
	color: var(--ck-muted);
	font-size: 0.93em;
}
.nlc-ck__link,
.nlc-ck__link:visited {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.nlc-ck__actions {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.nlc-ck__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 0;
	padding: 0 18px;
	border: 2px solid var(--ck-accent);
	border-radius: var(--ck-btn-radius);
	background: var(--ck-accent);
	color: var(--ck-accent-t);
	font: inherit;
	font-size: 0.93em;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.15s, background 0.15s, color 0.15s;
}
.nlc-ck__btn:hover {
	filter: brightness(1.08);
}
.nlc-ck__btn:focus-visible,
.nlc-ck__x:focus-visible,
.nlc-ck-reopen:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ck-accent) 50%, transparent);
	outline-offset: 2px;
}
/* Accent look: Accept stands out, Reject is outlined */
.nlc-ck--look-accent .nlc-ck__btn--reject {
	background: transparent;
	color: var(--ck-text);
	border-color: var(--ck-line);
}
.nlc-ck--look-accent .nlc-ck__btn--reject:hover {
	border-color: var(--ck-text);
	filter: none;
}
/* Equal look (ICO recommended): both choices look the same */
.nlc-ck--look-equal .nlc-ck__btn--reject {
	background: var(--ck-accent);
	color: var(--ck-accent-t);
}
.nlc-ck__btn--text {
	padding: 0 8px;
	border-color: transparent;
	background: transparent;
	color: var(--ck-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.nlc-ck__btn--text:hover {
	filter: none;
	opacity: 0.8;
}

/* ---------- Designs ---------- */

/* Full-width bar */
.nlc-ck--bar .nlc-ck__banner {
	width: 100%;
	padding: 18px max(22px, calc((100% - 1200px) / 2));
	border-radius: 0;
}

/* Floating bar */
.nlc-ck--island {
	padding: 0 16px 16px;
}
.nlc-ck--island .nlc-ck__banner {
	max-width: 1100px;
	margin: 0 auto;
	border-radius: var(--ck-radius);
}

/* Boxes in a corner */
.nlc-ck--box-left,
.nlc-ck--box-right {
	padding: 0 20px 20px;
}
.nlc-ck--box-left .nlc-ck__banner,
.nlc-ck--box-right .nlc-ck__banner {
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	max-width: var(--ck-width);
	padding: 22px;
	border-radius: var(--ck-radius);
}
.nlc-ck--box-right .nlc-ck__banner {
	margin-left: auto;
}
.nlc-ck--box-left .nlc-ck__actions,
.nlc-ck--box-right .nlc-ck__actions,
.nlc-ck--popup .nlc-ck__actions {
	width: 100%;
}
.nlc-ck--box-left .nlc-ck__btn--accept,
.nlc-ck--box-left .nlc-ck__btn--reject,
.nlc-ck--box-right .nlc-ck__btn--accept,
.nlc-ck--box-right .nlc-ck__btn--reject {
	flex: 1;
}
.nlc-ck--box-left .nlc-ck__btn--text,
.nlc-ck--box-right .nlc-ck__btn--text {
	order: 3;
	width: 100%;
	min-height: 32px;
}

/* Centred pop-up */
.nlc-ck--popup {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.nlc-ck__dim {
	position: absolute;
	inset: 0;
	background: rgba(11, 16, 34, 0.55);
	opacity: 0;
	transition: opacity 0.25s;
	pointer-events: auto;
}
.nlc-ck--popup.is-in .nlc-ck__dim {
	opacity: 1;
}
.nlc-ck--popup .nlc-ck__banner {
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 480px;
	padding: 30px 28px 24px;
	border-radius: var(--ck-radius);
	text-align: center;
	transform: scale(0.96);
}
.nlc-ck--popup.is-in .nlc-ck__banner {
	transform: none;
}
.nlc-ck--popup .nlc-ck__icon {
	width: 56px;
	height: 56px;
}
.nlc-ck--popup .nlc-ck__icon svg {
	width: 30px;
	height: 30px;
}
.nlc-ck--popup .nlc-ck__title {
	font-size: 1.3em;
}
.nlc-ck--popup .nlc-ck__actions {
	justify-content: center;
}
.nlc-ck--popup .nlc-ck__btn--accept,
.nlc-ck--popup .nlc-ck__btn--reject {
	flex: 1;
}
.nlc-ck--popup .nlc-ck__btn--text {
	order: 3;
	width: 100%;
}

/* Compact: one slim line in the corner */
.nlc-ck--mini {
	padding: 0 16px 16px;
}
.nlc-ck--mini .nlc-ck__banner {
	width: fit-content;
	max-width: min(100%, 760px);
	gap: 12px;
	padding: 10px 10px 10px 16px;
	border-radius: calc(var(--ck-radius) + 6px);
}
.nlc-ck--mini .nlc-ck__icon {
	width: 32px;
	height: 32px;
}
.nlc-ck--mini .nlc-ck__icon svg {
	width: 18px;
	height: 18px;
}
.nlc-ck--mini .nlc-ck__msg {
	font-size: 0.88em;
}
.nlc-ck--mini .nlc-ck__btn {
	min-height: 36px;
	padding: 0 14px;
	font-size: 0.86em;
}
.nlc-ck--mini .nlc-ck__btn--text {
	padding: 0 6px;
}

/* ---------- Settings panel ---------- */
.nlc-ck__panel {
	position: fixed;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(11, 16, 34, 0.55);
	pointer-events: auto;
}
.nlc-ck__panel-box {
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 26px;
	border-radius: var(--ck-radius);
	background: var(--ck-bg);
	color: var(--ck-text);
	box-shadow: var(--ck-shadow);
}
.nlc-ck__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.nlc-ck__panel-head .nlc-ck__title {
	font-size: 1.3em;
}
.nlc-ck__x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ck-text);
	cursor: pointer;
}
.nlc-ck__x:hover {
	background: var(--ck-line);
}
.nlc-ck__cats {
	margin: 18px 0;
	border: 1px solid var(--ck-line);
	border-radius: calc(var(--ck-radius) - 4px);
}
.nlc-ck__cat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
}
.nlc-ck__cat + .nlc-ck__cat {
	border-top: 1px solid var(--ck-line);
}
.nlc-ck__cat-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	cursor: pointer;
}
.nlc-ck__cat-text span {
	color: var(--ck-muted);
	font-size: 0.88em;
}
.nlc-ck__always {
	flex-shrink: 0;
	color: var(--ck-accent);
	font-size: 0.85em;
	font-weight: 700;
}
.nlc-ck--brand .nlc-ck__always,
.nlc-ck--dark .nlc-ck__always {
	color: #8fb3f2;
}
.nlc-ck__switch {
	position: relative;
	flex-shrink: 0;
	width: 48px;
	height: 28px;
}
.nlc-ck__switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.nlc-ck__switch span {
	position: absolute;
	inset: 0;
	border-radius: 99px;
	background: var(--ck-line);
	transition: background 0.2s;
}
.nlc-ck__switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}
.nlc-ck__switch input:checked + span {
	background: var(--ck-accent);
}
.nlc-ck__switch input:checked + span::after {
	transform: translateX(20px);
}
.nlc-ck__switch input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--ck-accent) 50%, transparent);
	outline-offset: 2px;
}
.nlc-ck__actions--panel {
	justify-content: flex-end;
}
html.nlc-ck-locked {
	overflow: hidden;
}

/* ---------- Re-open button ---------- */
.nlc-ck-reopen {
	position: fixed;
	bottom: 18px;
	z-index: 99980;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ck-bg, #fff);
	color: var(--ck-accent, #1f6fe5);
	box-shadow: 0 8px 24px rgba(11, 16, 34, 0.22);
	cursor: pointer;
	transition: transform 0.15s;
}
.nlc-ck-reopen:hover {
	transform: scale(1.06);
}
.nlc-ck-reopen.nlc-ck--brand,
.nlc-ck-reopen.nlc-ck--dark {
	color: #fff;
}
.nlc-ck-reopen--bl {
	left: 18px;
}
.nlc-ck-reopen--br {
	right: 18px;
}

/* Stay clear of the sticky mobile button bar */
.nlc-ck:not(.nlc-ck--popup) {
	bottom: var(--nlc-mbar-space, 0px);
}
.nlc-ck-reopen {
	bottom: calc(18px + var(--nlc-mbar-space, 0px));
}

/* ---------- Phones ---------- */
@media (max-width: 782px) {
	.nlc-ck__banner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 18px;
	}
	.nlc-ck--bar .nlc-ck__banner {
		padding: 18px;
	}
	.nlc-ck__icon {
		display: none;
	}
	.nlc-ck--popup .nlc-ck__icon {
		display: inline-flex;
		align-self: center;
	}
	.nlc-ck__actions {
		width: 100%;
	}
	.nlc-ck__btn--accept,
	.nlc-ck__btn--reject {
		flex: 1;
	}
	.nlc-ck__btn--text {
		order: 3;
		width: 100%;
		min-height: 30px;
	}
	/* Corner boxes and the compact style become a bottom card on phones */
	.nlc-ck--box-left,
	.nlc-ck--box-right,
	.nlc-ck--mini,
	.nlc-ck--island {
		padding: 0 10px 10px;
	}
	.nlc-ck--box-left .nlc-ck__banner,
	.nlc-ck--box-right .nlc-ck__banner,
	.nlc-ck--mini .nlc-ck__banner {
		width: 100%;
		max-width: none;
	}
	.nlc-ck--mini .nlc-ck__banner {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
	.nlc-ck--mini .nlc-ck__text {
		flex-basis: calc(100% - 50px);
	}
	.nlc-ck__panel {
		align-items: flex-end;
		padding: 0;
	}
	.nlc-ck__panel-box {
		max-height: 90vh;
		border-radius: var(--ck-radius) var(--ck-radius) 0 0;
	}
	.nlc-ck__actions--panel .nlc-ck__btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nlc-ck__banner,
	.nlc-ck__dim {
		transition: none;
	}
}
