/* ==========================================================
   Aviso e preferências de cookies — Vesper IA (LGPD)
   ========================================================== */

.vc-banner,
.vc-modal-overlay {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.vc-banner *,
.vc-modal-overlay * {
  box-sizing: border-box;
}

/* ---------- Faixa de aviso ---------- */
.vc-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  width: min(1100px, calc(100% - 32px));
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(15, 12, 32, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.25, 1), opacity 0.35s ease, visibility 0.35s;
}

.vc-banner.vc-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.vc-banner-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 1.4rem;
}

.vc-banner-text {
  flex: 1;
  min-width: 0;
}

.vc-banner-text h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.vc-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b9c0d4;
}

.vc-banner-text a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vc-banner-text a:hover {
  color: #ffffff;
}

.vc-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Botões ---------- */
.vc-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  color: #ffffff;
  background: transparent;
}

.vc-btn:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.vc-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.vc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5);
}

.vc-btn-outline {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.vc-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.vc-btn-link {
  padding: 12px 8px;
  color: #b9c0d4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vc-btn-link:hover {
  color: #ffffff;
}

/* ---------- Modal de preferências ---------- */
.vc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 0, 17, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.vc-modal-overlay.vc-visible {
  opacity: 1;
  visibility: visible;
}

.vc-modal {
  width: min(640px, 100%);
  max-height: min(85vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #0f0c20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.25, 1);
}

.vc-modal-overlay.vc-visible .vc-modal {
  transform: translateY(0) scale(1);
}

.vc-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vc-modal-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.vc-modal-header p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #b9c0d4;
}

.vc-modal-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #b9c0d4;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vc-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.vc-modal-body {
  padding: 8px 26px 20px;
  overflow-y: auto;
}

.vc-group {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vc-group:last-child {
  border-bottom: none;
}

.vc-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.vc-group-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.vc-group p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #9aa3ba;
}

.vc-always {
  font-size: 0.78rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Interruptor */
.vc-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 27px;
  display: inline-block;
}

.vc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.vc-slider {
  position: absolute;
  inset: 0;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.28s ease;
  pointer-events: none;
}

.vc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.25, 1);
}

.vc-switch input:checked + .vc-slider {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
}

.vc-switch input:checked + .vc-slider::before {
  transform: translateX(21px);
}

.vc-switch input:focus-visible + .vc-slider {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.vc-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 26px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .vc-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    bottom: 12px;
  }

  .vc-banner-actions {
    width: 100%;
    justify-content: stretch;
  }

  .vc-banner-actions .vc-btn {
    flex: 1 1 140px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .vc-banner-icon {
    display: none;
  }

  .vc-banner {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .vc-banner-text p {
    font-size: 0.85rem;
  }

  .vc-banner-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }

  .vc-banner-actions .vc-btn {
    flex: 0 0 auto;
    width: 100%;
    padding: 13px 18px;
  }

  .vc-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }

  .vc-modal-footer .vc-btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .vc-banner,
  .vc-modal,
  .vc-modal-overlay,
  .vc-btn,
  .vc-slider,
  .vc-slider::before {
    transition: none !important;
  }
}
