/* A nonmodal card; reserved document space keeps the footer and CTAs reachable. */
.consent-banner {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 10;
  inset-inline: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(680px, calc(100% - 24px));
  margin-inline: auto;
  max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  font-size: .875rem;
}
.consent-banner[hidden], [data-cookie-settings][hidden] { display: none; }
.consent-banner h2 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 8px; color: var(--charcoal); }
.consent-banner p { margin: 0 0 12px; }
.consent-copy { overflow-y: auto; min-height: 0; margin-bottom: 12px; }
.consent-copy p:last-child { margin-bottom: 0; }
.consent-banner .consent-category { font-weight: 600; }
.consent-banner > a { flex-shrink: 0; text-underline-offset: 3px; }
.consent-actions { display: grid; flex-shrink: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.consent-actions button {
  font: inherit;
  font-weight: 500;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--charcoal);
  border-radius: 3px;
  color: var(--charcoal);
  background: var(--card);
  cursor: pointer;
}
.consent-actions button:hover { background: #f0f0f4; }
.site-footer [data-cookie-settings] { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-footer nav { flex-wrap: wrap; }
.consent-banner :focus-visible, [data-cookie-settings]:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.consent-copy:focus-visible { outline-offset: -2px; }
@media (max-width: 480px) {
  .consent-banner { padding: 16px; font-size: .8125rem; }
  .consent-banner h2 { font-size: 1rem; }
  .consent-actions button { padding-inline: 8px; }
}
@media (max-height: 500px) {
  .consent-banner { max-height: 65vh; max-height: 65dvh; }
}
