/* =============================================================
   Anvo — styles ONLY for the injected chat thread + counter state.
   Your existing design CSS is untouched; these classes (anvo-*)
   are new and scoped to the reply area.
   ============================================================= */
.anvo-thread{
  display:none;
  max-width:1180px;
  margin:16px auto 0;
  padding:18px 20px;
  background:#fff;
  border:1px solid #e4eaf4;
  border-radius:18px;
  max-height:440px;
  overflow-y:auto;
  font-family:"Inter","Segoe UI",system-ui,sans-serif;
}
.anvo-thread.is-active{display:block;}

.anvo-msg{display:flex;gap:10px;margin-bottom:14px;align-items:flex-start;}
.anvo-msg--user{flex-direction:row-reverse;}
.anvo-av{
  flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  font-weight:700;font-size:12px;color:#fff;font-family:"Plus Jakarta Sans",sans-serif;
}
.anvo-msg--bot .anvo-av{background:#1657c9;}
.anvo-msg--user .anvo-av{background:#ff7a18;}
.anvo-bubble{
  max-width:78%;padding:11px 15px;border-radius:15px;font-size:14.5px;line-height:1.55;
  white-space:pre-wrap;word-wrap:break-word;
}
.anvo-msg--bot .anvo-bubble{background:#f2f7ff;color:#101c33;border-bottom-left-radius:5px;}
.anvo-msg--user .anvo-bubble{background:#1657c9;color:#fff;border-bottom-right-radius:5px;}

.anvo-dots{display:inline-flex;gap:5px;padding:3px 0;}
.anvo-dots i{width:7px;height:7px;border-radius:50%;background:#2f74e8;animation:anvoBounce 1.2s infinite;}
.anvo-dots i:nth-child(2){animation-delay:.15s;}
.anvo-dots i:nth-child(3){animation-delay:.3s;}
@keyframes anvoBounce{0%,60%,100%{transform:translateY(0);opacity:.5;}30%{transform:translateY(-5px);opacity:1;}}

.anvo-error{
  background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;
  border-radius:12px;padding:10px 14px;font-size:13.5px;margin-bottom:12px;
}

/* counter turns orange at the limit — matches the 0/250 span in .newchat */
.anvo-count--max{color:#ff7a18 !important;}

@media (prefers-reduced-motion:reduce){.anvo-dots i{animation:none;}}
