/* ============================================================
   Consimțământ cookie-uri — banner + panou de preferințe.
   Pe sistemul paper/ink. Injectat de cookie-consent.js.
   ============================================================ */

.cc-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  width: min(440px, calc(100vw - 40px));
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -32px oklch(0.205 0.012 70 / .55);
  padding: 24px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}
.cc-banner.in { opacity: 1; transform: none; }
@media (max-width: 520px) { .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; } }

.cc-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--signal-bg); color: var(--signal); font-size: 19px; margin-bottom: 14px;
}
.cc-banner h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.cc-banner p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }
.cc-banner p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.cc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.cc-btn {
  flex: 1; min-width: 120px; cursor: pointer;
  font-family: var(--ff-sans); font-size: 13.5px; font-weight: 600;
  padding: 11px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: var(--paper); color: var(--ink);
  transition: border-color .16s, background-color .16s, color .16s, transform .1s;
}
.cc-btn:hover { border-color: var(--ink); }
.cc-btn:active { transform: translateY(1px); }
.cc-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cc-btn.primary:hover { background: var(--ink-2); }
.cc-btn.ghost { flex: none; width: 100%; background: none; border: none; color: var(--muted); font-family: var(--ff-mono); font-size: 12px; padding: 4px; min-width: 0; }
.cc-btn.ghost:hover { color: var(--ink); }

/* ---- preferences modal ---- */
.cc-overlay {
  position: fixed; inset: 0; z-index: 160;
  background: oklch(0.18 0.01 70 / .55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .26s ease, visibility .26s;
}
.cc-overlay.in { opacity: 1; visibility: visible; }
.cc-modal {
  width: min(540px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 28px; transform: translateY(12px) scale(.99); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.cc-overlay.in .cc-modal { transform: none; }
.cc-modal h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.cc-modal > p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }

.cc-cat { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cc-cat:last-of-type { border-bottom: none; }
.cc-cat-txt { flex: 1; }
.cc-cat-txt b { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; display: block; }
.cc-cat-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.5; display: block; margin-top: 5px; }

/* toggle switch */
.cc-switch { flex: none; position: relative; width: 46px; height: 26px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--line-2);
  transition: background-color .2s ease; pointer-events: none;
}
.cc-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px oklch(0 0 0 / .3);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.cc-switch input:checked + .cc-track { background: var(--signal); }
.cc-switch input:checked + .cc-track::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-track { outline: 2px solid var(--signal); outline-offset: 2px; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-track { background: var(--signal); opacity: .45; }

.cc-modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.cc-modal-actions .cc-btn { flex: 1; min-width: 140px; }

[data-theme="dark"] .cc-banner,
[data-theme="dark"] .cc-modal { box-shadow: 0 30px 70px -30px oklch(0 0 0 / .7); }
