/* ============ CSS (clean, modern, MSB‑friendly) ============== */
/* Banner */
.msb-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 520px;
  background: #122041;
  color: white;
  padding: 1.4rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  font-family: system-ui, sans-serif;
}

.msb-cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.msb-cookie-actions button {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#msb-accept-all { background: #3ba9ff; color: #fff; }
#msb-reject-all { background: #6c757d; color: #fff; }
#msb-manage { background: #1e6fd8; color: #fff; }

.msb-cookie-actions .learn-more {
  color: #3ba9ff;
  font-size: 0.85rem;
  text-decoration: underline;
}

/* Modal */
.msb-cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.msb-cookie-modal-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
}

.msb-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.msb-toggle.disabled {
  opacity: 0.6;
}

.msb-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.msb-modal-actions button {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

#msb-save { background: #1e6fd8; color: #fff; }
#msb-close { background: #6c757d; color: #fff; }

/* Fade + slide for banner */
@keyframes msb-slide-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Fade-in for modal backdrop */
@keyframes msb-backdrop-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Scale + fade for modal box */
@keyframes msb-modal-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Apply animations to your components: */
.msb-cookie-banner {
  animation: msb-slide-fade 0.45s ease-out forwards;
}

.msb-cookie-modal {
  animation: msb-backdrop-fade 0.3s ease-out forwards;
}

.msb-cookie-modal-box {
  animation: msb-modal-pop 0.35s ease-out forwards;
}


/* 🌙 Add Automatic Dark‑Mode Support */

@media (prefers-color-scheme: dark) {
  .msb-cookie-banner {
    background: #0d1628;
    color: #e6e6e6;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .msb-cookie-modal-box {
    background: #1a2336;
    color: #e6e6e6;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .msb-toggle span {
    color: #e6e6e6;
  }

  #msb-save {
    background: #3ba9ff;
    color: #fff;
  }

  #msb-close {
    background: #4a4f57;
    color: #fff;
  }

  /* Links */
  .msb-cookie-actions .learn-more {
    color: #7ec3ff;
  }
}
