.cookie-panel {
  --cookie-blue: #285ec2;
  position: fixed;
  z-index: 100000;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: clamp(20px, 2vw, 28px);
  color: #1b1d21;
  background: white;
  border: 1px solid #e1e6ee;
  border-radius: 24px;
  box-shadow: 0 8px 40px #142c501c;
  font: 400 15px/1.45 Inter, system-ui, sans-serif;
  text-align: left;
}
.cookie-panel:has([data-cookie-options]:not([hidden])) { width: min(408px, calc(100% - 32px)); }
.cookie-panel[hidden], .cookie-panel [hidden] { display: none; }
.cookie-panel h2 { margin: 0 0 8px; font-family: inherit; font-size: 23px; font-weight: 600; line-height: 1.14; letter-spacing: -.04em; }
.cookie-panel p { color: #505763; font: inherit; margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.cookie-panel button, .cookie-reopen, .cookie-panel summary, .cookie-switch { cursor: pointer; }
.cookie-actions button {
  min-height: 40px; padding: 9px 15px; border-radius: 99px;
  background: var(--cookie-blue); color: white; border: 1px solid var(--cookie-blue);
  font: 600 14px/1.25 Inter, system-ui, sans-serif;
}
.cookie-actions .cookie-secondary { background: white; color: var(--cookie-blue); }
.cookie-actions .cookie-link, .cookie-back {
  color: var(--cookie-blue); background: transparent; border: 0;
}
.cookie-actions .cookie-link { margin-inline-start: auto; }
.cookie-back { padding: 4px 0; margin-bottom: 16px; font: inherit; }
.cookie-categories { margin-top: 20px; border-top: 1px solid #e1e6ee; }
.cookie-category { position: relative; border-bottom: 1px solid #e1e6ee; }
.cookie-category summary { list-style: none; padding: 15px 110px 15px 0; font-weight: 550; }
.cookie-category summary::-webkit-details-marker { display: none; }
.cookie-category summary::before { content: '+'; display: inline-block; width: 21px; color: var(--cookie-blue); }
.cookie-category details[open] summary::before { content: '−'; }
.cookie-category details p { margin: 0 0 14px 21px; font-size: 14px; }
.cookie-always, .cookie-switch { position: absolute; top: 26px; right: 0; transform: translateY(-50%); }
.cookie-always { color: #536071; font-size: 12px; }
.cookie-panel .cookie-switch {
  appearance: none; width: 44px; height: 26px; margin: 0; padding: 3px;
  border: 1px solid #aab2c0; border-radius: 20px; background: #d7dce4;
}
.cookie-switch::before { content: ''; display: block; width: 18px; height: 18px; background: white; border-radius: 100%; box-shadow: 0 1px 3px #0003; }
.cookie-panel .cookie-switch:checked { background: var(--cookie-blue); border-color: var(--cookie-blue); }
.cookie-switch:checked::before { transform: translateX(18px); }
.cookie-panel :focus-visible, .cookie-reopen:focus-visible { outline: 2px solid #4285f5; outline-offset: 2px; }
.cookie-reopen { border: 0; padding: 0; background: transparent; color: inherit; text-decoration: underline; font: inherit; }
@media (max-width: 520px) {
  .cookie-panel { padding: 18px; border-radius: 18px; }
  .cookie-actions .cookie-link { margin-inline-start: 0; }
}
