/* Hosseny Assistant - chat widget */
#hosseny-bot{position:fixed;z-index:9999;bottom:24px;right:24px;font-family:"Alexandria","Inter",system-ui,-apple-system,"Segoe UI",sans-serif}
#hosseny-bot[dir="rtl"]{direction:rtl;right:auto;left:24px}
#hosseny-bot *{box-sizing:border-box}
#hosseny-bot .ab-launch{width:84px;height:84px;border:0;border-radius:50%;background:#111111;cursor:pointer;display:grid;place-items:center;box-shadow:0 14px 30px rgba(0,0,0,.38),0 0 0 6px rgba(0,0,0,.10);position:relative;transition:transform .18s ease,box-shadow .18s ease}
#hosseny-bot .ab-launch:hover{transform:translateY(-2px);box-shadow:0 18px 34px rgba(0,0,0,.45),0 0 0 6px rgba(0,0,0,.12)}
#hosseny-bot .ab-launch svg{width:54px;height:54px}
#hosseny-bot .ab-dot{position:absolute;top:7px;right:7px;width:16px;height:16px;border-radius:50%;background:#ffffff;border:3px solid #fff}
#hosseny-bot .ab-hello{position:absolute;bottom:100px;right:0;background:#fff;border:1px solid #E2E2E2;border-radius:12px;padding:10px 13px;font-size:12.5px;line-height:1.6;color:#111111;box-shadow:0 10px 26px rgba(0,0,0,.10);max-width:210px;width:max-content}
#hosseny-bot[dir="rtl"] .ab-hello{right:auto;left:0}
#hosseny-bot[dir="rtl"] .ab-panel{right:auto;left:0}
#hosseny-bot .ab-panel{position:absolute;bottom:0;right:0;width:356px;height:500px;max-height:calc(100vh - 120px);background:#fff;border:1px solid #E2E2E2;border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.20);display:none;flex-direction:column;overflow:hidden}
#hosseny-bot.ab-open .ab-panel{display:flex}
#hosseny-bot.ab-open .ab-launch,#hosseny-bot.ab-open .ab-hello{display:none}
#hosseny-bot .ab-head{background:#111111;color:#fff;padding:12px 14px 14px;display:flex;align-items:center;gap:11px}
#hosseny-bot .ab-av{width:46px;height:46px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:0 0 auto}
#hosseny-bot .ab-av svg{width:31px;height:31px}
#hosseny-bot .ab-name{font-size:13.5px;font-weight:700;line-height:1.2}
#hosseny-bot .ab-sub{font-size:10.5px;opacity:.85;margin-top:3px}
#hosseny-bot .ab-close{margin-inline-start:auto;background:transparent;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:2px 6px;opacity:.85}
#hosseny-bot .ab-close:hover{opacity:1}
#hosseny-bot .ab-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#F5F5F5}
#hosseny-bot .ab-msg{max-width:88%;font-size:12.5px;line-height:1.65;padding:10px 12px;border-radius:12px;white-space:pre-wrap;word-wrap:break-word}
#hosseny-bot .ab-bot{background:#fff;border:1px solid #E2E2E2;color:#111111;border-end-start-radius:4px;align-self:flex-start}
#hosseny-bot .ab-user{background:#111111;color:#fff;border-end-end-radius:4px;align-self:flex-end}
#hosseny-bot .ab-typing{display:flex;gap:4px;align-items:center;padding:12px 14px}
#hosseny-bot .ab-typing i{width:6px;height:6px;border-radius:50%;background:#9A9A9A;display:block;animation:ab-blink 1.2s infinite}
#hosseny-bot .ab-typing i:nth-child(2){animation-delay:.2s}
#hosseny-bot .ab-typing i:nth-child(3){animation-delay:.4s}
@keyframes ab-blink{0%,60%,100%{opacity:.35}30%{opacity:1}}
#hosseny-bot .ab-form{display:flex;gap:8px;padding:10px;border-top:1px solid #E2E2E2;background:#fff;align-items:center}
#hosseny-bot .ab-in{flex:1;height:38px;border:1px solid #E2E2E2;border-radius:9px;background:#FAFAFA;font-family:inherit;font-size:12.5px;color:#111111;padding:0 11px;outline:none}
#hosseny-bot .ab-in:focus{border-color:#111111;background:#fff}
#hosseny-bot .ab-send{width:38px;height:38px;border:0;border-radius:9px;background:#111111;color:#fff;cursor:pointer;display:grid;place-items:center;font-size:15px;flex:0 0 auto}
#hosseny-bot .ab-send:disabled{opacity:.55;cursor:default}
#hosseny-bot .ab-foot{font-size:9.5px;color:#777777;text-align:center;padding:0 12px 9px;background:#fff}
@media (max-width:768px){
  #hosseny-bot{bottom:88px;right:14px}
  #hosseny-bot[dir="rtl"]{right:auto;left:14px}
  #hosseny-bot .ab-launch{width:64px;height:64px}
  #hosseny-bot .ab-launch svg{width:40px;height:40px}
  #hosseny-bot .ab-hello{bottom:80px;font-size:11.5px;max-width:180px}
  #hosseny-bot .ab-panel{width:calc(100vw - 28px);height:min(70vh,520px);right:0}
  #hosseny-bot[dir="rtl"] .ab-panel{right:auto;left:0}
}

#hosseny-bot .ab-dot{border-color:#111111}
#hosseny-bot .ab-av{border:2px solid #ffffff}
