#chat-panel{position:fixed;right:24px;bottom:96px;width:380px;height:min(600px,calc(100vh - 120px));background:#fff;color:#1b1024;border-radius:18px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.6);z-index:11}
#chat-panel[hidden]{display:none}
#chat-panel .chat-head{background:linear-gradient(90deg,#5b10a8,#a1229b);color:#fff;font-size:22px;font-weight:700;padding:14px 16px 10px;display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #ffd23f}
#chat-panel #chat-close{background:none;border:0;color:#fff;font-size:30px;cursor:pointer;line-height:1}
#chat-panel #chat-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#f6f1fb}
#chat-panel .msg{max-width:85%;padding:9px 13px;border-radius:14px;font-size:16px;line-height:1.35}
#chat-panel .bot{background:#fff;border:1px solid #e0d3ee;align-self:flex-start;border-bottom-left-radius:4px}
#chat-panel .me{background:#7a1fd1;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
#chat-panel .faq{border-left:4px solid #ffd23f}
#chat-panel #chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px;background:#f6f1fb}
#chat-panel #chips:not(:empty){padding:8px 12px}
#chat-panel .chip{border:2px solid #7a1fd1;background:#fff;color:#5b10a8;border-radius:20px;padding:5px 12px;font-size:15px;cursor:pointer}
#chat-panel #chat-form{display:flex;border-top:1px solid #ddd}
#chat-panel #chat-input{flex:1;border:0;padding:13px;font-size:16px}
#chat-panel #chat-form button{border:0;background:#ffd23f;color:#2a0040;font-size:18px;font-weight:700;padding:0 16px;cursor:pointer}
#chat-panel .chat-foot{font-size:13px;text-align:center;padding:6px;background:#2a0040;color:#ffd23f}
#chat-panel .card{align-self:stretch;background:#fff;border:2px solid #7a1fd1;border-radius:12px;padding:12px}
#chat-panel .card h3{font-size:20px;font-weight:700;color:#5b10a8;margin:0 0 6px}
#chat-panel .card dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0 0 8px;font-size:15px}
#chat-panel .card dt{font-weight:600;color:#5b10a8}.card dd{margin:0}
#chat-panel .card .confirm{font-family:inherit;font-size:17px;color:#a1229b;margin:0}
@media (max-width:500px){#chat-panel{right:8px;left:8px;width:auto;bottom:84px;height:calc(100vh - 100px)}}
#chat-panel .msg{text-align:left}
