/* ==========================================================================
   DNH Artful Living — Cookie Consent Banner
   ========================================================================== */

#dnh-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(91, 45, 142, 0.12);
  font-family: var(--font-body, 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

#dnh-consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dnh-consent__inner {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dnh-consent__title {
  font-family: var(--font-display, 'Zodiak', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.35rem 0;
  color: #1a1a1a;
}

.dnh-consent__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a4a4a;
}

.dnh-consent__desc a {
  color: #5B2D8E;
  text-decoration: underline;
}

.dnh-consent__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f7f4ef;
  border-radius: 10px;
}

.dnh-consent__opt {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #2a2a2a;
  cursor: pointer;
}

.dnh-consent__opt input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #5B2D8E;
  width: 1rem;
  height: 1rem;
}

.dnh-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.dnh-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  line-height: 1;
}

.dnh-consent__btn:focus-visible {
  outline: 2px solid #5B2D8E;
  outline-offset: 2px;
}

.dnh-consent__btn:active {
  transform: translateY(1px);
}

.dnh-consent__btn--ghost {
  background: transparent;
  color: #5B2D8E;
  border-color: rgba(91, 45, 142, 0.25);
}
.dnh-consent__btn--ghost:hover {
  background: rgba(91, 45, 142, 0.06);
  border-color: rgba(91, 45, 142, 0.45);
}

.dnh-consent__btn--save {
  background: #fff;
  color: #5B2D8E;
  border-color: #5B2D8E;
}
.dnh-consent__btn--save:hover { background: #f2e8fb; }

.dnh-consent__btn--primary {
  background: #5B2D8E;
  color: #fff;
  border-color: #5B2D8E;
}
.dnh-consent__btn--primary:hover {
  background: #4a2374;
  border-color: #4a2374;
}

@media (min-width: 720px) {
  .dnh-consent__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .dnh-consent__text { flex: 1 1 auto; }
  .dnh-consent__actions {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
  }
  #dnh-consent-banner:has(#dnh-consent-options[style*="display: flex"]) .dnh-consent__inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dnh-consent-banner { transition: none; }
}

/* Reopen link (footer) */
.dnh-consent-reopen {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
