/* ==========================================================================
   Privacy consent modal (photo-tool pages only)
   A blocking, full-screen overlay. There is no X button and clicking outside
   never closes it — the user must explicitly agree before using the tool.
   Uses the NaijaPortals design tokens with safe fallbacks so it stays
   readable even if this stylesheet is evaluated before naijaportals.css.
   ========================================================================== */

/* --- Blocking full-screen overlay --------------------------------------- */
.np-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000; /* above the sticky .np-site-nav (z-index 1000) */
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: var(--space-5, 24px);
  background: rgba(23, 34, 29, 0.55);
  backdrop-filter: blur(2px);
}

.np-consent-backdrop.is-open {
  display: flex;
}

/* Prevents page interaction / scrolling anywhere behind the modal */
body.np-consent-locked {
  overflow: hidden;
}

/* --- Readable modal panel ---------------------------------------------- */
.np-consent-panel {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  padding: var(--space-6, 32px);
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-line, #dbe4dd);
  border-radius: var(--radius, 8px);
  box-shadow: 0 20px 60px rgba(23, 34, 29, 0.25);
}

.np-consent-panel h2 {
  margin: 0 0 var(--space-3, 12px);
  color: var(--color-ink, #17221d);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.np-consent-lead {
  margin: 0 0 var(--space-4, 16px);
  color: var(--color-ink-muted, #607169);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Privacy bullets */
.np-consent-points {
  margin: 0 0 var(--space-5, 24px);
  padding: 0;
  list-style: none;
}

.np-consent-points li {
  position: relative;
  padding: var(--space-2, 8px) 0 var(--space-2, 8px) var(--space-5, 24px);
  color: var(--color-ink, #17221d);
  font-size: 0.9375rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--color-line, #dbe4dd);
}

.np-consent-points li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-accent, #0b6e3d);
  border-radius: 50%;
}

.np-consent-note {
  margin: 0 0 var(--space-5, 24px);
  color: var(--color-ink-muted, #607169);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* --- Consent checkbox + continue button states -------------------------- */
.np-consent-check {
  display: flex;
  gap: var(--space-3, 12px);
  align-items: flex-start;
  margin-bottom: var(--space-5, 24px);
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.np-consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  accent-color: var(--color-accent, #0b6e3d);
  cursor: pointer;
}

.np-consent-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-accent, #0b6e3d);
  outline-offset: 2px;
}

.np-consent-continue {
  display: block;
  width: 100%;
  padding: var(--space-3, 12px) var(--space-5, 24px);
  border: none;
  border-radius: var(--radius-sm, 4px);
  background: var(--color-accent, #0b6e3d);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

/* Enabled state */
.np-consent-continue:not(:disabled):hover,
.np-consent-continue:not(:disabled):focus-visible {
  background: var(--color-accent-strong, #084f2d);
}

/* Disabled state */
.np-consent-continue:disabled {
  background: var(--color-line-strong, #c8d4cc);
  color: var(--color-ink-muted, #607169);
  cursor: not-allowed;
  opacity: 0.75;
}