/* ─── Cookie consent banner ──────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fef9ef;
  border-top: 1px solid var(--border, #e8e0f0);
  box-shadow: 0 -4px 24px rgba(124, 77, 255, 0.08);
  font-family: var(--ff-body, 'Nunito', sans-serif);

  /* Start hidden below viewport */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Slide up on show */
.cookie-banner--visible {
  transform: translateY(0);
}

/* Slide back down on hide */
.cookie-banner--hiding {
  transform: translateY(100%);
}

.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink, #2a1a5e);
  line-height: 1.5;
  flex: 1 1 220px;
}

.cookie-link {
  color: var(--purple, #7c4dff);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Base button */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--ff-body, 'Nunito', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

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

.cookie-btn:active {
  transform: translateY(0);
  opacity: 0.7;
}

/* Filled purple — Accept */
.cookie-btn-accept {
  background: var(--purple, #7c4dff);
  color: #fff;
  border-color: var(--purple, #7c4dff);
}

/* Ghost — No thanks */
.cookie-btn-decline {
  background: transparent;
  color: var(--muted, #8a7aaa);
  border-color: var(--border, #e8e0f0);
}

.cookie-btn-decline:hover {
  border-color: var(--muted, #8a7aaa);
}

/* ─── Mobile responsive ──────────────────────────────────────────────────── */

@media (max-width: 520px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cookie-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
