/* ================================================================
   EffiQ Theme — Cookie / Privacy Consent Banner
   GDPR + CASL compliant consent UI.
   Loaded site-wide via wp_footer.
================================================================ */

/* ── Overlay ── */
.cc-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(2,8,23,.55); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.cc-overlay.active { opacity: 1; pointer-events: all; }

/* ── Banner ── */
.cc-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  transform: translateY(110%);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.cc-banner.active { transform: translateY(0); }

.cc-inner {
  max-width: 680px; margin: 0 auto 24px;
  background: rgba(15,23,42,.97); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px 36px 28px;
  box-shadow: 0 -8px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  color: rgba(255,255,255,.75);
  font-family: var(--fb);
}

/* ── Header ── */
.cc-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px;
}
.cc-shield {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bl), var(--pur));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(26,115,232,.3);
}
.cc-shield svg { color: #fff; }
.cc-title {
  font-family: var(--fh); font-size: 16px; font-weight: 700;
  color: #fff; margin: 0 0 2px; letter-spacing: -.02em;
}
.cc-subtitle {
  font-size: 12px; color: rgba(255,255,255,.35);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ── Body text ── */
.cc-body {
  font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}
.cc-body a {
  color: var(--bl); text-decoration: underline;
  text-underline-offset: 2px; transition: color .2s;
}
.cc-body a:hover { color: #7BAEF8; }

/* ── Toggle categories ── */
.cc-cats { display: none; margin-bottom: 20px; }
.cc-cats.open { display: block; }

.cc-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 6px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; transition: border-color .2s;
}
.cc-cat:hover { border-color: rgba(255,255,255,.12); }

.cc-cat-info { flex: 1; }
.cc-cat-name {
  font-family: var(--fh); font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.9); margin-bottom: 2px;
}
.cc-cat-desc { font-size: 11.5px; color: rgba(255,255,255,.35); line-height: 1.5; }

/* Toggle switch */
.cc-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; margin-left: 14px; }
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-toggle-track {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,.1); border-radius: 11px;
  transition: background .25s ease;
}
.cc-toggle-track::after {
  content: ""; position: absolute;
  left: 3px; top: 3px; width: 16px; height: 16px;
  background: rgba(255,255,255,.5); border-radius: 50%;
  transition: transform .25s cubic-bezier(.4,.0,.2,1), background .25s;
}
.cc-toggle input:checked + .cc-toggle-track {
  background: linear-gradient(135deg, var(--bl), var(--pur));
}
.cc-toggle input:checked + .cc-toggle-track::after {
  transform: translateX(18px); background: #fff;
}
.cc-toggle input:disabled + .cc-toggle-track {
  opacity: .5; cursor: default;
}

/* "Always on" label */
.cc-always {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  flex-shrink: 0; margin-left: 14px;
}

/* ── Actions ── */
.cc-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.cc-btn {
  font-family: var(--fh); font-size: 13px; font-weight: 700;
  padding: 11px 24px; border-radius: 11px; cursor: pointer;
  transition: all .2s ease; border: 0; letter-spacing: -.01em;
  line-height: 1;
}
.cc-btn-accept {
  background: linear-gradient(135deg, var(--bl), var(--pur));
  color: #fff; box-shadow: 0 2px 12px rgba(26,115,232,.3);
}
.cc-btn-accept:hover {
  box-shadow: 0 4px 20px rgba(26,115,232,.45);
  transform: translateY(-1px);
}
.cc-btn-reject {
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
}
.cc-btn-reject:hover {
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.18);
}
.cc-btn-customize {
  background: 0; color: rgba(255,255,255,.4);
  padding: 11px 16px; font-size: 12px;
}
.cc-btn-customize:hover { color: rgba(255,255,255,.7); }
.cc-btn-customize .cc-chevron {
  display: inline-block; transition: transform .25s; margin-left: 4px;
  font-size: 10px;
}
.cc-btn-customize.open .cc-chevron { transform: rotate(180deg); }

/* ── Floating re-open button ── */
.cc-reopen {
  position: fixed; bottom: 20px; left: 20px; z-index: 99990;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(15,23,42,.92); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.5);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: all .2s; opacity: 0; pointer-events: none;
}
.cc-reopen.visible { opacity: 1; pointer-events: all; }
.cc-reopen:hover {
  color: #fff; border-color: rgba(26,115,232,.4);
  box-shadow: 0 4px 20px rgba(26,115,232,.15);
  transform: scale(1.05);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .cc-inner { margin: 0 12px 12px; padding: 24px 22px 22px; border-radius: 16px; }
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; text-align: center; }
  .cc-btn-customize { width: auto; align-self: center; }
}
