/* ------- Overlay (fundo escuro) ------- */
.sb-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 25, 0.6);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.sb-consent-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ------- Banner inicial (card centrado) ------- */
.sb-consent-banner {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 99999;
  pointer-events: none; /* só o card recebe eventos */
}
.sb-consent-card {
  pointer-events: auto;
  width: min(680px, 92vw);
  background: #1a1525;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  color: #e9e6f5;
  box-shadow: 0 14px 60px rgba(0,0,0,.35);
  padding: 20px 22px;
}
.sb-consent-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.sb-consent-text {
  line-height: 1.55;
  color: #cfc8e8;
  margin-bottom: 16px;
}
.sb-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sb-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .04s ease, background .2s ease, color .2s ease;
}
.sb-btn:active { transform: translateY(1px); }
.sb-btn-ghost { background: transparent; color: #e9e6f5; border: 1px solid rgba(255,255,255,.16); }
.sb-btn-ghost:hover { background: rgba(255,255,255,.06); }
.sb-btn-secondary { background: #2a2337; color: #e9e6f5; }
.sb-btn-secondary:hover { background: #342a46; }
.sb-btn-primary { background: #6f45ff; color: white; }
.sb-btn-primary:hover { background: #7e53ff; }

/* Link de política */
.sb-consent-text a{ color:#bba8ff; text-decoration:underline; }

/* ------- Modal de preferências ------- */
.sb-consent-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100000; /* acima do overlay */
  pointer-events: none;
}
.sb-consent-modal-inner {
  pointer-events: auto;
  width: min(740px, 92vw);
  background: #1a1525; /* sólido – não herda opacity */
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  color: #e9e6f5;
  box-shadow: 0 18px 80px rgba(0,0,0,.45);
  padding: 16px;
}
.sb-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 6px 6px 14px;
}
.sb-group {
  border-top: 1px solid rgba(255,255,255,.08);
}
.sb-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 6px;
}
.sb-row-title { font-weight: 700; }
.sb-row-desc { color: #cfc8e8; font-size: 14px; margin-top: 4px; }
.sb-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 6px 4px;
}

/* toggle (switch) */
.sb-switch {
  position: relative; width: 48px; height: 26px;
  background: #2d2541; border-radius: 999px;
  transition: background .2s ease;
}
.sb-switch input { position: absolute; inset: 0; opacity: 0; }
.sb-switch .knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #cfc8e8; transition: transform .2s ease, background .2s ease;
}
.sb-switch input:checked ~ .knob {
  transform: translateX(22px);
  background: #fff;
}
.sb-switch input:checked ~ .bg {
  background: #6f45ff;
}
.sb-switch .bg {
  position: absolute; inset: 0;
  border-radius: 999px;
}

/* acessibilidade / bloqueio de scroll */
.sb-consent-lock { overflow: hidden; }
