/* ============================================================
   COOKIE CONSENT BANNER  (light design system)
   Class names kept in sync with cookie-consent.js.
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  width: calc(100% - 32px);
  max-width: 780px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

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

.cookie-banner.is-hiding {
  transform: translateX(-50%) translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

/* Icon */
.cookie-banner__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--tint);
  border: 1px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-banner__icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-ink);
}

/* Text */
.cookie-banner__body {
  flex: 1;
  min-width: 0;
}

.cookie-banner__title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.cookie-banner__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.cookie-banner__text a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--ink);
}

/* Actions */
.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
  flex-shrink: 0;
  align-items: stretch;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

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

.cookie-btn--accept {
  background-color: var(--cta);
  color: var(--cta-text);
  border-color: var(--cta);
}

.cookie-btn--accept:hover {
  box-shadow: var(--shadow);
}

.cookie-btn--reject {
  background-color: var(--surface);
  color: var(--body);
  border-color: var(--line);
}

.cookie-btn--reject:hover {
  color: var(--ink);
  border-color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    bottom: 16px;
    width: calc(100% - 24px);
  }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions {
    flex-direction: row;
    min-width: 0;
    width: 100%;
  }
  .cookie-btn { flex: 1; }
}
