/* Banner básico */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483647;
  display: none; /* será exibido via JS quando necessário */
  background: #0f172a; color: #e5e7eb; font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border-top: 1px solid #1f2937;
}
.cc-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px;
  display: grid; gap: 12px; grid-template-columns: 1fr auto; align-items: center;
}
.cc-text { margin-right: 16px; }
.cc-text b { color: #fff; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cc-btn {
  border: 1px solid #374151; background: #111827; color: #e5e7eb;
  padding: 10px 14px; border-radius: 10px; cursor: pointer; transition: transform .06s ease, box-shadow .06s ease;
}
.cc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.cc-btn.primary { background: #10b981; border-color: #059669; color: #04130e; font-weight: 600; }
.cc-btn.link { background: transparent; border: 0; text-decoration: underline; padding: 8px 6px; }

/* Modal de preferências */
.cc-modal {
  position: fixed; inset: 0; z-index: 2147483647; display: none;
}
.cc-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
}
.cc-dialog {
  position: relative; background: #0b1220; color: #e5e7eb; width: 95%; max-width: 720px;
  margin: 6vh auto; border-radius: 16px; border: 1px solid #1f2937; box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.cc-dialog header { padding: 18px 20px; border-bottom: 1px solid #1f2937; display:flex; justify-content: space-between; align-items:center; }
.cc-dialog h3 { margin: 0; font-size: 18px; }
.cc-dialog .cc-close { background: transparent; border: 0; color: #9ca3af; font-size: 22px; cursor: pointer; }
.cc-dialog .cc-body { padding: 18px 20px; display: grid; gap: 16px; }
.cc-card {
  border: 1px solid #1f2937; border-radius: 12px; padding: 14px; background: #0e1730;
  display: grid; gap: 8px;
}
.cc-card h4 { margin: 0; font-size: 15px; color: #fff; }
.cc-row { display:flex; gap: 10px; justify-content: space-between; align-items:center; }
.cc-toggle {
  position: relative; width: 44px; height: 26px; background: #374151; border-radius: 999px; cursor: pointer;
}
.cc-toggle input { display:none; }
.cc-toggle .dot {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #9ca3af; transition: left .15s ease, background .15s ease, box-shadow .15s ease;
}
.cc-toggle input:checked + .dot { left: 21px; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.cc-dialog footer { padding: 18px 20px; border-top: 1px solid #1f2937; display:flex; gap: 8px; justify-content: flex-end; }

/* Botão de preferências fixo (reabrir modal) */
.cc-reopen {
  position: fixed; left: 12px; bottom: 12px; z-index: 2147483646;
  display: none; gap: 8px; align-items: center;
  background: #0f172a; color: #e5e7eb; border: 1px solid #1f2937; border-radius: 999px;
  padding: 8px 12px; cursor: pointer;
}
.cc-reopen:hover { box-shadow: 0 6px 18px rgba(0,0,0,.28); }

/* Acessibilidade / reduzido */
@media (max-width: 640px){
  .cc-inner { grid-template-columns: 1fr; }
  .cc-actions { justify-content: flex-start; }
}
