/* static/css/shared/cookies.css */

/* ── Cookie consent ─────────────────────────────────────────
   Fully self-contained: does NOT rely on components.css or page-level
   CSS variables, so it looks identical on every base (landing, funnel
   shell, app, paywall, free-results). Brand blue is hardcoded (#134BA1).
*/
.pf-cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(19, 75, 161, 0.18);
  font-size: 0.86rem;
  font-family: inherit;
  color: #1a1a1a;
  z-index: 100000;
  pointer-events: auto;
}



.pf-cookie__text strong { display: block; margin-bottom: 4px; color: #1a1a1a; }
.pf-cookie__text p { margin: 0; color: #555; line-height: 1.55; }
.pf-cookie__text a { color: #134BA1; font-weight: 600; }



/* ── Self-contained buttons ─────────────────────────────────
   Banner-scoped so we never inherit (or fail to inherit) .lp-btn styles.
*/
.pf-cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }

.pf-cookie__btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid transparent;
  font-family: inherit;
  line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}

.pf-cookie__btn--accept {
  background: #134BA1;
  color: #fff;
  border-color: #134BA1;
}
.pf-cookie__btn--accept:hover { background: #0f3c82; border-color: #0f3c82; }

.pf-cookie__btn--ghost {
  background: transparent;
  color: #134BA1;
  border-color: #c5d8ff;
}
.pf-cookie__btn--ghost:hover { background: #eef3ff; }

.pf-cookie[hidden] {
  display: none !important;
}

/* ── Little equalizer for the music vibe ────────────────────── */
.pf-cookie__bars { display: flex; align-items: flex-end; gap: 3px; height: 28px; flex-shrink: 0; }
.pf-cookie__bars span {
  width: 4px; background: #134BA1; border-radius: 2px;
  animation: pf-eq 1s ease-in-out infinite;
}
.pf-cookie__bars span:nth-child(1){animation-delay:0s;}
.pf-cookie__bars span:nth-child(2){animation-delay:.15s;}
.pf-cookie__bars span:nth-child(3){animation-delay:.3s;}
.pf-cookie__bars span:nth-child(4){animation-delay:.45s;}
.pf-cookie__bars span:nth-child(5){animation-delay:.6s;}
@keyframes pf-eq { 0%,100%{height:8px;} 50%{height:26px;} }

/* ── Desktop: compact card anchored bottom-left ─────────────── */
@media (min-width: 601px) {
  .pf-cookie {
    left: 24px;
    right: auto;          /* detach from right edge */
    bottom: 24px;
    width: 360px;
    max-width: 360px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 22px 18px;
  }

  .pf-cookie__bars {
    height: 22px;         /* slightly smaller decorative strip */
    margin-bottom: 2px;
  }

  .pf-cookie__text {
    width: 100%;
  }

  .pf-cookie__actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 2px;
  }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pf-cookie { flex-direction: column; align-items: stretch; gap: 12px; }
  .pf-cookie__bars { display: none; }
  .pf-cookie__actions .pf-cookie__btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-cookie__bars span { animation: none; height: 16px; }
}