/* Celva Bio — cookie consent banner (scripts/consent.js).
   Native CSS only; uses site tokens with safe fallbacks so it renders
   correctly even if loaded before the token sheet. */

.celva-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 20px;
  background: var(--bg, #ffffff);
  color: var(--fg, #1b2733);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(16, 32, 48, 0.18);
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
}

.celva-consent__text {
  margin: 0;
  flex: 1 1 320px;
}

.celva-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.celva-consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.celva-consent__btn {
  font: inherit;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.celva-consent__btn--ghost {
  background: transparent;
  border-color: var(--border-strong, #cbd5e1);
  color: inherit;
}

.celva-consent__btn--solid {
  background: var(--accent, #1b6b5a);
  color: #ffffff;
}

.celva-consent__btn--solid:hover {
  background: var(--accent-hover, #155244);
}

.celva-consent__btn:focus-visible {
  outline: 2px solid var(--accent, #1b6b5a);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .celva-consent {
    flex-direction: column;
    align-items: stretch;
  }
  .celva-consent__text {
    /* In a column, the 320px flex-basis above becomes a HEIGHT, ballooning the
       text box. Reset it so the banner is only as tall as its content. */
    flex: 0 0 auto;
  }
  .celva-consent__actions {
    justify-content: flex-end;
  }
}
