/* ===== Website chat (talks to LMC) ===== */
.lmchat-btn{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;align-items:center;gap:10px;min-height:56px;padding:0 20px 0 16px;border:0;border-radius:28px;background:#E1C0C9;color:#333549;font:600 17px Outfit,Inter,Arial,sans-serif;cursor:pointer;box-shadow:0 10px 28px -10px rgba(35,36,58,.6)}
.lmchat-btn svg{width:24px;height:24px;flex:none}
.lmchat-btn .lmchat-dot{position:absolute;top:-3px;right:-3px;width:16px;height:16px;border-radius:50%;background:#333549;border:3px solid #fff;display:none}
.lmchat-btn.has-new .lmchat-dot{display:block}
.lmchat-open .lmchat-btn{display:none}
.lmchat-panel{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:61;width:min(380px,calc(100vw - 36px));height:min(560px,calc(100dvh - 36px));display:none;flex-direction:column;background:#F7F7F9;border:1px solid #E6E8EE;border-radius:24px;overflow:hidden;box-shadow:0 24px 60px -20px rgba(35,36,58,.55);font:400 16px/1.45 Inter,Arial,sans-serif;color:#374151}
.lmchat-open .lmchat-panel{display:flex}
.lmchat-head{background:#333549;color:#fff;padding:16px 16px 16px 20px;display:flex;align-items:center;gap:12px;border-radius:0 0 20px 20px}
.lmchat-head b{font:600 19px Outfit,Inter,Arial,sans-serif;display:block}
.lmchat-head span{font-size:14px;color:#E6E7EE}
.lmchat-head div{flex:1;min-width:0}
.lmchat-x{width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.13);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}
.lmchat-x svg{width:20px;height:20px}
.lmchat-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.lmchat-m{max-width:84%;padding:10px 13px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.lmchat-m.office{background:#fff;border:1px solid #E6E8EE;align-self:flex-start;border-bottom-left-radius:4px}
.lmchat-m.visitor{background:#333549;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.lmchat-m.system{align-self:center;max-width:100%;background:transparent;color:#6B6F82;font-size:14px;text-align:center;padding:4px 8px}
.lmchat-m small{display:block;font-size:12px;color:#6B6F82;margin-bottom:2px;font-weight:600}
.lmchat-card{background:#fff;border:1px solid #E6E8EE;border-left:4px solid #E1C0C9;border-radius:14px;padding:14px;display:grid;gap:10px}
.lmchat-card p{margin:0;font-weight:500;color:#333549}
.lmchat-card label{font:600 14px Inter,Arial,sans-serif;color:#333549;display:grid;gap:5px}
.lmchat-card input{min-height:48px;border-radius:12px;border:1.5px solid #CFD2DC;padding:10px 12px;font:400 16px Inter,Arial,sans-serif;color:#333549;width:100%}
.lmchat-card .lmchat-err{font-size:14px;color:#8A2A2A;font-weight:500}
.lmchat-card button,.lmchat-send{border:0;border-radius:12px;background:#333549;color:#fff;font:600 16px Outfit,Inter,Arial,sans-serif;cursor:pointer;min-height:48px;padding:0 16px}
.lmchat-form{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #E6E8EE}
.lmchat-form textarea{flex:1;min-height:48px;max-height:120px;resize:none;border-radius:12px;border:1.5px solid #CFD2DC;padding:11px 12px;font:400 16px/1.35 Inter,Arial,sans-serif;color:#333549}
.lmchat-form textarea:focus,.lmchat-card input:focus{outline:3px solid #E1C0C9;outline-offset:1px;border-color:#333549}
.lmchat-btn:focus-visible,.lmchat-x:focus-visible,.lmchat-send:focus-visible,.lmchat-card button:focus-visible{outline:3px solid #E1C0C9;outline-offset:3px}
.lmchat-send:disabled{opacity:.5;cursor:default}
@media(max-width:520px){
  .lmchat-btn{right:14px}
  .lmchat-btn .lmchat-label{display:none}
  .lmchat-btn{padding:0;width:58px;justify-content:center}
  .lmchat-panel{right:0;left:0;bottom:0;width:100%;height:min(86dvh,640px);border-radius:24px 24px 0 0;border-bottom:0}
  .lmchat-form{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
@media print{.lmchat-btn,.lmchat-panel{display:none!important}}
