/* Cookie Banner Styles - Popup / Modal Version */
.cookie-banner {
  position: fixed;
  inset: 0; /* Top, Right, Bottom, Left: 0 */
  background-color: rgba(0, 0, 0, 0.5); /* Backdrop */
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.cookie-banner.visible {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.cookie-banner-content {
  background-color: #fff;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(0);
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-text {
  color: var(--text, #0f172a);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.cookie-text a {
  color: var(--brand, #0b3d91);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Make buttons full width on very small screens, or kept side-by-side */
@media (max-width: 480px) {
  .cookie-buttons {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
  }
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1; /* Equal width buttons */
}

.cookie-btn-accept {
  background-color: var(--brand, #0b3d91);
  color: #fff;
  border: 1px solid var(--brand, #0b3d91);
  box-shadow: 0 4px 6px -1px rgba(11, 61, 145, 0.2);
}

.cookie-btn-accept:hover {
  background-color: #082d6e;
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -1px rgba(11, 61, 145, 0.3);
}

.cookie-btn-decline {
  background-color: transparent;
  color: var(--text-muted, #475569);
  border: 1px solid var(--border, #e2e8f0);
}

.cookie-btn-decline:hover {
  background-color: var(--bg-alt, #f1f5f9);
  border-color: #cbd5e1;
  color: var(--text, #0f172a);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpFade {
  from { 
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
