/* WAIHAI 24h kefu — compact draggable pill badge (top-right default) */
#wh-kefu-root{all:initial;font-family:"PingFang SC","Hiragino Sans","Microsoft YaHei",sans-serif;
  position:fixed;z-index:2147483000;color:#1a1a2e;width:64px;height:64px;pointer-events:none}
#wh-kefu-root *{box-sizing:border-box;font-family:inherit}
#wh-kefu-bubble{
  pointer-events:auto;position:relative;
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  width:64px;height:64px;padding:6px 4px 7px;
  background:linear-gradient(135deg,#fb923c,#f97316);
  border:2px solid #fff;border-radius:18px;
  cursor:grab;user-select:none;-webkit-user-select:none;
  touch-action:none;
  box-shadow:0 6px 18px rgba(249,115,22,.45),0 2px 6px rgba(0,0,0,.16),inset 0 -2px 0 rgba(0,0,0,.08);
  transition:box-shadow .15s ease}
#wh-kefu-bubble:active,#wh-kefu-root.dragging #wh-kefu-bubble{cursor:grabbing}
#wh-kefu-root.dragging #wh-kefu-bubble{transition:none}
#wh-kefu-bubble .ico{display:none}
#wh-kefu-bubble .txt{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  line-height:1.05;color:#fff;text-align:center;width:100%}
#wh-kefu-bubble .t1{font-size:9px;font-weight:700;letter-spacing:0;opacity:.95;color:#fff}
#wh-kefu-bubble .t2{font-size:16px;font-weight:800;letter-spacing:.04em;margin-top:2px;color:#fff}
#wh-kefu-bubble.lang-ja .t1,#wh-kefu-bubble.lang-en .t1{font-size:9px;letter-spacing:0}
#wh-kefu-bubble.lang-ja .t2{font-size:11px;letter-spacing:0;margin-top:2px}
#wh-kefu-bubble.lang-en .t2{font-size:11px;letter-spacing:0;margin-top:2px}
#wh-kefu-hide{
  pointer-events:auto;position:absolute;top:-7px;width:20px;height:20px;padding:0;
  border:0;border-radius:50%;cursor:pointer;z-index:2;
  background:#1f2937;color:#fff;font-size:13px;line-height:20px;text-align:center;
  font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.3)}
#wh-kefu-root.side-right #wh-kefu-hide{left:-8px;right:auto}
#wh-kefu-root.side-left #wh-kefu-hide{right:-8px;left:auto}
#wh-kefu-hide:hover{background:#111827}
#wh-kefu-panel{
  pointer-events:auto;
  display:none;position:fixed;z-index:2147483001;
  width:min(92vw,360px);height:min(72vh,520px);
  background:#fffaf5;border:1px solid #fed7aa;border-radius:18px;overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.18);flex-direction:column}
#wh-kefu-root.open #wh-kefu-panel{display:flex}
#wh-kefu-root.open #wh-kefu-bubble,
#wh-kefu-root.open #wh-kefu-hide,
#wh-kefu-root.session-hidden #wh-kefu-bubble,
#wh-kefu-root.session-hidden #wh-kefu-hide{display:none}
#wh-kefu-hd{
  background:linear-gradient(90deg,#fb923c,#f59e0b);color:#fff;padding:14px 14px 12px;
  display:flex;align-items:center;gap:10px;flex:none}
#wh-kefu-hd .ttl{font-size:16px;font-weight:800}
#wh-kefu-hd .sub{font-size:11px;opacity:.92;font-weight:600}
#wh-kefu-hd button{
  border:0;background:rgba(255,255,255,.28);color:#fff;width:36px;height:36px;
  border-radius:10px;cursor:pointer;font-size:22px;line-height:1;flex:none;
  font-weight:700}
#wh-kefu-hd button:hover{background:rgba(255,255,255,.42)}
#wh-kefu-msgs{flex:1;overflow:auto;padding:14px;background:#fffefb}
#wh-kefu-msgs .m{margin:0 0 10px;max-width:92%;padding:10px 12px;border-radius:14px;
  font-size:13.5px;line-height:1.55;white-space:pre-wrap;word-break:break-word}
#wh-kefu-msgs .bot{background:#fff;border:1px solid #fde68a;color:#1f2937;border-bottom-left-radius:4px}
#wh-kefu-msgs .me{background:#ffedd5;border:1px solid #fdba74;margin-left:auto;border-bottom-right-radius:4px;color:#7c2d12}
#wh-kefu-msgs .sys{background:#fef3c7;border:1px dashed #f59e0b;color:#92400e;font-size:12.5px;max-width:100%}
#wh-kefu-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px;background:#fffefb;flex:none}
#wh-kefu-quick button{
  border:1px solid #fdba74;background:#fff;color:#9a3412;border-radius:999px;
  padding:6px 10px;font-size:12px;cursor:pointer;font-weight:600}
#wh-kefu-quick button:hover{background:#ffedd5}
#wh-kefu-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #fde68a;background:#fff;flex:none}
#wh-kefu-form textarea{
  flex:1;resize:none;height:44px;border:1px solid #fdba74;border-radius:12px;
  padding:10px 12px;font-size:14px;outline:none;background:#fffaf5;color:#1a1a2e;font-family:inherit}
#wh-kefu-form textarea:focus{border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.15)}
#wh-kefu-form button.send{
  border:0;border-radius:12px;padding:0 16px;background:linear-gradient(135deg,#fb923c,#f97316);
  color:#fff;font-weight:800;cursor:pointer;font-size:14px}
#wh-kefu-form button.send:disabled{opacity:.55;cursor:wait}
#wh-kefu-contact{display:none;padding:10px 12px;background:#fff7ed;border-top:1px solid #fed7aa;gap:8px;flex-direction:column;flex:none}
#wh-kefu-contact.show{display:flex}
#wh-kefu-contact input{
  border:1px solid #fdba74;border-radius:10px;padding:10px 12px;font-size:13.5px;outline:none}
#wh-kefu-contact .row{display:flex;gap:8px}
#wh-kefu-contact button{
  border:0;border-radius:10px;padding:10px 14px;background:#ea580c;color:#fff;font-weight:700;cursor:pointer}
@media (max-width:480px){
  #wh-kefu-panel{width:calc(100vw - 20px);height:min(78vh,560px)}
}
