.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1400;
  width: min(332px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: var(--surface, #ffffff);
  color: var(--ink, #000000);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  animation: cookie-banner-enter 180ms ease-out;
}

.cookie-banner-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.cookie-banner-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted-strong, rgba(0, 0, 0, 0.72));
}

.cookie-banner-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cookie-banner-button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.12s ease;
}

.cookie-banner-button:hover,
.cookie-banner-button:focus-visible {
  opacity: 0.92;
}

.cookie-banner-button:active {
  transform: translateY(1px);
}

.cookie-banner-button.reject {
  background: #e9e9e9;
  color: #4b4b4b;
}

.cookie-banner-button.accept {
  background: #000000;
  color: #ffffff;
}

body[data-theme="dark"] .cookie-banner {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .cookie-banner-button.reject {
  background: #e2e2e2;
  color: #191919;
}

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

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

@media (max-width: 640px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: min(332px, calc(100vw - 24px));
    padding: 14px;
    border-radius: 16px;
  }
}