.webchat-widget{position:fixed;bottom:20px;right:20px;z-index:9999;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:14px;line-height:1.5;color:#333}.webchat-button{width:60px;height:60px;background:linear-gradient(135deg,#2b72e6 0,#1a5bb8 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px rgba(43,114,230,.4);transition:.3s;position:relative;color:#fff}.webchat-button:hover{transform:scale(1.1);box-shadow:0 6px 16px rgba(43,114,230,.6)}.webchat-badge{position:absolute;top:-5px;right:-5px;background:#dc3545;color:#fff;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;border:2px solid #fff}.webchat-window{position:absolute;bottom:80px;right:0;width:380px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 100px);background:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden;animation:.3s slideUp}@keyframes slideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.webchat-header{background:linear-gradient(135deg,#2b72e6 0,#1a5bb8 100%);color:#fff;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 8px rgba(0,0,0,.1)}.webchat-header-content{flex:1}.webchat-title{margin:0;font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px}.webchat-status{font-size:12px;opacity:.9;display:flex;align-items:center;gap:6px;margin-top:4px}.status-dot{width:8px;height:8px;border-radius:50%;background:#ffc107;display:inline-block;animation:2s infinite pulse}.status-dot.connected{background:#28a745;animation:none}.status-dot.disconnected{background:#dc3545;animation:none}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}.webchat-close{background:rgba(255,255,255,.1);border:none;color:#fff;cursor:pointer;padding:6px;border-radius:4px;transition:background .2s;flex-shrink:0;display:flex;align-items:center;justify-content:center}.webchat-close:hover{background:rgba(255,255,255,.2)}.webchat-messages{flex:1;overflow-y:auto;padding:16px;background:#f8f9fa;display:flex;flex-direction:column;gap:12px}.webchat-messages::-webkit-scrollbar{width:6px}.webchat-messages::-webkit-scrollbar-track{background:#f1f1f1}.webchat-messages::-webkit-scrollbar-thumb{background:#888;border-radius:3px}.webchat-messages::-webkit-scrollbar-thumb:hover{background:#555}.webchat-message{display:flex;animation:.3s fadeIn}@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.webchat-message-customer{justify-content:flex-end}.webchat-message-admin,.webchat-message-system{justify-content:flex-start}.webchat-message-content{max-width:75%;padding:10px 14px;border-radius:12px;word-wrap:break-word;position:relative;font-size:14px;line-height:1.5}.webchat-message-content p{margin:0;line-height:1.5;font-size:inherit}.webchat-message-customer .webchat-message-content{background:#2b72e6;color:#fff;border-bottom-right-radius:4px}.webchat-message-admin .webchat-message-content{background:#fff;color:#333;border:1px solid #e0e0e0;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.05)}.webchat-message-system .webchat-message-content{background:#fff3cd;color:#856404;border:1px solid #ffeaa7;font-size:13px;text-align:center;max-width:90%}.webchat-message-time{font-size:10px;opacity:.7;margin-top:4px;text-align:right}.webchat-message-admin .webchat-message-time{text-align:left}.webchat-input-container{border-top:1px solid #e0e0e0;background:#fff;padding:12px}.webchat-input-wrapper{display:flex;gap:8px;align-items:center}.webchat-input{flex:1;border:1px solid #e0e0e0;border-radius:20px;padding:10px 16px;font-size:14px;outline:0;transition:border-color .2s}.webchat-input:focus{border-color:#2b72e6}.webchat-input:disabled{background:#f5f5f5;cursor:not-allowed}.webchat-send{width:40px;height:40px;border-radius:50%;background:#2b72e6;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.2s;flex-shrink:0}.webchat-send:hover:not(:disabled){background:#1a5bb8;transform:scale(1.05)}.webchat-send:disabled{background:#ccc;cursor:not-allowed}@media (max-width:480px){.webchat-window{width:calc(100vw - 20px);right:10px;bottom:10px;height:calc(100vh - 100px);max-height:calc(100vh - 100px)}.webchat-button{width:56px;height:56px}}.webchat-loading{display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}