/* Cookie Consent Banner - Dark Glass Morphism Theme */
.cookie-consent-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1071;  /* Above primary nav (1070) but below modals (1080+) */
  padding: 0;
  display: flex;
  align-items: flex-start;
  max-width: 420px;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cookie-consent-content {
  /* Dark glass morphism matching site theme */
  background: rgba(40, 40, 40, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  width: 100%;
}

.cookie-consent-text {
  margin: 0 0 1.25rem 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.cookie-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Cookie consent uses the standard modal component */
/* Custom styles for cookie preferences within the modal */
.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-preference-group {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cookie-preference-group:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.cookie-preference-group:last-of-type {
  margin-bottom: 1rem;
}

.cookie-preference-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-preference-text {
  flex: 1;
}

.cookie-preference-title {
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.5rem;
  display: block;
}

.cookie-preference-description {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}


/* Cookie Consent Button Overrides */
.cookie-consent-banner .button,
.cookie-consent-modal .button {
  margin: 0;
}

.cookie-consent-banner .button-sm,
.cookie-consent-modal .button-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .cookie-consent-content {
    padding: 1.25rem;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-consent-actions .button {
    width: 100%;
  }

  .cookie-preference-group {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .modal-footer-actions {
    padding-top: 1rem;
  }

  .modal-footer-actions .button {
    width: 100%;
  }
}

/* Small height screens - compact cookie preferences */
@media (max-height: 600px) {
  .cookie-preference-group {
    margin-bottom: 1rem;
    padding: 0.875rem;
  }

  .cookie-preference-description {
    font-size: 0.8125rem;
  }

  .modal-footer-actions {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}
