/* ARRIVE assistant – floating chat widget */
.ac-launcher{position:fixed;right:22px;bottom:22px;z-index:900;display:flex;align-items:center;gap:8px;padding:13px 20px;border:0;border-radius:30px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:#fff;font:500 15px 'Poppins',system-ui,sans-serif;box-shadow:0 14px 34px rgba(18,48,95,.45);cursor:pointer;transition:transform .2s,opacity .2s}
.ac-launcher:hover{transform:translateY(-3px)}
.ac-launcher .ac-ico{font-size:20px;line-height:1}
.ac-launcher.hide{opacity:0;pointer-events:none;transform:scale(.8)}
.ac-panel{position:fixed;right:22px;bottom:22px;z-index:901;width:min(400px,calc(100vw - 24px));height:min(620px,calc(100vh - 44px));display:flex;flex-direction:column;background:#f8fafc;border-radius:18px;overflow:hidden;box-shadow:0 30px 80px rgba(6,19,38,.55);font-family:'Poppins',system-ui,sans-serif;color:#0f172a;animation:ac-in .18s ease-out}
.ac-panel[hidden]{display:none}
@keyframes ac-in{from{opacity:0;transform:translateY(16px) scale(.98)}}
.ac-head{display:flex;align-items:center;gap:10px;padding:14px 14px 14px 16px;background:linear-gradient(135deg,#0f172a,#1e1b4b);color:#fff}
.ac-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);font-size:20px}
.ac-title{flex:1;display:flex;flex-direction:column;line-height:1.3}.ac-title small{color:#94a3b8;font-size:11.5px}
.ac-hbtn{width:32px;height:32px;border:0;border-radius:8px;background:rgba(255,255,255,.1);color:#fff;font-size:18px;cursor:pointer}.ac-hbtn:hover{background:rgba(255,255,255,.22)}
.ac-body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.ac-msg{max-width:88%;display:flex;flex-direction:column;gap:8px}
.ac-msg.me{align-self:flex-end}.ac-msg.bot{align-self:flex-start}
.ac-text{padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word}
.ac-msg.me .ac-text{background:#6366f1;color:#fff;border-bottom-right-radius:4px}
.ac-msg.bot .ac-text{background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:4px}
.ac-msg.err .ac-text{background:#fdecec;border-color:#f6c8c8;color:#b42323}
.ac-msg.old{opacity:.8}
.typing .ac-text{display:flex;gap:4px;padding:14px}
.typing i{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:ac-dot 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes ac-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.ac-options{display:flex;flex-direction:column;gap:8px}
.ac-opt{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;direction:rtl;text-align:right}
.ac-opt-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.ac-opt-head b{color:#0f172a}.ac-opt-head span{font-size:12px;color:#64748b}
.ac-badges{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}.ac-badges span{font-size:11px;padding:2px 8px;border-radius:10px;background:#eef2ff;color:#4338ca}
.ac-legs{list-style:none;margin:6px 0;padding:0;font-size:12.5px;display:flex;flex-direction:column;gap:3px}
.ac-opt small{font-size:11.5px;color:#64748b}
.ac-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;direction:rtl}
.ac-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:9px;border:1px solid #6366f1;background:#6366f1;color:#fff;font:500 12.5px 'Poppins',system-ui,sans-serif;cursor:pointer;text-decoration:none}
.ac-btn.alt{background:#fff;color:#6366f1}
.ac-btn:disabled{opacity:.5;cursor:default}
.ac-ticket{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px;text-align:center}
.ac-ticket img{width:200px;max-width:100%;border-radius:8px}
.ac-chips{display:flex;gap:6px;overflow-x:auto;padding:0 12px 8px;scrollbar-width:thin}
.ac-chips:empty{display:none}
.ac-chip{flex:0 0 auto;padding:6px 12px;border:1px solid #c7d2fe;border-radius:16px;background:#fff;color:#4338ca;font:12.5px 'Poppins',system-ui,sans-serif;cursor:pointer;white-space:nowrap}.ac-chip:hover{background:#eef2ff}
.ac-input{display:flex;align-items:flex-end;gap:6px;padding:10px 12px;background:#fff;border-top:1px solid #e2e8f0}
.ac-input[hidden]{display:none}
.ac-input textarea{flex:1;resize:none;min-height:40px;max-height:110px;padding:9px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;font:14px 'Poppins',system-ui,sans-serif;color:#0f172a;line-height:1.5}
.ac-input textarea:focus{outline:2px solid #6366f1;background:#fff}
.ac-send,.ac-loc{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:12px;cursor:pointer;font-size:16px}
.ac-send{background:#6366f1;color:#fff}.ac-send:disabled{opacity:.6}
.ac-loc{background:#f8fafc}.ac-loc.on{background:#dff5e6;outline:2px solid #1fa971}.ac-loc.wait{animation:ac-dot 1s infinite}
.ac-locnote{padding:6px 14px 10px;background:#fff;font-size:12px;color:#1d6b3a;direction:rtl}.ac-locnote[hidden]{display:none}
.link-btn{border:0;background:none;color:#6366f1;font:inherit;cursor:pointer;padding:0;text-decoration:underline}
@media(max-width:520px){
  .ac-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}
  .ac-launcher .ac-lbl{display:none}.ac-launcher{padding:15px}
}
@media print{.ac-launcher,.ac-panel{display:none!important}}
