.cookie-settings {
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  padding: .5rem 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.cookie-panel {
  position: fixed;
  z-index: 1000;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  inline-size: min(31rem, calc(100% - 2rem));
  max-block-size: calc(100dvh - 2rem);
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #4e5666;
  border-radius: 1rem;
  background: #171b22;
  color: #f4f5f8;
  box-shadow: 0 12px 36px #0008;
  font: 400 .9375rem/1.5 system-ui, sans-serif;
  text-align: left;
}
.cookie-panel[hidden], .cookie-settings[hidden] { display: none; }
.cookie-panel h2 { margin: 0 0 .5rem; font: 700 1.125rem/1.3 system-ui, sans-serif; letter-spacing: normal; }
.cookie-panel p { margin: 0 0 .75rem; }
.cookie-panel p:empty { display: none; }
.cookie-actions, .cookie-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.cookie-links { margin-block-end: .875rem; }
.cookie-links a { color: #cedaff; text-decoration: underline; text-underline-offset: .2em; }
.cookie-actions button {
  flex: 1 1 11rem;
  min-block-size: 2.75rem;
  padding: .5rem .75rem;
  border: 1px solid #8294b7;
  border-radius: .625rem;
  background: #252d3c;
  color: inherit;
  font: 650 .875rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.cookie-actions button:hover { background: #35415a; }
.cookie-panel :focus-visible, .cookie-settings:focus-visible { outline: 2px solid #8bacff; outline-offset: 3px; }

.cookie-document {
  margin: 0;
  background: #171b22;
  color: #f4f5f8;
  font: 400 1rem/1.6 system-ui, sans-serif;
}
.cookie-document main { max-inline-size: 44rem; margin: auto; padding: 2rem 1rem; }
.cookie-document h1, .cookie-document h2 { line-height: 1.25; }
.cookie-document a { color: #cedaff; text-underline-offset: .2em; }
