/* REICIO Live Chat 1.0.1 —— 全部规则带 #rc-live 前缀，防主题覆盖 */
#rc-live,#rc-live *{box-sizing:border-box;font-family:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}

#rc-live-btn{position:fixed;right:20px;bottom:24px;z-index:99995;width:58px;height:58px;border-radius:50%;
  background:#C8362F;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:0 5px 18px rgba(0,0,0,.24);transition:transform .18s ease,background .18s ease;padding:0}
#rc-live-btn:hover{transform:scale(1.06);background:#a8261f}
#rc-live-btn svg{width:27px;height:27px;fill:#fff;display:block}
#rc-live-btn .dot{position:absolute;top:-2px;right:-2px;width:15px;height:15px;border-radius:50%;
  background:#FFC400;border:2px solid #fff;display:none}
#rc-live-btn.has-new .dot{display:block}

#rc-live-panel{position:fixed;right:20px;bottom:92px;z-index:99996;width:376px;height:min(540px,calc(100vh - 130px));
  background:#fff;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.22);display:none;overflow:hidden;
  flex-direction:column}
#rc-live-panel.open{display:flex}

#rc-live-head{background:#1f2328;color:#fff;padding:14px 16px;flex:none;display:flex;align-items:center;gap:10px}
#rc-live-head .t{font-size:15px;font-weight:700;line-height:1.2}
#rc-live-head .s{font-size:11.5px;color:#b8c0c8;margin-top:2px}
#rc-live-head .x{margin-left:auto;background:none;border:none;color:#b8c0c8;font-size:22px;line-height:1;cursor:pointer;padding:0 2px}
#rc-live-head .x:hover{color:#fff}

#rc-live-msgs{flex:1;overflow-y:auto;padding:16px 14px;background:#f7f7f5}
#rc-live-msgs .m{max-width:82%;margin:0 0 10px;padding:10px 13px;border-radius:10px;font-size:14px;line-height:1.5;word-break:break-word}
#rc-live-msgs .m.bot{background:#fff;color:#22282e;border:1px solid #e6e4e0;border-bottom-left-radius:3px}
#rc-live-msgs .m.me{background:#C8362F;color:#fff;margin-left:auto;border-bottom-right-radius:3px}
#rc-live-msgs .m time{display:block;font-size:10.5px;opacity:.55;margin-top:4px}

#rc-live-form{flex:none;border-top:1px solid #e6e4e0;padding:10px;display:flex;gap:8px;background:#fff}
#rc-live-form textarea{flex:1;border:1px solid #dcdcd6;border-radius:6px;padding:9px 11px;font-size:16px;
  line-height:1.4;resize:none;height:42px;max-height:110px;outline:none;color:#22282e}
#rc-live-form textarea:focus{border-color:#C8362F}
#rc-live-form button{background:#C8362F;color:#fff;border:none;border-radius:6px;padding:0 16px;font-size:14px;
  font-weight:600;cursor:pointer;height:42px;flex:none}
#rc-live-form button:hover{background:#a8261f}
#rc-live-form button:disabled{background:#c9c9c4;cursor:default}

#rc-live-note{padding:0 14px 10px;font-size:11px;color:#8b9099;line-height:1.5;background:#f7f7f5}

@media(max-width:768px){
  #rc-live-btn{right:14px;bottom:18px;width:52px;height:52px}
  #rc-live-panel{right:10px;left:10px;width:auto;bottom:80px;height:min(76vh,600px)}
}
