/* 官網 YUMO 智能客服（D-65）：右下角入口＋對話視窗。手機（≤560px）視窗佔滿整個畫面。沿用 sf2.css 的色票。 */
.cs{font-family:var(--zh)}
.cs-fab{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:8px;padding:6px 18px 6px 6px;
  border:0;border-radius:99px;background:var(--blue);color:#fff;font:700 15px/1 var(--zh);cursor:pointer;
  box-shadow:0 8px 24px rgba(10,46,115,.28);transition:transform .15s}
.cs-fab:hover{transform:translateY(-2px)}
.cs-fab img{width:40px;height:40px;border-radius:50%;background:#fff}
.cs-fab:focus-visible,.cs-chip:focus-visible,.cs-btn:focus-visible,.cs-x:focus-visible,.cs-send:focus-visible{outline:3px solid var(--gold-blue);outline-offset:2px}
.sf-edit .cs-fab{bottom:84px}        /* 工作人員開了右下角「反饋」時讓開 */
.cs-open .cs-fab{display:none}
.cs-panel{position:fixed;right:20px;bottom:20px;z-index:61;width:380px;height:min(620px,calc(100vh - 40px));display:flex;flex-direction:column;
  background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px rgba(10,46,115,.28);border:1px solid #dfe5f2}
.cs-panel[hidden]{display:none}
.cs-head{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 16px;background:var(--blue-dk);color:#fff}
.cs-head img{width:40px;height:40px;border-radius:50%;background:#fff;flex:none}
.cs-head div{flex:1;min-width:0;line-height:1.35}
.cs-head b{display:block;font-size:16px}
.cs-head span{font-size:12.5px;color:#dbe4f7}
.cs-x{border:0;background:none;color:#fff;font-size:28px;line-height:1;width:40px;height:40px;cursor:pointer;border-radius:10px}
.cs-x:hover{background:rgba(255,255,255,.12)}
.cs-log{flex:1;overflow-y:auto;padding:16px 14px;background:#f6f8fc;display:flex;flex-direction:column;gap:12px}
.cs-row{display:flex}
.cs-me{justify-content:flex-end}
.cs-bubble{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.65;word-break:break-word}
.cs-bot .cs-bubble{background:#fff;border:1px solid #e1e6f0;border-top-left-radius:4px;color:var(--ink)}
.cs-me .cs-bubble{background:var(--blue);color:#fff;border-top-right-radius:4px;white-space:pre-wrap}
.cs-text{margin:0;white-space:pre-line}
.cs-wait .cs-bubble{color:var(--mute)}
.cs-wait .cs-bubble::after{content:"…";display:inline-block;animation:csdots 1s steps(3,end) infinite;overflow:hidden;vertical-align:bottom;width:0}
@keyframes csdots{to{width:1.2em}}
.cs-btns,.cs-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.cs-btn{display:inline-block;padding:7px 12px;border-radius:10px;background:var(--wash);border:1px solid #cdd9f0;color:var(--blue-dk);
  font-size:13.5px;font-weight:700;text-decoration:none;line-height:1.3}
.cs-btn:hover{background:#e6eefb}
.cs-btn.cs-line{background:#04803a;border-color:#04803a;color:#fff}      /* LINE 綠加深（官方 #06c755 配白字對比不夠） */
.cs-chip{padding:7px 12px;border-radius:99px;border:1.5px solid var(--blue);background:#fff;color:var(--blue);font:700 13.5px/1.3 var(--zh);cursor:pointer;text-align:left}
.cs-chip:hover{background:var(--blue);color:#fff}
.cs-form{display:flex;gap:8px;padding:10px 12px 6px;border-top:1px solid #e3e7f0;background:#fff}
.cs-in{flex:1;min-width:0;font:16px var(--zh);padding:10px 12px;border:1.5px solid #cfd6e4;border-radius:12px;color:var(--ink)}
.cs-in:focus{outline:none;border-color:var(--blue)}
.cs-send{flex:none;width:46px;border:0;border-radius:12px;background:var(--blue);color:#fff;font-size:18px;cursor:pointer}
.cs-note{margin:0;padding:2px 14px 10px;background:#fff;font-size:12px;color:var(--mute);line-height:1.5}
.cs-human{color:var(--blue);font-weight:700;margin-left:4px;white-space:nowrap}
@media(max-width:560px){
  .cs-fab{right:14px;bottom:14px;padding:5px 14px 5px 5px;font-size:14px}
  .cs-fab img{width:36px;height:36px}
  .sf-edit .cs-fab{bottom:76px}
  .cs-panel{inset:0;width:auto;height:auto;border-radius:0;border:0}
  .cs-bubble{max-width:92%}
}
@media print{.cs{display:none}}
.sf-edit .cs-panel{bottom:72px;height:min(620px,calc(100vh - 92px))}
@media(max-width:560px){.sf-edit .cs-panel{bottom:62px;height:auto}}
