:root { --cookie-space: 0px; scroll-padding-bottom: var(--cookie-space); }
body { padding-bottom: var(--cookie-space); }
.cookie-banner,
.cookie-dialog {
  box-sizing: border-box;
  font-family: "Instrument Sans", "Sora", Arial, sans-serif;
  color: #141413;
  background: #faf9f5;
  border: 1px solid #b6b4ac;
  border-radius: 18px;
  font-size: .95rem;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding: 24px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 12px 48px #14141326;
}
.cookie-copy { flex: 1 1 420px; }
.cookie-banner h2,
.cookie-dialog h2 { font-family: inherit; font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 12px; }
.cookie-banner p { margin: 0; }
.cookie-banner a,
.cookie-dialog a { color: #141413; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button {
  font: inherit;
  background: #faf9f5;
  color: #141413;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid #5e5d59;
  border-radius: 9px;
  cursor: pointer;
}
.cookie-actions button:hover { background: #e8e6dc; }
.cookie-banner :focus-visible,
.cookie-dialog :focus-visible { outline: 2px solid #141413; outline-offset: 3px; }
.cookie-dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; }
.cookie-dialog::backdrop { background: #14141399; }
.cookie-option { display: flex; align-items: start; gap: 12px; margin-block: 24px; cursor: pointer; }
.cookie-option input { flex: 0 0 auto; width: 24px; height: 24px; accent-color: #141413; margin-top: 3px; }
.cookie-error:not([hidden]) { flex-basis: 100%; margin-top: 16px; font-weight: 600; }
.cookie-settings {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 6px 0;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}
.cookie-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 600px) {
  .cookie-banner { inset: auto 8px 8px; padding: 16px; gap: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1 1 auto; }
  .cookie-dialog { padding: 20px; }
}
