.cookie-panel[hidden], .cookie-settings-button[hidden] { display: none; }
.cookie-panel {
  position: fixed;
  inset-inline: auto 1rem;
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  z-index: 38;
  width: min(calc(100% - 2rem), 32rem);
  max-height: min(17rem, 65vh);
  overflow: auto;
  box-sizing: border-box;
  padding: 1rem;
  border: 1px solid #565656;
  border-radius: .55rem;
  background: #151515;
  color: #f5f5f5;
  box-shadow: 0 6px 20px #0005;
  font: .94rem/1.45 system-ui, sans-serif;
}
.cookie-panel h2 { margin: 0 0 .35rem; font: 700 1.12rem/1.25 system-ui, sans-serif; color: inherit; }
.cookie-panel p { margin: 0; color: #e2e2e2; }
.cookie-panel p + p { margin-block-start: .35rem; }
.cookie-panel a { color: #ffc767; text-decoration: underline; }
.cookie-panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-block-start: .75rem; }
.cookie-panel-actions button {
  min-height: 44px;
  border: 1px solid #888;
  border-radius: .35rem;
  padding: .5rem 1rem;
  background: #262626;
  color: #f5f5f5;
  font: 650 .94rem system-ui, sans-serif;
  cursor: pointer;
}
.cookie-panel-actions button:not(:disabled):hover { background: #383838; }
.cookie-panel-actions button:disabled { opacity: .6; cursor: default; }
.cookie-panel :focus-visible, .cookie-settings-button:focus-visible { outline: 2px solid #ffc767; outline-offset: 3px; }
.cookie-settings-button {
  margin: .55rem clamp(1rem, 4vw, 2rem) .8rem;
  padding: .35rem .2rem;
  min-height: 36px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
@media (max-width: 730px) {
  .records-home .cookie-panel { inset-block-end: calc(78px + env(safe-area-inset-bottom)); }
}
@media print { .cookie-panel, .cookie-settings-button { display: none; } }