
@media (min-width: 783px){
  #an-desktop-chat-search.andcs-auto{ display:block; }
}
@media (max-width: 782px){
  #an-desktop-chat-search.andcs-auto{ display:none; }
}
.andcs-chat{ max-width:1100px; margin:12px auto; border:1px solid #e6e6e6; border-radius:16px; background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.06); display:flex; flex-direction:column; min-height:260px; }
.andcs-thread{ padding:18px; overflow:auto; max-height:50vh; }
.andcs-bubble{ display:flex; gap:10px; margin-bottom:14px; }
.andcs-bubble.user{ justify-content:flex-end; }
.andcs-bubble.bot{ justify-content:flex-start; }
.andcs-bubble .avatar{ width:32px; height:32px; border-radius:8px; background:#eef3f0; display:flex; align-items:center; justify-content:center; font-weight:600; }
.andcs-msg{ max-width:76%; padding:10px 12px; border-radius:14px; line-height:1.5; font-size:16px; }
.user .andcs-msg{ background:#e7f5ee; border:1px solid #cfe9dd; }
.bot .andcs-msg{ background:#f7fbf8; border:1px solid #e6efe9; }
.andcs-item{ margin-top:10px; padding:10px 12px; border-radius:12px; border:1px solid #eef0ef; background:#fff; }
.andcs-item a{ text-decoration:none; color:#0a3d24; font-weight:600; display:block; margin-bottom:4px; }
.andcs-item .excerpt{ font-size:14px; opacity:.85; }
.andcs-typing{ display:inline-block; width:32px; }
.andcs-typing span{ display:inline-block; width:6px; height:6px; border-radius:50%; background:#9bb7aa; margin-right:4px; animation: andcs-bounce 1.2s infinite ease-in-out; }
.andcs-typing span:nth-child(2){ animation-delay: .15s; }
.andcs-typing span:nth-child(3){ animation-delay: .3s; }
@keyframes andcs-bounce{ 0%,80%,100%{transform:scale(0);opacity:.5;} 40%{transform:scale(1);opacity:1;} }
.andcs-inputbar{ border-top:1px solid #e6e6e6; display:flex; gap:10px; padding:12px; }
.andcs-input{ flex:1 1 auto; height:52px; border-radius:9999px; border:1px solid #cfd8d3; padding:0 18px; font-size:16px; outline:none; }
.andcs-send{ height:52px; padding:0 18px; border-radius:9999px; border:0; background:#009345; color:#fff; cursor:pointer; }
