/* chat widget */
.chat-fab{position:fixed;right:20px;bottom:20px;z-index:40;width:58px;height:58px;border-radius:50%;border:0;background:var(--ink);color:#fff;cursor:pointer;display:grid;place-items:center;box-shadow:0 8px 28px rgba(0,0,0,.28);transition:transform .15s,background .15s}
.chat-fab:hover{transform:scale(1.06);background:#26262c}
.chat-fab.on{background:var(--blue)}
.chat{position:fixed;right:20px;bottom:90px;z-index:41;width:380px;max-width:calc(100vw - 24px);height:min(600px,calc(100vh - 120px));background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden}
.chat[hidden]{display:none}
.chat-h{background:var(--ink);color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}
.chat-h small{display:block;color:#a1a1a6;font-size:.74rem}
.chat-x{border:0;background:rgba(255,255,255,.12);color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer}
.chat-log{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#fafafa}
.m{max-width:86%;padding:9px 13px;border-radius:16px;font-size:.92rem;line-height:1.5;margin:0;word-break:break-word}
.m.bot{background:#fff;border:1px solid var(--line);align-self:flex-start;border-bottom-left-radius:5px}
.m.me{background:var(--ink);color:#fff;align-self:flex-end;border-bottom-right-radius:5px}
ul.m{padding-left:30px}
.pc{display:flex;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;align-self:stretch}
.pc img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none}
.pc-b{display:flex;flex-direction:column;gap:3px;min-width:0}
.pc-b b{font-size:.86rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc-b small{color:var(--mut);font-size:.78rem}
.pc-b em{font-style:normal;font-size:.72rem;color:var(--blue-d);font-weight:600}
.pc-a{color:var(--blue);font-weight:600;font-size:.84rem;text-decoration:none}
.pc-a:hover{text-decoration:underline}
.pc-all{align-self:flex-start;font-size:.84rem;color:var(--blue);text-decoration:none;font-weight:600;padding:2px 4px}
.chat-chips{display:flex;gap:6px;flex-wrap:wrap;padding:8px 12px 0;background:#fff}
.chat-chips:empty{display:none}
.chat-f{display:flex;gap:8px;padding:10px 12px;background:#fff}
.chat-f input{flex:1;min-width:0;border:1px solid var(--line);border-radius:999px;padding:10px 14px;outline:0}
.chat-f input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,113,227,.15)}
.chat-f button{border:0;background:var(--blue);color:#fff;border-radius:999px;padding:0 18px;font-weight:600;cursor:pointer}
.chat-n{margin:0;padding:0 14px 10px;font-size:.7rem;color:var(--mut);background:#fff}
@media (max-width:520px){.chat{right:8px;left:8px;width:auto;bottom:84px;height:calc(100vh - 110px)}.chat-fab{right:14px;bottom:14px}}

.pc-links{display:flex;gap:12px;flex-wrap:wrap}
.pc-a.alt{color:var(--ink2);font-weight:500}

/* น้ำหนักฟอนต์ขั้นต่ำ 400 */
.chat,.chat-fab,.chat input,.chat button{font-weight:400}
.chat b,.chat-h b,.chat button.chip{font-weight:600}
