.am-notice { padding:10px; background:#fffbe6; border:1px solid #ffe58f; border-radius:8px; font-size:14px;}
.am-thread-item { padding:10px; border-bottom:1px solid #eee; cursor:pointer; }
.am-thread-item:hover { background:#fafafa; }
.am-thread-unread .am-thread-title { font-weight:700; }
.am-thread-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.am-badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; padding:0 6px; height:20px; font-size:12px; background:#d00; color:#fff; border-radius:999px; }
.am-thread-last { font-size:12px; color:#666; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.am-msg { margin:8px 0; display:flex; flex-direction:column; max-width:80%; }
.am-msg-me { margin-left:auto; align-items:flex-end; }
.am-msg-other { margin-right:auto; align-items:flex-start; }
.am-msg-bubble { padding:8px 10px; background:#f2f3f5; border-radius:12px; }
.am-msg-me .am-msg-bubble { background:#e6f4ff; }
.am-msg-meta { font-size:11px; color:#888; margin-top:2px; }

[data-am-unread-badge] { display:none; min-width:18px; height:18px; padding:0 6px; font-size:12px; border-radius:999px; align-items:center; justify-content:center; background:#d00; color:#fff; }

.am-widget-status { margin-top:8px; font-size:14px; color:#2b7a0b; }

/* Subtle background for threads with unread messages */
.am-thread-item.am-thread-unread { background: rgba(255,0,0,0.06); }
.am-thread-item.am-thread-unread:hover { background: rgba(255,0,0,0.10); }


/* Smaller font and clearer hierarchy */
.am-msg-bubble { font-size:14px; line-height:1.45; }
.am-msg-meta { font-size:11px; color:#888; margin-top:2px; }
.am-msg-label { font-size:11px; color:#777; margin-bottom:2px; }

/* Hide chat form until a thread is opened (failsafe; JS also toggles) */
[data-am-messages-page] [data-chat-form] { display:none; }

/* Unread thread background tint */
.am-thread-unread { background: rgba(255,0,0,0.06); }
.am-thread-unread:hover { background: rgba(255,0,0,0.10); }

/* v1.1.5 tweaks */
.am-msg-bubble{font-size:14px;line-height:1.35}
.am-msg-label{font-size:11px;color:#7a8795;margin:0 4px 2px;}
.am-thread-unread{background:rgba(255,0,0,0.06)}
.am-thread-item:hover{background:rgba(255,0,0,0.10)}
