.cookie-banner {
  position: fixed;
  left: calc(var(--grid, 8px) * 2);
  bottom: calc(var(--grid, 8px) * 2);
  z-index: 200;
  max-width: min(360px, calc(100vw - 32px));
  padding: calc(var(--grid, 8px) * 2) calc(var(--grid, 8px) * 5) calc(var(--grid, 8px) * 2) calc(var(--grid, 8px) * 2);
  background: var(--bg, #ffffff);
  border: 1px solid var(--border, #dbdbdb);
  border-radius: var(--radius, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg, #000000);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--fg, #000000);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  opacity: 0.75;
}

.cookie-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted, #8c8c8c);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.cookie-banner__close:hover {
  color: var(--fg, #000000);
  background: var(--surface, #f5f5f5);
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
