body { padding-bottom: var(--cookie-panel-space, 0px); }
.cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
}
.cookie-panel {
  position: fixed;
  z-index: 80;
  inset: auto 20px max(20px, env(safe-area-inset-bottom));
  width: min(calc(100% - 40px), 1080px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px;
  max-height: 75dvh;
  overflow-y: auto;
  border: 0;
  border-radius: 16px;
  background: var(--ink-deep, #151d30);
  color: #fff;
  box-shadow: 0 20px 60px rgba(21, 29, 48, .28);
  font-family: inherit;
}
.cookie-panel[hidden] { display: none; }
.cookie-panel-content { flex: 1; min-width: 0; }
.cookie-panel h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 750; line-height: 1.3; letter-spacing: normal; }
.cookie-panel p { margin: 0 0 10px; max-width: 68ch; font-size: .94rem; line-height: 1.5; }
.cookie-status { color: #d2d9e7; font-size: .85rem !important; }
.cookie-status:empty { display: none; }
.cookie-privacy { color: var(--yellow, #fabb43); text-decoration: underline; text-underline-offset: 4px; font-size: .9rem; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 340px; max-width: 42%; flex-shrink: 0; }
.cookie-action, .cookie-close {
  min-height: 44px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--ink, #222e49);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
}
.cookie-action:hover { background: var(--yellow-soft, #fff3cf); }
.cookie-action:disabled { color: #687080; border-color: #b7bfcd; cursor: default; background: var(--surface, #fff); }
.cookie-close { grid-column: 1 / -1; justify-self: end; background: transparent; color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.cookie-settings:focus-visible { outline: 3px solid var(--ink, #222e49); outline-offset: 4px; }
.cookie-panel :focus-visible { outline: 3px solid var(--yellow, #fabb43); outline-offset: 4px; }
@media (max-width: 720px) {
  .cookie-panel { inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .cookie-actions { width: 100%; max-width: none; }
  .cookie-close { grid-column: 1 / -1; }
}
