.cookie-panel {
  --cookie-offset: 20px;
  position: fixed;
  inset-inline-end: var(--cookie-offset);
  inset-block-end: calc(var(--cookie-offset) + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  box-sizing: border-box;
  width: min(360px, calc(100% - var(--cookie-offset) * 2));
  max-height: calc(100dvh - var(--cookie-offset) * 2 - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  padding: 22px;
  border: 1px solid #3d4741;
  border-radius: 17px;
  background: #222625;
  color: #f2f5f1;
  box-shadow: 0 12px 38px #0008;
  font: 14px/1.55 system-ui, sans-serif;
  animation: cookie-panel-enter 360ms cubic-bezier(.2,.65,.3,1) both;
}

.cookie-panel h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
}

.cookie-panel p {
  margin: 0 0 18px;
  color: #c1c9c3;
}

.cookie-actions {
  display: grid;
  gap: 8px;
}

.cookie-actions button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #52614f;
  border-radius: 8px;
  background: #2c322e;
  color: #f2f5f1;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions [data-accept] {
  border-color: #a3e85f;
  background: #a3e85f;
  color: #182411;
}

.cookie-actions button:hover {
  filter: brightness(1.12);
}

.cookie-actions button:focus-visible {
  outline: 2px solid #a3e85f;
  outline-offset: 2px;
}

@keyframes cookie-panel-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .cookie-panel {
    --cookie-offset: 12px;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-panel {
    animation: none;
  }
}
