.fc-fab{color:#fff;cursor:pointer;z-index:9998;background:#b91c1c;border:none;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;font-family:Noto Sans Thai,Inter,sans-serif;font-size:24px;transition:transform .15s,box-shadow .15s;display:flex;position:fixed;bottom:20px;right:20px;box-shadow:0 4px 16px #0000002e}.fc-fab:hover{transform:scale(1.06);box-shadow:0 6px 20px #00000038}.fc-fab-badge{color:#fff;box-sizing:border-box;background:#ef4444;border:2px solid #fff;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 5px;font-size:11px;font-weight:700;animation:1.4s infinite fc-pulse;display:flex;position:absolute;top:-2px;right:-2px}.fc-fab-badge[hidden]{display:none}@keyframes fc-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.fc-panel{z-index:10005;background:#fff;border:1px solid #e5e7eb;border-radius:14px;flex-direction:column;width:360px;max-height:540px;font-family:Noto Sans Thai,Inter,sans-serif;display:flex;position:fixed;bottom:90px;right:20px;overflow:hidden;box-shadow:0 12px 36px #0000002e}.fc-panel[hidden]{display:none}.fc-header{color:#fff;background:#b91c1c;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.fc-header-title{font-size:14px;font-weight:700}.fc-header-status{opacity:.9;margin-top:2px;font-size:11px}.fc-fit{color:#fff;cursor:pointer;background:#ffffff29;border:none;border-radius:10px;min-width:36px;min-height:36px;margin-left:auto;font-size:18px;line-height:1}.fc-fit+.fc-close{margin-left:4px}.fc-close{color:#fff;cursor:pointer;background:0 0;border:none;padding:0 6px;font-size:20px;line-height:1}.fc-log{background:#fafafa;flex-direction:column;flex:1;gap:8px;min-height:280px;max-height:380px;padding:14px;display:flex;overflow-y:auto}.fc-log[hidden]{display:none!important}.fc-msg{flex-direction:column;max-width:85%;display:flex}.fc-msg.user{align-self:flex-end}.fc-msg.bot,.fc-msg.admin,.fc-msg.system{align-self:flex-start}.fc-msg-bubble{white-space:pre-wrap;word-wrap:break-word;border-radius:12px;padding:8px 12px;font-size:13px;line-height:1.55}.fc-msg.user .fc-msg-bubble{color:#fff;background:#b91c1c;border-bottom-right-radius:4px}.fc-msg.bot .fc-msg-bubble{color:#111827;background:#f3f4f6;border-bottom-left-radius:4px}.fc-msg.admin .fc-msg-bubble{color:#065f46;background:#ecfdf3;border:1px solid #c6e9cf;border-bottom-left-radius:4px}.fc-msg.system .fc-msg-bubble{color:#6b7280;background:#fff;border:1px dashed #e5e7eb;font-size:12px;font-style:italic}.fc-peek{color:#b91c1c;cursor:pointer;text-align:center;background:linear-gradient(90deg,#fef2f2,#fef9c3);border:1px solid #fecaca;border-radius:10px;align-self:stretch;margin:8px 0;padding:10px 14px;font-family:inherit;font-size:13px;font-weight:600}.fc-peek:hover{background:#fee2e2}.fc-typing .fc-msg-bubble{flex-wrap:wrap;align-items:center;gap:10px;min-height:28px;padding:10px 14px;display:inline-flex}.fc-typing-label{color:#64748b;font-size:13px}.fc-typing-dots{align-items:center;gap:5px;min-height:18px;display:inline-flex}.fc-typing-dots span{background:#94a3b8;border-radius:50%;width:7px;height:7px;animation:1.2s ease-in-out infinite both fc-typing-bounce;display:inline-block}.fc-typing-dots span:first-child{animation-delay:-.32s}.fc-typing-dots span:nth-child(2){animation-delay:-.16s}.fc-typing-dots span:nth-child(3){animation-delay:0s}@keyframes fc-typing-bounce{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:1;transform:translateY(-5px)}}@media (prefers-reduced-motion:reduce){.fc-typing-dots span{opacity:.8;animation:none}}.fc-msg-meta{color:#9ca3af;margin-top:3px;padding:0 4px;font-size:10px}.fc-msg.user .fc-msg-meta{text-align:right}.fc-cta{color:#fff;cursor:pointer;background:#b91c1c;border:none;border-radius:8px;align-self:flex-start;margin-top:4px;padding:7px 14px;font-family:inherit;font-size:12px;font-weight:600}.fc-cta:hover{opacity:.9}.fc-form{background:#fff;border-top:1px solid #e5e7eb;gap:6px;padding:10px;display:flex}.fc-input{resize:none;color:#111827;border:1px solid #e5e7eb;border-radius:8px;outline:none;flex:1;min-height:38px;max-height:100px;padding:8px 12px;font-family:inherit;font-size:13px}.fc-input:focus{border-color:#b91c1c}.fc-send{color:#fff;cursor:pointer;background:#b91c1c;border:none;border-radius:8px;padding:0 16px;font-family:inherit;font-size:13px;font-weight:600}.fc-send:disabled{opacity:.5;cursor:not-allowed}.fc-tabs{background:#fafafa;border-bottom:1px solid #e5e7eb;padding:0;display:flex}.fc-tab{color:#6b7280;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;flex:1;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:10px 12px;font-family:inherit;font-size:13px;font-weight:600;transition:all .15s;display:flex}.fc-tab:hover:not(.active){color:#b91c1c;background:#fef2f2}.fc-tab.active{color:#b91c1c;background:#fff;border-bottom-color:#b91c1c}.fc-tab-badge{color:#fff;text-align:center;background:#b91c1c;border-radius:10px;min-width:18px;padding:1px 6px;font-size:11px;font-weight:700;line-height:1.4}@media (width<=480px){.fc-panel{width:calc(100vw - 20px);max-height:75vh;bottom:84px;right:10px}.fc-fab{bottom:16px;right:16px}.fc-log{min-height:220px}}.fc-header-main{align-items:center;gap:10px;min-width:0;display:flex}.fc-header-avatar{object-fit:cover;background:#fff;border-radius:50%;flex:0 0 38px;width:38px;height:38px;box-shadow:0 0 0 2px #ffffff8c}.fc-tab-mascot{object-fit:contain;vertical-align:-4px;width:18px;height:18px}.fc-fab-mascot{object-fit:cover;background:#fff;border-radius:50%;width:100%;height:100%}.fc-msg-row{align-items:flex-end;gap:6px;display:flex}.fc-msg-avatar{object-fit:cover;background:#fff;border:1px solid #fecaca;border-radius:50%;flex:0 0 28px;width:28px;height:28px;animation:.28s ease-out both fc-mascot-pop}@keyframes fc-mascot-pop{0%{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.fc-msg-avatar{animation:none}}.fc-msg-row{min-width:0;max-width:100%}.fc-msg-row .fc-msg-bubble{overflow-wrap:anywhere;word-break:break-word;min-width:0;max-width:100%}.fc-fab-dismiss{display:none}@media (width<=640px){.fc-fab-dismiss{color:#fff;cursor:pointer;background:#374151;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;line-height:1;display:flex;position:absolute;top:-6px;left:-6px}.fc-fab-dismiss:after{content:"";position:absolute;inset:-11px}.fc-fab.fc-fab-dismissed{display:none!important}}.fc-head{z-index:10010;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:grab;background:#fff;border:3px solid #fff;border-radius:50%;width:58px;height:58px;padding:0;position:fixed;box-shadow:0 8px 24px #0f172a47}.fc-head[hidden]{display:none}.fc-head img{object-fit:cover;pointer-events:none;border-radius:50%;width:100%;height:100%}.fc-head.fc-head-anim{transition:left .28s cubic-bezier(.2,.9,.3,1.2),top .28s cubic-bezier(.2,.9,.3,1.2)}.fc-head.dragging{cursor:grabbing;transform:scale(1.08);box-shadow:0 14px 34px #0f172a59}.fc-head .fc-fab-badge{top:-4px;right:-4px}.fc-head-trash{z-index:10009;left:50%;bottom:calc(env(safe-area-inset-bottom) + 34px);color:#fff;opacity:0;pointer-events:none;background:#111827d1;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;font-size:26px;font-weight:700;transition:opacity .15s,transform .15s,background .15s;display:flex;position:fixed;transform:translate(-50%,24px)scale(.8)}.fc-head-trash.show{opacity:1;transform:translate(-50%)scale(1)}.fc-head-trash.hot{background:#dc2626;transform:translate(-50%)scale(1.2)}@media (prefers-reduced-motion:reduce){.fc-head.fc-head-anim,.fc-head-trash{transition:none}}.fc-panel.fc-fit{border-radius:16px;width:auto;max-width:560px}.fc-panel.fc-fit .fc-log{flex:auto;min-height:0;max-height:none}.fc-panel.fc-fit .fc-form{flex:none}.fc-head.fc-head-under{visibility:hidden}
