/* GPSGY AI Bot widget */
#gpsgy-aibot-root{position:fixed;bottom:20px;right:20px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.gpsgy-aibot-launcher{background:var(--gpsgy-aibot-color,#0073aa);color:#fff;border:none;border-radius:50%;width:56px;height:56px;font-size:24px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.gpsgy-aibot-panel{position:absolute;bottom:70px;right:0;width:340px;max-width:calc(100vw - 40px);height:480px;max-height:calc(100vh - 100px);background:#fff;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden}
.gpsgy-aibot-head{background:var(--gpsgy-aibot-color,#0073aa);color:#fff;padding:12px 14px;font-weight:600;display:flex;justify-content:space-between;align-items:center}
.gpsgy-aibot-head button{background:transparent;border:none;color:#fff;font-size:18px;cursor:pointer}
.gpsgy-aibot-body{flex:1;overflow-y:auto;padding:12px;background:#f7f8fa}
.gpsgy-aibot-msg{margin:6px 0;padding:8px 12px;border-radius:12px;max-width:85%;line-height:1.4;font-size:14px;word-wrap:break-word}
.gpsgy-aibot-msg.bot{background:#fff;border:1px solid #e5e7eb;align-self:flex-start}
.gpsgy-aibot-msg.user{background:var(--gpsgy-aibot-color,#0073aa);color:#fff;margin-left:auto}
.gpsgy-aibot-msgs{display:flex;flex-direction:column}
.gpsgy-aibot-suggest{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.gpsgy-aibot-suggest button{background:#fff;border:1px solid var(--gpsgy-aibot-color,#0073aa);color:var(--gpsgy-aibot-color,#0073aa);padding:5px 10px;border-radius:14px;font-size:12px;cursor:pointer}
.gpsgy-aibot-input{display:flex;border-top:1px solid #e5e7eb;background:#fff}
.gpsgy-aibot-input input{flex:1;border:none;padding:12px;font-size:14px;outline:none}
.gpsgy-aibot-input button{background:var(--gpsgy-aibot-color,#0073aa);color:#fff;border:none;padding:0 16px;cursor:pointer;font-weight:600}
.gpsgy-aibot-form{padding:10px;background:#fff;border-top:1px solid #e5e7eb;display:none}
.gpsgy-aibot-form.show{display:block}
.gpsgy-aibot-form input,.gpsgy-aibot-form select,.gpsgy-aibot-form textarea{width:100%;padding:8px;margin:4px 0;border:1px solid #d1d5db;border-radius:6px;font-size:13px;box-sizing:border-box}
.gpsgy-aibot-form button{background:var(--gpsgy-aibot-color,#0073aa);color:#fff;border:none;padding:8px 14px;border-radius:6px;cursor:pointer;margin-top:6px}
.gpsgy-aibot-hook{position:absolute;bottom:70px;right:0;background:#fff;color:#222;padding:10px 14px;border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.18);max-width:260px;font-size:13px;line-height:1.4;cursor:pointer;animation:gpsgy-pop .35s ease}
.gpsgy-aibot-hook:after{content:"";position:absolute;bottom:-6px;right:18px;width:12px;height:12px;background:#fff;transform:rotate(45deg);box-shadow:2px 2px 3px rgba(0,0,0,.05)}
@keyframes gpsgy-pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.gpsgy-aibot-launcher{display:flex;align-items:center;justify-content:center;overflow:hidden}
.gpsgy-aibot-launcher .gpsgy-aibot-logo{width:100%;height:100%;object-fit:cover;border-radius:50%}
.gpsgy-aibot-launcher .gpsgy-aibot-icon{line-height:1}
.gpsgy-aibot-title{display:flex;align-items:center;gap:8px;min-width:0}
.gpsgy-aibot-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gpsgy-aibot-head .gpsgy-aibot-logo{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff}
.gpsgy-aibot-head .gpsgy-aibot-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.16)}
.gpsgy-aibot-status{padding:8px 12px;font-size:12px;line-height:1.35;border-bottom:1px solid #e5e7eb;background:#f8fafc;color:#334155}
.gpsgy-aibot-status:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:7px;vertical-align:1px;background:#94a3b8}
.gpsgy-aibot-status.open:before{background:#16a34a}
.gpsgy-aibot-status.closed:before{background:#f59e0b}
.gpsgy-aibot-typing{display:inline-flex;gap:4px;padding:10px 14px;align-items:center}
.gpsgy-aibot-typing span{width:6px;height:6px;border-radius:50%;background:#9ca3af;animation:gpsgy-typing 1.2s infinite ease-in-out;display:inline-block}
.gpsgy-aibot-typing span:nth-child(2){animation-delay:.15s}
.gpsgy-aibot-typing span:nth-child(3){animation-delay:.3s}
@keyframes gpsgy-typing{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
