.cookie-panel {
  box-sizing: border-box;
  position: fixed;
  z-index: 55;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(432px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--site-line, #39393e);
  border-radius: 20px;
  background: var(--site-surface, #202023);
  box-shadow: 0 12px 44px rgb(0 0 0 / .24);
  color: var(--site-text, #f6f6f6);
  font: 500 14px/1.45 Inter, system-ui, sans-serif;
}
.cookie-panel[hidden], .cookie-panel [hidden] { display: none; }
.cookie-panel h2 { margin: 0; font: 800 21px/1.2 Manrope, system-ui, sans-serif; letter-spacing: -.035em; color: inherit; }
.cookie-panel p { margin: 7px 0 14px; font: inherit; color: var(--site-muted, #b5b5bd); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cookie-panel button {
  cursor: pointer;
  padding: 0 11px;
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid var(--site-line, #44444b);
  background: var(--site-surface-soft, #303034);
  color: inherit;
  font: 650 12px/1.2 Inter, system-ui, sans-serif;
}
.cookie-panel button:is([data-action="accept"], [data-action="save"]) { background: #c6321e; border-color: transparent; color: #fff; }
.cookie-panel button:hover { filter: brightness(1.12); }
.cookie-panel :focus-visible { outline: 2px solid var(--site-accent, #ec3f25); outline-offset: 2px; }
#cookie-options { margin-top: 14px; border-top: 1px solid var(--site-line, #39393e); padding-top: 14px; }
#cookie-options label { display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 650; }
#cookie-options input { width: 18px; height: 18px; accent-color: #c6321e; }
#cookie-options a { color: inherit; text-decoration: underline; }
@media (max-width: 520px) {
  .cookie-panel { inset-inline: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; padding: 16px; }
  .cookie-actions button { flex: 1 1 auto; padding-inline: 8px; min-height: 44px; }
}
