.cs-root{position:fixed;right:18px;bottom:22px;z-index:9000;font-family:"Noto Sans KR",sans-serif}
.cs-btn{
  position:relative;width:52px;height:52px;border:0;border-radius:50%;
  background:var(--g-rose,#b0566f);color:#fff;cursor:pointer;
  box-shadow:0 8px 20px rgba(150,60,80,.28);
}
.cs-btn svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cs-badge{
  position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;
  background:#e23b32;color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.cs-badge[hidden]{display:none}
.cs-btn.is-shake{animation:cs-shake .55s ease-in-out}
.cs-btn.is-alert{animation:cs-alert 1.1s ease-in-out infinite}
@keyframes cs-alert{
  0%,100%{box-shadow:0 8px 20px rgba(150,60,80,.28)}
  50%{box-shadow:0 0 0 8px rgba(226,59,50,.18),0 8px 20px rgba(150,60,80,.28)}
}
@keyframes cs-shake{
  0%,100%{transform:translateX(0)}
  20%,60%{transform:translateX(-4px) rotate(-6deg)}
  40%,80%{transform:translateX(4px) rotate(6deg)}
}
.cs-win{
  display:none;position:fixed;right:18px;bottom:22px;width:360px;height:520px;max-height:calc(100vh - 40px);
  background:#fff;border-radius:16px;overflow:hidden;flex-direction:column;
  box-shadow:0 18px 50px rgba(80,40,30,.22);
}
.cs-win.open{display:flex}
.cs-head{display:flex;align-items:center;gap:8px;height:52px;padding:0 12px 0 16px;background:var(--g-rose,#b0566f);color:#fff}
.cs-head b{font-size:14px;font-weight:700}
.cs-head button{margin-left:auto;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer}
.cs-log{flex:1 1 auto;min-height:0;overflow:auto;padding:14px;background:#f7f1ea;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.cs-msg{max-width:80%;padding:9px 12px;border-radius:12px;font-size:13.5px;line-height:1.45;word-break:break-word}
.cs-msg.mine{align-self:flex-end;background:var(--g-rose,#b0566f);color:#fff;border-bottom-right-radius:3px}
.cs-msg.theirs{align-self:flex-start;background:#fff;color:#3f332e;border:1px solid #eadbd1;border-bottom-left-radius:3px}
.cs-msg img{display:block;max-width:180px;border-radius:8px;cursor:pointer}
.cs-bar{flex:0 0 auto;display:flex;align-items:flex-end;gap:6px;padding:10px;background:#fff;border-top:1px solid #f0e4dc}
.cs-tools{display:flex;gap:2px}
.cs-tools button,.cs-send{
  width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#8a7368;cursor:pointer;
}
.cs-tools svg,.cs-send svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cs-send{color:var(--g-rose,#b0566f)}
.cs-bar textarea{
  flex:1;height:36px;max-height:88px;resize:none;border:1px solid #eadbd1;border-radius:18px;
  padding:8px 12px;font:14px/1.4 "Noto Sans KR",sans-serif;outline:none;
}
.cs-emoji{display:none;flex-wrap:wrap;gap:2px;max-height:120px;overflow:auto;padding:8px 10px;background:#fff;border-top:1px solid #f0e4dc}
.cs-emoji.open{display:flex}
.cs-emoji button{width:28px;height:28px;border:0;background:transparent;font-size:18px;cursor:pointer}
@media (max-width:640px){
  .cs-root{right:14px;bottom:16px}
  .cs-win{left:10px;right:10px;width:auto;height:70vh;max-height:calc(100vh - 24px);bottom:12px}
}

/* ---- 상담센터 위젯 보강 ---- */
.cs-win{z-index:9001}
.cs-head .cs-sub{margin-left:6px;font-size:11.5px;font-weight:500;color:rgba(255,255,255,.78)}
.cs-head button{display:flex;align-items:center;justify-content:center}
.cs-head button svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round}
.cs-log:empty::before{
  content:"안녕하세요, 리브숙박 상담센터입니다.\A 궁금한 점을 남겨 주시면 순서대로 답변드립니다.";
  white-space:pre-line;align-self:center;margin:auto 0;padding:0 6px;text-align:center;
  color:#a3938a;font-size:12.5px;line-height:1.7;
}
.cs-tools button{display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1}
.cs-msg{font-family:"Noto Sans KR",sans-serif}
.cs-send{display:flex;align-items:center;justify-content:center}
.cs-emoji button{border-radius:6px}
.cs-emoji button:hover{background:#f3ece6}
.cs-root.cs-admin{position:static;right:auto;bottom:auto;z-index:auto;width:100%;height:100%;font-family:inherit}
.cs-log .cs-login{
  align-self:center;margin:6px 0 auto;padding:9px 18px;border-radius:999px;
  background:var(--g-rose,#b0566f);color:#fff;text-decoration:none;
  font-size:13px;font-weight:700;
}
.cs-log .cs-login:hover{filter:brightness(.95)}
