/* ==========================================================================
   eVamb · Cookie Consent · v13.5 · Navy theme
   GDPR / CCPA/CPRA / Law 25 / PIPEDA / LGPD / PIPL / DPDP / POPIA / APPI /
   PIPA / PDPA / FADP + US state laws compliant
   ========================================================================== */

/* ---- Banner (bottom-anchored) ----------------------------------------- */
.cc-banner {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; bottom: 0;
  padding: max(env(safe-area-inset-bottom), 16px) 16px 16px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.cc-banner[hidden] { display: none !important; }
.cc-banner.cc-banner-in { opacity: 1; transform: translateY(0); }
.cc-banner-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1100px;
  background: rgba(10, 20, 40, 0.96);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(244,184,96,.06), 0 30px 80px -20px rgba(0,0,0,.7), 0 0 100px -30px rgba(244,184,96,.2);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 28px;
  align-items: center;
}
.cc-banner-text strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.cc-banner-text span {
  display: block;
  font-size: var(--fs-small);
  color: var(--ink-mute);
  line-height: 1.6;
}
.cc-banner-text a, .cc-inline-link {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  cursor: pointer;
  transition: color 180ms var(--ease-out);
}
.cc-banner-text a:hover, .cc-inline-link:hover { color: var(--saffron-soft); }
.cc-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* ---- Buttons --------------------------------------------------------- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--r-full);
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
  white-space: nowrap;
}
.cc-btn-primary {
  background: linear-gradient(135deg, var(--sky-yellow), var(--accent));
  color: var(--navy-deep);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,217,61,.3), 0 10px 24px -8px rgba(255,217,61,.45);
}
.cc-btn-primary:hover { background: linear-gradient(135deg, var(--saffron-soft), var(--sky-yellow)); transform: translateY(-1px); }
.cc-btn-strong { font-weight: 700; }
.cc-btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.cc-btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(244,184,96,.06); }
.cc-btn-text {
  background: transparent;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-btn-text:hover { color: var(--accent); }

/* ---- Modal scrim ----------------------------------------------------- */
.cc-modal-scrim {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(5, 11, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.cc-modal-scrim[hidden] { display: none !important; }
.cc-modal-scrim.cc-modal-in { opacity: 1; }
.cc-modal {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  background: rgba(15, 31, 61, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(244,184,96,.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
}
.cc-modal-in .cc-modal { transform: scale(1); opacity: 1; }

.cc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.cc-modal-head h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink);
}
.cc-modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink-mute);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms, color 180ms;
}
.cc-modal-close:hover { color: var(--accent); border-color: var(--accent); }

.cc-modal-body {
  padding: 22px 28px;
  overflow-y: auto;
}
.cc-modal-body > p {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 1.65;
  margin-bottom: 20px;
}

.cc-cat {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cc-cat:last-child { border-bottom: 0; }
.cc-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.cc-cat-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.cc-cat-row input[disabled] { cursor: not-allowed; opacity: 0.7; }
.cc-cat-name {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}
.cc-cat-required {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cool);
  background: rgba(78,205,196,.12);
  border: 1px solid rgba(78,205,196,.32);
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.cc-cat-desc {
  margin: 10px 0 0 30px;
  font-size: var(--fs-small);
  color: var(--ink-mute);
  line-height: 1.55;
}

.cc-modal-foot {
  display: flex;
  gap: 10px;
  padding: 20px 28px;
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 20, 40, 0.4);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 880px) {
  .cc-banner-inner { grid-template-columns: 1fr; gap: 18px; }
  .cc-banner-actions { justify-content: stretch; }
  .cc-banner-actions .cc-btn { flex: 1; justify-content: center; }
}
@media (max-width: 520px) {
  .cc-banner-inner { padding: 18px 18px 16px; }
  .cc-banner-actions { flex-direction: column; }
  .cc-modal-head { padding: 18px 20px; }
  .cc-modal-body { padding: 18px 20px; }
  .cc-modal-foot { padding: 16px 20px; flex-direction: column; }
  .cc-modal-foot .cc-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-modal-scrim, .cc-modal { transition: none !important; }
}
