#ls-chat-root{position:fixed;right:20px;bottom:20px;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.ls-chat-hidden{display:none!important}
#ls-chat-toggle{width:60px;height:60px;border-radius:50%;border:0;background:#7a4a21;color:#fff;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;position:relative}
#ls-chat-toggle:hover{background:#8b5e3c}
#ls-chat-icon-close{display:none}
#ls-chat-root.open #ls-chat-icon-open{display:none}
#ls-chat-root.open #ls-chat-icon-close{display:block}
#ls-chat-badge{position:absolute;top:-4px;right:-4px;background:#d63638;color:#fff;border-radius:50%;width:22px;height:22px;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
#ls-chat-panel{position:absolute;right:0;bottom:72px;width:360px;max-width:calc(100vw - 40px);height:520px;max-height:calc(100vh - 120px);background:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden}
#ls-chat-header{background:#3d2b1f;color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}
#ls-chat-header strong{display:block;font-size:16px}
#ls-chat-header span{font-size:12px;opacity:.85;line-height:1.3;display:block}
#ls-chat-status-dot{width:10px;height:10px;border-radius:50%;background:#4caf50;flex-shrink:0}
#ls-chat-start{padding:16px;overflow-y:auto}
#ls-chat-start p{margin:0 0 12px;color:#333;font-size:14px;line-height:1.5}
#ls-chat-start .ls-chat-note{font-size:13px;color:#666}
#ls-chat-start label{display:block;font-size:13px;font-weight:600;color:#333;margin-bottom:10px}
#ls-chat-start input,#ls-chat-start textarea{width:100%;box-sizing:border-box;margin-top:4px;padding:9px 10px;border:1px solid #ddd;border-radius:6px;font-size:14px;font-family:inherit}
#ls-chat-start-btn{width:100%;background:#7a4a21;color:#fff;border:0;border-radius:6px;padding:11px;cursor:pointer;font-size:15px;font-weight:600}
#ls-chat-start-btn:hover{background:#8b5e3c}
.ls-chat-error{color:#d63638;font-size:13px}
#ls-chat-body{flex:1;display:flex;flex-direction:column;min-height:0}
#ls-chat-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#faf7f2}
.ls-chat-msg{max-width:82%;padding:9px 12px;border-radius:12px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.ls-chat-msg.visitor{align-self:flex-end;background:#7a4a21;color:#fff;border-bottom-right-radius:4px}
.ls-chat-msg.admin{align-self:flex-start;background:#fff;color:#222;border:1px solid #e5ddd3;border-bottom-left-radius:4px}
.ls-chat-msg.system{align-self:center;background:transparent;color:#888;font-size:12px;text-align:center;max-width:100%;padding:2px}
#ls-chat-page-context{padding:6px 14px;font-size:12px;color:#777;background:#fff;border-top:1px solid #eee}
#ls-chat-input-row{display:flex;gap:8px;padding:10px;border-top:1px solid #eee;background:#fff}
#ls-chat-input{flex:1;padding:9px 10px;border:1px solid #ddd;border-radius:20px;font-size:14px;outline:none}
#ls-chat-send{background:#7a4a21;color:#fff;border:0;border-radius:20px;padding:0 16px;cursor:pointer;font-weight:600}
#ls-chat-send:hover{background:#8b5e3c}
@media(max-width:480px){#ls-chat-panel{width:calc(100vw - 32px);height:70vh;right:-8px}}
