/* ccManager styles — deliberately neutral.
   Accept and Reject use the SAME button style so neither is visually privileged
   (EDPB: no nudging via colour/contrast/size). Override --cc-* tokens to brand it,
   but keep .cc-btn-primary identical for both accept and reject. */
:root {
  --cc-bg: #ffffff;
  --cc-fg: #1a1a1a;
  --cc-muted: #5b5b5b;
  --cc-border: #d9d9d9;
  --cc-primary: #2b2b2b;       /* same colour drives accept AND reject */
  --cc-primary-fg: #ffffff;
  --cc-radius: 10px;
  --cc-font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.cc-overlay {
  position: fixed; inset: 0; z-index: 2147483646;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.45);
  font-family: var(--cc-font);
}
@media (min-width: 720px) { .cc-overlay { align-items: center; } }

.cc-box {
  background: var(--cc-bg); color: var(--cc-fg);
  width: 100%; max-width: 560px; margin: 0;
  border-radius: var(--cc-radius) var(--cc-radius) 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
  padding: 24px; box-sizing: border-box;
  max-height: 90vh; overflow-y: auto;
}
@media (min-width: 720px) {
  .cc-box { margin: 16px; border-radius: var(--cc-radius); box-shadow: 0 12px 48px rgba(0,0,0,.3); }
}

.cc-title { font-size: 1.15rem; margin: 0 0 .5rem; font-weight: 650; }
.cc-body  { font-size: .92rem; line-height: 1.5; color: var(--cc-muted); margin: 0 0 .75rem; }
.cc-links { font-size: .82rem; margin: 0 0 1.25rem; }
.cc-links a { color: var(--cc-muted); }

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

.cc-btn {
  appearance: none; cursor: pointer; font: inherit; font-size: .92rem;
  padding: 11px 16px; border-radius: 8px; border: 1px solid transparent;
  transition: filter .12s ease;
}
.cc-btn:hover { filter: brightness(.94); }
.cc-btn:focus-visible { outline: 2px solid var(--cc-primary); outline-offset: 2px; }

/* Accept AND reject -> identical. This is the compliance-critical bit. */
.cc-btn-primary { background: var(--cc-primary); color: var(--cc-primary-fg); }

/* Ghost = neutral secondary action (Settings / Back), never used to hide reject. */
.cc-btn-ghost {
  background: transparent; color: var(--cc-fg);
  border: 1px solid var(--cc-border); width: 100%; margin-top: 10px;
}

/* ---- Layer 2: categories ---- */
.cc-cat { padding: 14px 0; border-top: 1px solid var(--cc-border); }
.cc-cat:first-of-type { border-top: none; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-name { font-weight: 600; font-size: .95rem; }
.cc-cat-on   { font-size: .8rem; color: var(--cc-muted); }
.cc-cat-desc { font-size: .85rem; color: var(--cc-muted); line-height: 1.45; margin: .4rem 0 0; }

/* Toggle switch */
.cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: absolute; inset: 0; background: #c4c4c4; border-radius: 24px;
  transition: background .15s ease;
}
.cc-slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s ease;
}
.cc-switch input:checked + .cc-slider { background: var(--cc-primary); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--cc-primary); outline-offset: 2px; }

/* ---- Floating revoke button ---- */
.cc-revoke {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483645;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cc-border);
  background: var(--cc-bg); color: var(--cc-fg); cursor: pointer;
  font-size: 20px; line-height: 1; box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.cc-revoke:hover { filter: brightness(.96); }
.cc-revoke:focus-visible { outline: 2px solid var(--cc-primary); outline-offset: 2px; }
