/* The consent panel enters from the bottom without moving the page layout. */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  align-items: center;
  gap: 26px 40px;
  max-height: calc(100vh - 24px);
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px var(--pad) max(26px, env(safe-area-inset-bottom, 0px));
  background: #eeeee7;
  color: var(--ink);
  border-top: 1px solid #c8c8bf;
  box-shadow: 0 -12px 45px #0000001c;
}
.cookie-banner:not([hidden]) { animation: cookie-banner-enter .55s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes cookie-banner-enter {
  from { transform: translateY(calc(100% + 24px)); }
  to { transform: translateY(0); }
}
.cookie-copy h2 { font-size: 25px; margin: 7px 0 12px; letter-spacing: -.6px; }
.cookie-copy > p:not(.eyebrow) { font-size: 12px; line-height: 1.75; max-width: 780px; }
.cookie-copy > a { display: inline-block; font-size: 12px; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions, .cookie-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-action {
  flex: 1 1 140px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.cookie-action:hover { background: #44443a; }
.consent-dialog { width: 700px; }
.consent-dialog h2 { margin-bottom: 20px; }
.consent-dialog > p, .consent-option p { font-size: 13px; line-height: 1.8; }
.consent-option { border-top: 1px solid var(--line); padding: 20px 0; }
.consent-option label { display: flex; align-items: center; gap: 12px; font-size: 14px; min-height: 44px; }
.consent-option input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; }
.consent-option p { margin: 8px 0 0; color: var(--muted); }
.consent-option code { overflow-wrap: anywhere; }
.consent-status { color: var(--muted); }
.consent-dialog .consent-note { font-size: 11px; margin: 20px 0; }
.consent-dialog .text-link { margin-top: 5px; }
.not-found > [data-consent-settings] { display: block; margin-top: 26px; }
@media (max-width: 900px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .cookie-banner { padding: 24px 20px max(24px, env(safe-area-inset-bottom, 0px)); }
  .cookie-actions, .cookie-settings-actions { flex-direction: column; }
  .cookie-action { flex: none; width: 100%; }
  .consent-dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner:not([hidden]) { animation: none; }
}
