/* AIBIS nõusoleku-riba (CMP) — kasutab app.css tokeneid (--paper, --ink, --accent …).
   EDPB: "Nõustu" ja "Keeldu" on visuaalselt võrdsed, mõlemad esimesel kihil. */

.cc [hidden] { display: none !important; }

.cc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 3vw, 24px);
  pointer-events: none;
}
.cc__panel {
  pointer-events: auto;
  width: min(560px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(17, 19, 24, .45);
  padding: clamp(16px, 3vw, 24px);
  max-height: min(82vh, 620px);
  overflow-y: auto;
  transform: translateY(140%);
  transition: transform .35s var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}
.cc--in .cc__panel { transform: none; }

.cc__eyebrow {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.cc__eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }

.cc__body {
  font-family: var(--f-sans);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 10px 0 0;
}
.cc__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent); }
.cc__body a:hover { color: var(--accent); }

/* ---- kategooriad (Seaded) ---- */
.cc__cats { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cc__cat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cc__cat input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.cc__cat-txt { display: flex; flex-direction: column; gap: 2px; font-family: var(--f-sans); }
.cc__cat-txt b { font-size: .85rem; color: var(--ink); }
.cc__cat-txt span { font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.cc__cat--locked { background: var(--accent-wash); border-color: transparent; }
.cc__lock {
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 2px 6px;
  flex: none;
  margin-top: 1px;
}

/* ---- nupud ---- */
.cc__actions { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc__spacer { flex: 1 1 auto; }
.cc__btn {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.cc__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cc__btn--ghost {
  background: none;
  border-color: transparent;
  color: var(--ink-2);
  padding-left: 4px; padding-right: 4px;
}
.cc__btn--ghost:hover { background: none; color: var(--accent); border-color: transparent; }
.cc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 480px) {
  .cc__actions { gap: 8px; }
  .cc__spacer { flex-basis: 100%; height: 0; }
  .cc__btn { flex: 1 1 auto; text-align: center; }
  .cc__btn--ghost { flex-basis: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .cc__panel { transition: none; transform: none; }
}
