/*!
 * KCB Cookie Consent banner.
 * Colours can be overridden from a theme with the --kcb-cc-* properties.
 */
.kcb-cc {
	--kcb-cc-bg: #002b4d;
	--kcb-cc-text: #fff;
	--kcb-cc-muted: rgba(255, 255, 255, 0.78);
	--kcb-cc-accent: #84bd00;
	--kcb-cc-dark: #000;
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 1190; /* Above the KCB Live player dock (1150), below its modals. */
	box-sizing: border-box;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px 26px 26px;
	border-radius: 4px;
	background: var(--kcb-cc-bg);
	color: var(--kcb-cc-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
	box-shadow: 0 18px 50px rgba(0, 18, 33, 0.35);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.kcb-cc.is-open {
	opacity: 1;
	transform: none;
}
.kcb-cc[hidden] {
	display: none;
}
.kcb-cc *,
.kcb-cc *::before,
.kcb-cc *::after {
	box-sizing: border-box;
}

.kcb-cc__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--kcb-cc-accent);
	outline: none;
}
.kcb-cc__msg {
	margin: 0 0 16px;
	font-size: 14.5px;
	color: var(--kcb-cc-text);
}
.kcb-cc__msg a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.kcb-cc__msg a:hover {
	color: var(--kcb-cc-accent);
}

/* Categories */
.kcb-cc__cats {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}
.kcb-cc__cat {
	margin: 0;
	padding: 0;
}
.kcb-cc__row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 30px;
}
.kcb-cc__row label {
	cursor: pointer;
	font-size: 14.5px;
	user-select: none;
}
.kcb-cc__check {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	display: grid;
	place-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 2px solid var(--kcb-cc-accent);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}
.kcb-cc__check::before {
	content: "";
	width: 11px;
	height: 6px;
	margin-top: -3px;
	border-left: 2px solid var(--kcb-cc-text);
	border-bottom: 2px solid var(--kcb-cc-text);
	transform: rotate(-45deg) scale(0);
	transition: transform 0.12s ease;
}
.kcb-cc__check:checked {
	background: var(--kcb-cc-accent);
}
.kcb-cc__check:checked::before {
	transform: rotate(-45deg) scale(1);
}
.kcb-cc__check:focus-visible,
.kcb-cc__more:focus-visible,
.kcb-cc__btn:focus-visible {
	outline: 2px solid var(--kcb-cc-text);
	outline-offset: 2px;
}
/* Session cookies are always on: a plain tick, no box. */
.kcb-cc__cat.is-locked .kcb-cc__check {
	border-color: transparent;
	background: transparent;
	cursor: default;
}
.kcb-cc__cat.is-locked .kcb-cc__check::before {
	width: 14px;
	height: 7px;
	border-color: var(--kcb-cc-muted);
}
.kcb-cc__cat.is-locked label {
	cursor: default;
}

.kcb-cc__more {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-left: -6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--kcb-cc-muted);
	cursor: pointer;
}
.kcb-cc__more:hover {
	color: var(--kcb-cc-text);
	background: rgba(255, 255, 255, 0.08);
}
.kcb-cc__more svg {
	transition: transform 0.2s ease;
}
.kcb-cc__more[aria-expanded="true"] svg {
	transform: rotate(180deg);
}
.kcb-cc__desc {
	margin: 2px 0 10px 32px;
	padding: 10px 12px;
	border-left: 2px solid var(--kcb-cc-accent);
	background: rgba(255, 255, 255, 0.06);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--kcb-cc-muted);
}
.kcb-cc__desc[hidden] {
	display: none;
}

/* Buttons */
.kcb-cc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.kcb-cc__btn {
	min-width: 104px;
	padding: 11px 22px;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.kcb-cc__btn:hover {
	filter: brightness(1.1);
}
.kcb-cc__btn:active {
	transform: translateY(1px);
}
.kcb-cc__btn--all {
	background: var(--kcb-cc-accent);
}
.kcb-cc__btn--confirm {
	background: var(--kcb-cc-dark);
}

/* Small screens: full-width sheet at the bottom. */
@media (max-width: 575.98px) {
	.kcb-cc {
		left: 0;
		bottom: 0;
		width: 100%;
		max-height: 85vh;
		padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
		border-radius: 12px 12px 0 0;
	}
	.kcb-cc__btn {
		flex: 1 1 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kcb-cc,
	.kcb-cc__check::before,
	.kcb-cc__more svg {
		transition: none;
	}
}

@media print {
	.kcb-cc {
		display: none !important;
	}
}

/* Screen-reader-only text, in case the theme does not define it. */
.kcb-cc .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* [kcb_cookie_settings] button */
.kcb-cc-open {
	padding: 10px 18px;
	border: 2px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
