/* IC_CHAT_WIDGET_01 — compatible with InstallCare light/dark themes */
#ic-chat-root{font-family:inherit;position:relative;z-index:120000}
#ic-chat-fab{position:fixed;right:16px;bottom:92px;width:59px;height:59px;border-radius:50%;border:2px solid #79b7f6;background:linear-gradient(140deg,#0874d1,#173c70);color:white;box-shadow:0 10px 30px #0006;cursor:grab;touch-action:none;font-size:25px;z-index:120002;display:flex;justify-content:center;align-items:center}
#ic-chat-fab:active{cursor:grabbing}#ic-chat-fab[hidden]{display:none!important}
#ic-chat-counter{position:absolute;right:-4px;top:-5px;min-width:19px;height:19px;border-radius:20px;padding:1px 4px;background:#d82e4b;color:white;font-size:11px;font-weight:800}
#ic-chat-counter[hidden]{display:none}
#ic-chat-drawer{position:fixed;bottom:160px;right:16px;width:min(370px,calc(100vw - 20px));height:min(540px,calc(100dvh - 115px));background:#1d2b3a;color:#edf4ff;border:1px solid #527497;border-radius:16px;box-shadow:0 12px 42px #0009;z-index:120001;display:flex;flex-direction:column;overflow:hidden}
#ic-chat-drawer[hidden],#ic-chat-room[hidden],#ic-chat-list[hidden]{display:none!important}
#ic-chat-drawer *{box-sizing:border-box}#ic-chat-head,.ic-chat-head{padding:14px 16px;background:#153b63;display:flex;justify-content:space-between;align-items:center}
#ic-chat-close{background:transparent;border:0;color:inherit;font-size:20px;cursor:pointer}
#ic-chat-tabs{padding:8px;display:flex;gap:8px;background:#1d2b3a}
#ic-chat-tabs button{flex:1;border:1px solid #54779d;background:#263c54;color:inherit;border-radius:8px;padding:8px;cursor:pointer}
#ic-chat-list{padding:12px;flex:1;overflow-y:auto;min-height:80px}
.ic-chat-person{width:100%;border:1px solid #4c6178;border-radius:10px;padding:11px;text-align:left;background:transparent;color:inherit;margin-bottom:8px;display:flex;flex-direction:column;gap:5px;cursor:pointer}
.ic-chat-person span{font-size:12px;color:#c1d1e5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}.ic-chat-person i{color:#7cc3ff}
#ic-chat-room{flex:1;display:flex;flex-direction:column;min-height:0}
.ic-chat-back{border:0;background:transparent;text-align:left;padding:9px 13px;color:#a8d3ff;cursor:pointer}
#ic-chat-messages{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.ic-chat-msg{padding:9px;border-radius:12px;background:#293f57;max-width:87%;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere}
.ic-chat-msg.mine{align-self:flex-end;background:#195fa1}.ic-chat-msg time{font-size:10px;color:#c1d1e5}.ic-chat-msg p{margin:4px 0 0;line-height:1.4;font-size:13px}
#ic-chat-form{padding:10px;display:flex;gap:7px;border-top:1px solid #42617b}#ic-chat-input{flex:1;resize:none;min-width:0;min-height:45px;max-height:95px;border-radius:9px;border:1px solid #54779d;padding:9px;background:#101f32;color:white;font-size:13px}
#ic-chat-form button{background:#176ab5;color:#fff;border:0;border-radius:9px;padding:8px 12px;cursor:pointer;font-weight:600}
.ic-chat-caption{padding:7px 12px;font-size:10px;color:#9eb7d4;background:#1a2a3b}
@media(max-width:520px){#ic-chat-drawer{right:8px;bottom:76px;height:min(580px,calc(100dvh - 91px));width:calc(100vw - 16px)}#ic-chat-fab{bottom:82px;right:12px}}
