:root {
	--ccr-accent: #2563eb;
	--ccr-focus: #f59e0b;
}
.ccr-theme-light { --ccr-bg:#fff; --ccr-text:#1f2937; --ccr-muted:#6b7280; --ccr-border:#e5e7eb; --ccr-soft:#f3f4f6; }
.ccr-theme-dark { --ccr-bg:#202124; --ccr-text:#f5f5f5; --ccr-muted:#c2c5ca; --ccr-border:#3d4147; --ccr-soft:#2b2f35; }
.ccr-banner {
	position: fixed; z-index: 999990; left: 50%; bottom: 18px; transform: translateX(-50%);
	width: min(760px, calc(100% - 28px)); display: flex; gap: 24px; align-items: center;
	max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow: auto;
	padding: 20px 22px; color: var(--ccr-text); background: var(--ccr-bg);
	border: 1px solid var(--ccr-border); border-radius: 16px; box-shadow: 0 18px 48px rgba(15,23,42,.2);
	font: 400 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ccr-banner[hidden], .ccr-modal[hidden] { display: none !important; }
.ccr-banner__copy { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.ccr-banner h2, .ccr-modal h2, .ccr-category-item h3 { margin: 0 0 6px; color: var(--ccr-text); font: 600 18px/1.3 system-ui, sans-serif; }
.ccr-banner p, .ccr-modal p, .ccr-category-item p { margin: 0; color: var(--ccr-muted); }
.ccr-banner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ccr-banner a { display: inline-flex; align-items: center; min-height: 24px; }
.ccr-banner__actions { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-end; align-items: center; }
.ccr-button {
	appearance: none; border: 1px solid var(--ccr-border); border-radius: 8px; padding: 10px 15px;
	min-width: 44px; min-height: 44px;
	background: var(--ccr-soft); color: var(--ccr-text); cursor: pointer; font: 600 14px/1.2 system-ui, sans-serif;
}
.ccr-button--primary { border-color: var(--ccr-accent); background: var(--ccr-accent); color: #fff; }
.ccr-button--quiet { border-color: transparent; background: transparent; color: var(--ccr-muted); font-weight: 400; }
.ccr-button--reject { background: transparent; }
.ccr-banner .ccr-button--primary {
	padding: 12px 24px; border: 0; border-radius: 10px;
	background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff;
	box-shadow: 0 8px 20px rgba(37,99,235,.32); font-size: 15px; font-weight: 700;
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ccr-banner .ccr-button--primary:hover {
	transform: translateY(-1px); box-shadow: 0 11px 24px rgba(37,99,235,.4); filter: saturate(1.08);
}
.ccr-banner .ccr-button--primary:active { transform: translateY(0); box-shadow: 0 5px 12px rgba(37,99,235,.28); }
.ccr-banner .ccr-button--quiet {
	min-height: 44px; padding: 8px 2px; border: 0; border-radius: 0; background: transparent;
	color: var(--ccr-muted); font-size: 13px; font-weight: 400; text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: 3px;
}
.ccr-banner .ccr-button--quiet:hover { color: var(--ccr-text); text-decoration-color: currentColor; }
.ccr-button:focus-visible, .ccr-service-toggle input:focus-visible { outline: 3px solid var(--ccr-focus); outline-offset: 2px; }
.ccr-preview { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 4px; background: #fff3cd; color: #664d03; font-size: 12px; }
.ccr-modal { position: fixed; z-index: 999999; inset: 0; display: grid; place-items: center; padding: 18px; font: 400 15px/1.45 system-ui, sans-serif; }
.ccr-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.ccr-modal__panel {
	position: relative; width: min(620px, 100%); max-height: min(760px, calc(100vh - 36px)); overflow: auto;
	max-height: min(760px, calc(100dvh - 36px)); overflow-wrap: anywhere;
	padding: 24px; border-radius: 14px; background: var(--ccr-bg); color: var(--ccr-text); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ccr-category-list { margin: 20px 0; border-top: 1px solid var(--ccr-border); }
.ccr-category-item { padding: 16px 0; border-bottom: 1px solid var(--ccr-border); }
.ccr-required { display: inline-block; margin-top: 5px; color: var(--ccr-muted); font-size: 12px; }
.ccr-service-toggle { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 14px; }
.ccr-service-toggle span { display: grid; gap: 2px; }
.ccr-service-toggle small { color: var(--ccr-muted); }
.ccr-service-toggle input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--ccr-accent); }
.ccr-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ccr-modal-open { overflow: hidden; }
@media (max-width: 640px) {
	.ccr-banner { align-items: stretch; flex-direction: column; gap: 14px; bottom: max(10px, env(safe-area-inset-bottom)); }
	.ccr-banner__actions { justify-content: stretch; }
	.ccr-banner__actions .ccr-button--primary { flex: 1 1 100%; }
	.ccr-banner__actions .ccr-button--quiet { flex: 0 1 auto; }
	.ccr-banner__actions .ccr-button--reject { flex: 1 1 auto; }
	.ccr-modal__panel { padding: 20px 16px; }
}
@media (forced-colors: active) {
	.ccr-button:focus-visible, .ccr-service-toggle input:focus-visible { outline-color: Highlight; }
	.ccr-banner .ccr-button--primary { border: 1px solid ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
	.ccr-banner, .ccr-modal { scroll-behavior: auto; }
	.ccr-banner .ccr-button--primary { transition: none; }
	.ccr-banner .ccr-button--primary:hover { transform: none; }
}
