/* Cookie Consent Modal - Centered Floating Card */

/* Overlay backdrop */
#cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

/* Modal card */
#cookie-consent-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 420px;
  background: #ffffff;
  color: #12243f;
  padding: 2rem;
  z-index: 9999;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-banner-text {
  text-align: center;
}

.cookie-banner-text strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #12243f;
  font-weight: 700;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.cookie-banner-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#cookie-reject-btn {
  background: #f0f3f7;
  color: #4b5b75;
  border: 1px solid #e5e7eb;
}

#cookie-reject-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

#cookie-accept-btn {
  background: #28a745;
  color: #ffffff;
}

#cookie-accept-btn:hover {
  background: #20c997;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  #cookie-consent-banner {
    width: 90%;
    padding: 1.5rem;
  }
  
  .cookie-banner-text strong {
    font-size: 1.1rem;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cookie-banner-actions button {
    width: 100%;
  }
}
