/* ===== Cookie Banner (estilo semelhante ao exemplo) ===== */
.cb-wrap {
  position: fixed;
  inset: auto 0 0 0;
  padding: 18px 16px;
  z-index: 9999;
  display: none;
}

.cb-card {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #ffffff;
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
  padding: 18px 18px;
}

.cb-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cb-text {
  margin: 10px 0 10px;
  color: rgba(15, 23, 42, .78);
  font-size: 14px;
  line-height: 1.45;
}

.cb-link {
  color: #0b5ed7;
  font-size: 14px;
  text-decoration: underline;
}

.cb-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.cb-btn {
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .04s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
}

.cb-btn:active { transform: translateY(1px); }

.cb-btn-link {
  background: transparent;
  border-color: transparent;
  color: #0b5ed7;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
}

.cb-btn-outline {
  background: #fff;
  border-color: rgba(15, 23, 42, .25);
  color: #0f172a;
}

.cb-btn-outline:hover { background: rgba(15, 23, 42, .04); }

.cb-btn-primary {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

.cb-btn-primary:hover { opacity: .92; }

/* responsivo */
@media (min-width: 900px) {
  .cb-card { padding: 20px 22px; }
  .cb-actions { margin-top: 10px; }
}

/* ===== Modal Preferências ===== */
.cm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.cm-overlay.hidden { display: none; }

.cm-card {
  width: min(720px, 100%);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
  padding: 18px;
}

.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cm-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.cm-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
}

.cm-text {
  margin: 10px 0 14px;
  color: rgba(15, 23, 42, .78);
  font-size: 14px;
  line-height: 1.45;
}

.cm-list {
  display: grid;
  gap: 10px;
}

.cm-item {
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(15, 23, 42, .02);
  border-radius: 14px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cm-item-title {
  margin: 0;
  font-weight: 900;
  color: #0f172a;
}

.cm-item-desc {
  margin: 4px 0 0;
  color: rgba(15, 23, 42, .72);
  font-size: 13px;
  line-height: 1.35;
}

.cm-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cm-footnote {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(15, 23, 42, .60);
}

/* Switch */
.cm-switch { position: relative; width: 52px; height: 30px; display: inline-block; }
.cm-switch input { opacity: 0; width: 0; height: 0; }
.cm-slider {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .18);
  border-radius: 999px;
  transition: .2s;
}
.cm-slider:before {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  transition: .2s;
}
.cm-switch input:checked + .cm-slider { background: #0b5ed7; }
.cm-switch input:checked + .cm-slider:before { transform: translateX(22px); }
.cm-switch input:disabled + .cm-slider { background: rgba(15, 23, 42, .18); opacity: .7; }

/* Botão flutuante (opcional) */
.cb-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(2,6,23,.80);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.cb-fab.hidden { display: none; }