#ccc-banner {
	--ccc-bg: #ffffff;
	--ccc-text: #6b7280;
	--ccc-title: #111827;
	--ccc-border: #e5e7eb;
	--ccc-btn-primary-bg: #0ea5e9;
	--ccc-btn-primary-text: #ffffff;
	--ccc-btn-secondary-bg: #f3f4f6;
	--ccc-btn-secondary-text: #111827;
	--ccc-btn-reject-bg: transparent;
	--ccc-btn-reject-text: #111827;
	--ccc-btn-reject-border: #111827;
	--ccc-link: #0ea5e9;

	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	width: 380px;
	max-width: calc(100vw - 40px);
	background: var(--ccc-bg);
	color: var(--ccc-text);
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	padding: 18px 20px 20px;
	box-sizing: border-box;
}

#ccc-banner[hidden] { display: none; }

.ccc-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.ccc-card__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ccc-card__logo {
	width: 26px;
	height: 26px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 6px;
}

.ccc-card__logo-default {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: var(--ccc-btn-primary-bg);
}

.ccc-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--ccc-title);
}

.ccc-card__close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #9ca3af;
	padding: 4px;
	border-radius: 6px;
}

.ccc-card__close:hover { background: var(--ccc-secondary-bg-hover, #f3f4f6); }

.ccc-card__desc {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ccc-text);
}

.ccc-card__categories {
	margin: 0 0 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-top: 1px solid var(--ccc-border);
	border-bottom: 1px solid var(--ccc-border);
	padding: 6px 0;
	max-height: 260px;
	overflow-y: auto;
}

.ccc-category-group {
	border-bottom: 1px solid var(--ccc-border);
}

.ccc-category-group:last-child { border-bottom: none; }

.ccc-category-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: var(--ccc-title);
	padding: 5px 0;
}

.ccc-category-left {
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
}

.ccc-category-label { font-weight: 600; }

.ccc-category-label--expandable { cursor: pointer; }

.ccc-chevron {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	color: var(--ccc-text);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: transform .15s ease;
}

.ccc-chevron[aria-expanded="true"] { transform: rotate(90deg); }

.ccc-category-sublist {
	padding: 2px 0 10px 20px;
}

.ccc-category-sublist[hidden] { display: none; }

.ccc-category-sublist ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ccc-category-sublist li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 11.5px;
}

.ccc-sublist-name { color: var(--ccc-title); }
.ccc-sublist-domain { color: var(--ccc-text); font-size: 11px; }

.ccc-info-icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid #9ca3af;
	background: none;
	color: #9ca3af;
	font-size: 10px;
	font-style: italic;
	font-weight: 700;
	line-height: 13px;
	text-align: center;
	padding: 0;
	cursor: pointer;
}

.ccc-info-icon[aria-expanded="true"] {
	background: var(--ccc-btn-primary-bg);
	border-color: var(--ccc-btn-primary-bg);
	color: var(--ccc-btn-primary-text);
}

.ccc-tooltip {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	background: var(--ccc-title);
	color: var(--ccc-bg);
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.4;
	padding: 8px 10px;
	border-radius: 8px;
	width: max-content;
	max-width: 230px;
	z-index: 5;
	box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

.ccc-tooltip[hidden] { display: none; }

.ccc-toggle {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 20px;
	flex-shrink: 0;
}

.ccc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ccc-toggle__track {
	position: absolute;
	inset: 0;
	background: #d1d5db;
	border-radius: 999px;
	transition: background .15s ease;
}

.ccc-toggle__track::before {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	left: 2px;
	top: 2px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform .15s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.ccc-toggle input:checked + .ccc-toggle__track {
	background: var(--ccc-btn-primary-bg);
}

.ccc-toggle input:checked + .ccc-toggle__track::before {
	transform: translateX(16px);
}

.ccc-toggle input:disabled + .ccc-toggle__track {
	opacity: .5;
	cursor: not-allowed;
}

.ccc-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 4px;
}

.ccc-card__actions-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ccc-card__actions-row--primary .ccc-btn { flex: 1; }

.ccc-btn {
	padding: 11px 14px;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	text-align: center;
}

.ccc-btn--block { width: 100%; }

.ccc-btn--primary {
	background: var(--ccc-btn-primary-bg);
	color: var(--ccc-btn-primary-text);
}

/* "Alles weigeren" has its own configurable colors (defaulting to an
   outlined style using the title color), kept the same size/weight as
   "Alles accepteren" so both remain equally prominent - required by the
   AP's cookie banner guidance. */
.ccc-btn--reject {
	background: var(--ccc-btn-reject-bg);
	color: var(--ccc-btn-reject-text);
	border-color: var(--ccc-btn-reject-border);
}

.ccc-btn--secondary {
	background: var(--ccc-btn-secondary-bg);
	color: var(--ccc-btn-secondary-text);
	padding: 9px 12px;
	font-size: 13px;
}

/* Laag 2: instellingenscherm met per-categorie toggles */
.ccc-layer--2[hidden] { display: none; }

.ccc-card__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ccc-text);
	cursor: pointer;
}

.ccc-layer--2 .ccc-card__categories {
	margin-bottom: 14px;
}

.ccc-card__withdraw {
	margin: 6px 0 10px;
	font-size: 11.5px;
	line-height: 1.5;
	color: #9ca3af;
}

.ccc-card__footer {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #9ca3af;
	border-top: 1px solid var(--ccc-border);
	padding-top: 10px;
}

.ccc-card__footer a {
	color: var(--ccc-link);
	text-decoration: none;
}

.ccc-card__footer a:hover { text-decoration: underline; }

.ccc-reopen {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999998;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px;
	transition: transform .15s ease-out;
}

.ccc-reopen[hidden] { display: none; }

@media (max-width: 480px) {
	#ccc-banner {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: 100%;
		padding: 14px 16px 16px;
		border-radius: 16px 16px 0 0;
	}
	.ccc-card__header { margin-bottom: 8px; }
	.ccc-card__logo,
	.ccc-card__logo-default { width: 22px; height: 22px; }
	.ccc-card__title { font-size: 14.5px; }
	.ccc-card__desc { font-size: 12px; line-height: 1.45; margin-bottom: 10px; }
	.ccc-card__categories { padding: 4px 0; margin-bottom: 10px; max-height: 45vh; }
	.ccc-category-row { font-size: 12px; padding: 4px 0; }
	.ccc-category-sublist li { font-size: 11px; }
	.ccc-card__actions { gap: 6px; margin-bottom: 2px; }
	.ccc-btn { padding: 9px 12px; font-size: 12.5px; }
	.ccc-btn--secondary { padding: 7px 10px; font-size: 11.5px; }
	.ccc-card__back { font-size: 11px; }
	.ccc-card__withdraw { font-size: 10.5px; margin: 4px 0 8px; }
	.ccc-card__footer { font-size: 11px; margin-top: 8px; padding-top: 8px; }
	.ccc-reopen { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 18px; }
}

/* Styling for the [cookie_policy] table on the policy page (not part of the banner) */
.ccc-policy-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 20px;
	font-size: 14px;
}

.ccc-policy-table th,
.ccc-policy-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e5e7eb;
}

.ccc-policy-table th {
	font-weight: 600;
	background: #f9fafb;
}
