#cookie-banner,
#cookie-preferences {
  box-sizing: border-box;
  max-width: 34rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line, #d9dcde);
  border-radius: .25rem;
  background: var(--surface, #fff);
  color: var(--ink, #1c2024);
}

#cookie-banner {
  position: fixed;
  z-index: 100;
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) 1rem;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 4px 24px #0003;
}

#cookie-preferences { width: calc(100% - 2rem); }
#cookie-preferences::backdrop { background: #0007; }
#cookie-banner h2,
#cookie-preferences h2 { margin: 0; font-size: 1.3rem; }
#cookie-banner p,
#cookie-preferences p { margin: .5rem 0 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.cookie-actions button {
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid currentColor;
  border-radius: .125rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-settings-footer { padding-bottom: 1.5rem; }
