/* Consent banner — small fixed card, bottom of the viewport */

.consent {
  position: fixed;
  z-index: 1100;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px -12px oklch(0.22 0.02 120 / 0.35);
  font-family: var(--f-body);
  animation: consent-in 0.35s ease-out both;
}

.consent-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.consent-actions {
  display: flex;
  gap: 8px;
}

.consent-btn {
  flex: 1;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.consent-accept {
  background: var(--olive-deep);
  color: var(--cream);
}
.consent-accept:hover { background: oklch(0.28 0.06 130); }

.consent-decline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.consent-decline:hover { background: var(--cream); }

.consent-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .consent {
    inset-inline: auto 20px;
    bottom: 20px;
    width: 380px;
    padding: 18px 20px;
  }
  .consent-text { font-size: 14px; }
  .consent-actions { justify-content: flex-end; }
  .consent-btn { flex: 0 0 auto; }
}

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

@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
}
