/*kefu css cmsyou*/
/*chat*/
.float-icon{position:fixed;bottom:65px;right:10px;width:48px;height:48px;background:#017878;border-radius:50%;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.2);display:flex;align-items:center;justify-content:center;transition:transform 0.2s,background 0.2s;z-index:1000}
.float-icon:hover{transform:scale(1.05);background:#16a085}
.icon-inner{position:relative}
.float-icon svg{width:24px;height:24px;fill:white}
.notification-dot{position:absolute;top:-5px;right:-5px;width:16px;height:16px;background:#ff9800;border-radius:50%;border:2px solid white;display:none;animation:pulse 0.8s ease-in-out infinite}
@keyframes pulse{0%{transform:scale(0.8);opacity:0.8}
50%{transform:scale(1.2);opacity:1}
100%{transform:scale(0.8);opacity:0.8}
}
.chat-window{position:fixed;bottom:60px;right:60px;width:420px;height:560px;border-radius:20px;box-shadow:0 10px 30px rgba(0,0,0,0.2);display:flex;flex-direction:column;overflow:hidden;transition:all 0.3s ease;z-index:1001;opacity:0;visibility:hidden;transform:translateY(20px)}
.chat-window.open{opacity:1;visibility:visible;transform:translateY(0)}
.chat-window *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
.window-header{background:#2c3e50;color:white;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;cursor:move}
.window-header h3{margin:0;font-size:16px;font-weight:normal}
.close-btn{background:none;border:none;color:white;font-size:20px;cursor:pointer;line-height:1;padding:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background 0.2s}
.close-btn:hover{background:rgba(255,255,255,0.2)}
.chat-body{flex:1;display:flex;overflow:hidden}
.sidebar-contacts{width:130px;background:#34495e;color:white;display:flex;flex-direction:column;transition:width 0.2s ease;overflow:hidden;flex-shrink:0}
.sidebar-contacts.collapsed{width:0}
.contacts-header{padding:12px 10px;background:#2c3e50;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:bold}
.toggle-sidebar-btn{background:#017878;border:none;color:white;border-radius:4px;cursor:pointer;font-size:12px;padding:4px 8px}
.user-list{flex:1;overflow-y:auto;padding:8px}
.user-item{padding:8px 10px;margin-bottom:6px;background:#3e5a6b;border-radius:12px;cursor:pointer;transition:all 0.2s;font-size:13px;display:flex;align-items:center;justify-content:space-between}
.user-item:hover,.user-item.active{background:#017878}
.user-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70px}
.user-badge{font-size:10px;background:#e67e22;padding:2px 5px;border-radius:20px}
.agent-badge{background:#3498db}
.chat-main-area{flex:1;display:flex;flex-direction:column;background:#f8f9fa}
.chat-header{padding:12px 16px;background:white;border-bottom:1px solid #dee2e6;font-size:15px;font-weight:bold;display:flex;justify-content:space-between;align-items:center}
.expand-sidebar-btn{background:none;border:none;font-size:13px;cursor:pointer;color:#017878}
.messages-area{flex:1;padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:#f8f9fa}
.message{display:flex;flex-direction:column;max-width:85%;animation:fadeIn 0.2s ease}
.message-right{align-self:flex-end}
.message-left{align-self:flex-start}
.message-bubble{padding:8px 12px;border-radius:18px;word-wrap:break-word;font-size:13px;line-height:1.4}
.message-right .message-bubble{background:#017878;color:white;border-bottom-right-radius:4px}
.message-left .message-bubble{background:white;border:1px solid #e0e0e0;color:#2c3e50;border-bottom-left-radius:4px}
.message-info{font-size:10px;margin:4px 8px 0;color:#6c757d}
.message-right .message-info{text-align:right}
.input-area{background:white;border-top:1px solid #dee2e6;padding:12px}
.input-tools{display:flex;gap:8px;align-items:center}
.phrase-btn{background:#f1f3f5;border:none;font-size:20px;cursor:pointer;width:36px;border-radius:20px;transition:0.2s}
.message-input{flex:1;width:140px;height:auto;font-size:13px;border:1px solid #ced4da;border-radius:20px;padding:8px 12px;margin-bottom: 0;resize:none;font-family:inherit;outline:none}
.send-btn{background:#017878;border:none;padding:0 16px;border-radius:30px;color:white;font-weight:bold;cursor:pointer;height:36px}
.send-btn:hover{background:#016672;}
.phrase-panel{display:none;background:white;border-radius:6px;padding:10px;border:1px solid #f1f1f1;margin-bottom:10px;max-height:200px;overflow-y:auto}
.phrase-item{padding:6px 10px;margin-bottom:6px;background:#f1f3f5;border-radius:20px;cursor:pointer;font-size:12px;transition:background 0.2s;display:flex;justify-content:space-between;align-items:center}
.phrase-item:hover{background:#e9ecef}
.phrase-text{flex:1;word-break:break-all}
.phrase-del{border:0;}
.phrase-del:hover{color:#e74c3c}
.add-phrase{display:flex;margin-top:8px;gap:6px}
.add-phrase input{flex:1;border:1px solid #ced4da;border-radius:20px;padding:6px 10px;font-size:12px;outline:none}
.add-phrase button{background:#017878;border:none;color:white;border-radius:20px;padding:0 12px;cursor:pointer;font-size:12px}
@keyframes fadeIn{
from{opacity:0;transform:translateY(5px)}
to{opacity:1;transform:translateY(0)}
}
.chat-window *::-webkit-scrollbar{width:6px!important;}
.chat-window *::-webkit-scrollbar-track{background:#f1f1f1!important;}
.chat-window *::-webkit-scrollbar-thumb{background:#c1c1c1!important;border-radius:10px!important;}
@media (max-width:500px){
.chat-window{width:100%;right:0;bottom:0;border-radius:0;height:100%}
.float-icon{/* bottom:15px;right:15px */}
}