/* Cookie consent banner (public layout) */
.cc-banner {
	--cc-navy: #10306a;
	--cc-blue: #4e97fd;
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 10000;
	max-width: 640px;
	margin: 0 auto;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #4a5568;
	border-radius: 12px;
	border-top: 4px solid var(--cc-blue);
	box-shadow: 0 12px 40px rgba(16, 48, 106, 0.25);
	font-family: Poppins, sans-serif;
	box-sizing: border-box;
}

.cc-banner[hidden] {
	display: none;
}

.cc-banner *,
.cc-banner *::before,
.cc-banner *::after {
	box-sizing: border-box;
}

.cc-inner {
	padding: 20px 24px;
}

.cc-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--cc-navy);
}

.cc-title i {
	color: var(--cc-blue);
	margin-right: 4px;
}

.cc-text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #4a5568;
}

.cc-text a {
	color: var(--cc-blue);
	text-decoration: underline;
}

.cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cc-btn {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	padding: 11px 20px;
	border-radius: 8px;
	border: 2px solid var(--cc-blue);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cc-btn:focus-visible {
	outline: 3px solid rgba(78, 151, 253, 0.45);
	outline-offset: 2px;
}

.cc-btn-primary {
	background: var(--cc-blue);
	color: #fff;
}

.cc-btn-primary:hover {
	background: var(--cc-navy);
	border-color: var(--cc-navy);
}

.cc-btn-outline {
	background: #fff;
	color: var(--cc-navy);
	border-color: var(--cc-navy);
}

.cc-btn-outline:hover {
	background: var(--cc-navy);
	color: #fff;
}

.cc-btn-link {
	background: transparent;
	border-color: transparent;
	color: var(--cc-navy);
	text-decoration: underline;
}

.cc-btn-link:hover {
	color: var(--cc-blue);
}

.cc-prefs {
	margin: 0 0 16px;
	padding: 14px 16px;
	background: #f4f8ff;
	border-radius: 10px;
}

.cc-prefs[hidden] {
	display: none;
}

.cc-group + .cc-group {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #dbe6f7;
}

.cc-group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.cc-group-name {
	font-weight: 600;
	color: var(--cc-navy);
	font-size: 15px;
}

.cc-group-desc {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #4a5568;
}

.cc-badge {
	font-size: 12px;
	font-weight: 600;
	color: var(--cc-navy);
	background: #dbe6f7;
	border-radius: 999px;
	padding: 3px 10px;
}

.cc-save {
	margin-top: 14px;
}

/* toggle switch built on a real checkbox so keyboard and screen readers work */
.cc-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}

.cc-switch input {
	position: absolute;
	opacity: 0;
	width: 44px;
	height: 24px;
	margin: 0;
	cursor: pointer;
}

.cc-switch input:disabled {
	cursor: not-allowed;
}

.cc-slider {
	position: relative;
	flex: 0 0 44px;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #c3cfe2;
	transition: background-color 0.2s ease;
}

.cc-slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-slider {
	background: var(--cc-blue);
}

.cc-switch input:disabled + .cc-slider {
	background: var(--cc-navy);
	opacity: 0.6;
}

.cc-switch input:checked + .cc-slider::after {
	transform: translateX(20px);
}

.cc-switch input:focus-visible + .cc-slider {
	outline: 3px solid rgba(78, 151, 253, 0.45);
	outline-offset: 2px;
}

/* footer "Cookie settings" is a button styled like the neighbouring links */
.cc-footer-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.footer-bottom-link .cc-footer-link {
	font-size: 15px;
	font-weight: 500;
}

.cc-footer-link:hover {
	color: #4e97fd;
}

@media (max-width: 575px) {
	.cc-banner {
		left: 8px;
		right: 8px;
		bottom: 8px;
		max-height: calc(100vh - 16px);
	}

	.cc-inner {
		padding: 16px;
	}

	.cc-title {
		font-size: 16px;
	}

	.cc-text {
		font-size: 13px;
	}

	.cc-actions .cc-btn {
		flex: 1 1 100%;
	}
}
