.cc {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 200;
	max-width: 1040px;
	margin: 0 auto;
	font-family: var(--font-sans);
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--rule);
	border-radius: 8px;
	box-shadow: 0 24px 60px -20px rgb(0 0 0 / 35%);
}

.cc[hidden] { display: none; }

.cc-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 32px;
	align-items: center;
	padding: 20px 24px;
}

.cc-title {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent);
}

.cc-text {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-dim);
}

.cc-text a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.cc-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 16px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink);
	background: transparent;
	border: 1px solid var(--rule);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.cc-btn:hover { border-color: var(--accent); background: var(--bg-alt); }
.cc-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cc-btn-primary:hover { filter: brightness(1.1); }
.cc-btn-link { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }

.cc-settings {
	grid-column: 1 / -1;
	display: grid;
	gap: 16px;
	justify-items: start;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
}

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

.cc-categories {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 32px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.cc-category-desc {
	margin: 6px 0 0 52px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink-dim);
}

.cc-category-desc strong { display: block; margin-top: 4px; font-weight: 500; color: var(--ink); }

.cc-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.cc-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.cc-switch-track {
	position: relative;
	flex: none;
	width: 40px;
	height: 22px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--ink-dim);
	transition: transform 0.2s ease, background 0.2s ease;
}

.cc-switch input:checked + .cc-switch-track { background: var(--accent); border-color: var(--accent); }
.cc-switch input:checked + .cc-switch-track::after { transform: translateX(18px); background: var(--accent-ink); }
.cc-switch input:focus-visible + .cc-switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.cc-switch input:disabled + .cc-switch-track { opacity: 0.4; }

.cc-category-label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

@media (width <= 820px) {
	.cc-inner { grid-template-columns: 1fr; padding: 18px; }
	.cc-actions { justify-content: flex-start; }
	.cc-categories { grid-template-columns: 1fr; }
}

@media (width <= 540px) {
	.cc { left: 8px; right: 8px; bottom: 8px; }
	.cc-actions .cc-btn { flex: 1 1 auto; justify-content: center; }
}
