.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(560px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  z-index: 9998;
  pointer-events: none;
  transition: opacity 0.7s ease, background 0.7s ease;
}

.cookie-overlay.is-visible {
  background: rgba(0, 0, 0, 0.24);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  padding: 18px 18px 16px;
  transition: box-shadow 0.45s ease, border-color 0.45s ease, transform 0.45s ease;
}

.cookie-banner.is-visible .cookie-banner__inner {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.12);
}

.cookie-banner__content h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  line-height: 1.2;
}

.cookie-banner__content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-banner__content a {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cookie-banner__actions .btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-banner__actions .btn:hover {
  transform: translateY(-1px);
}

.cookie-banner__actions .btn-primary {
  background: var(--brand-primary, #111111);
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.45s ease;
}

.cookie-banner.is-visible .btn-primary {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.cookie-banner__actions .btn-secondary {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
}

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

  .cookie-banner__inner {
    border-radius: 16px;
    padding: 16px;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }
}
