/* ── Consent overlay ────────────────────────────────── */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,14,12,0.50);
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* display:flex only when visible — keeps [hidden] working despite author styles */
.consent-overlay:not([hidden]) {
  display: flex;
}

/* ── Modal card ─────────────────────────────────────── */
.consent-modal {
  background: #fff;
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
  padding: 28px 28px 20px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.22);
  animation: consent-in 0.22s ease both;
}

@keyframes consent-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ─────────────────────────────────────────── */
.consent-modal__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #6B635A);
  margin: 0 0 8px;
}

.consent-modal__title {
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink, #0F0E0C);
  margin: 0 0 10px;
  line-height: 1.3;
}

.consent-modal__body {
  font-size: 0.8125rem;
  color: var(--ink-2, #3A342D);
  line-height: 1.6;
  margin: 0 0 14px;
}

/* ── Cookie type rows ───────────────────────────────── */
.consent-modal__types {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: rgba(15,14,12,0.04);
  border-radius: 6px;
}

.consent-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.consent-type strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink, #0F0E0C);
}

.consent-type span {
  font-size: 0.75rem;
  color: var(--muted, #6B635A);
  line-height: 1.45;
}

/* ── Buttons ────────────────────────────────────────── */
.consent-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.consent-btn {
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  line-height: 1;
  width: 100%;
  transition: opacity 0.15s;
}

.consent-btn:hover { opacity: 0.82; }

.consent-btn--primary {
  background: var(--orange, #E85D2A);
  color: #fff;
}

.consent-btn--secondary {
  background: transparent;
  color: var(--ink-2, #3A342D);
  border: 1.5px solid rgba(15,14,12,0.15);
}

/* ── Footer links ───────────────────────────────────── */
.consent-modal__links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 0;
}

.consent-modal__links a {
  font-size: 0.75rem;
  color: var(--muted, #6B635A);
  text-underline-offset: 2px;
}

.consent-modal__links a:hover { color: var(--ink, #0F0E0C); }

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 520px) {
  .consent-overlay {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }
  .consent-modal {
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    padding: 24px 20px 28px;
  }
}
