.ales-ai{position:fixed;left:18px;bottom:18px;z-index:9999998;font-family:inherit}
.ales-ai *{box-sizing:border-box}
.ales-ai__launcher{display:grid;place-items:center;width:58px;height:58px;border:0;border-radius:18px 18px 18px 4px;background:#ef6c01;color:#14171a;box-shadow:0 14px 34px rgba(20,23,26,.28);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.ales-ai__launcher:hover,.ales-ai__launcher:focus-visible{background:#ff7a12;transform:translateY(-2px);box-shadow:0 18px 40px rgba(20,23,26,.34);outline:3px solid rgba(239,108,1,.25);outline-offset:3px}
.ales-ai__launcher svg{width:31px;height:31px}
.ales-ai__panel{position:absolute;left:0;bottom:72px;width:min(380px,calc(100vw - 30px));overflow:hidden;border:1px solid #d8dde1;border-radius:10px;background:#fff;color:#17191c;box-shadow:0 24px 70px rgba(20,23,26,.28)}
.ales-ai__panel[hidden]{display:none!important}
.ales-ai__header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border-bottom:1px solid #e5e7ea;background:linear-gradient(180deg,#fff,#f5f6f7)}
.ales-ai__header div{display:grid;gap:2px}
.ales-ai__header strong{font-size:15px;font-weight:820;line-height:1.2}
.ales-ai__header span{color:#626970;font-size:12px}
.ales-ai__close{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:8px;background:#eef1f3;color:#22272b;font-size:24px;line-height:1;cursor:pointer}
.ales-ai__messages{display:grid;gap:10px;max-height:410px;overflow:auto;padding:14px;background:#f7f8f9;scrollbar-width:thin}
.ales-ai__message{max-width:92%;padding:10px 12px;border-radius:9px;font-size:13px;line-height:1.45;text-align:left;white-space:pre-wrap}
.ales-ai__message--bot{justify-self:start;border:1px solid #e0e4e7;background:#fff;color:#20262b}
.ales-ai__message--user{justify-self:end;background:#20262b;color:#fff}
.ales-ai__message--intro{width:100%;max-width:100%}
.ales-ai__message--loading{min-width:54px;color:#626970}
.ales-ai__typing{display:inline-flex;align-items:center;gap:5px;min-height:18px}
.ales-ai__typing span{display:block;width:7px;height:7px;border-radius:50%;background:#ef6c01;opacity:.38;animation:alesAiTyping 1s infinite ease-in-out}
.ales-ai__typing span:nth-child(2){animation-delay:.15s}
.ales-ai__typing span:nth-child(3){animation-delay:.3s}
.ales-ai__products{display:grid;gap:9px;margin-top:3px}
.ales-ai__product{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:center;padding:8px;border:1px solid #e0e4e7;border-radius:8px;background:#fff;text-decoration:none!important;color:#17191c!important}
.ales-ai__product:hover,.ales-ai__product:focus-visible{border-color:#ef6c01;outline:0}
.ales-ai__product img{width:58px;height:58px;object-fit:cover;border-radius:7px;background:#eef1f3}
.ales-ai__product strong{display:block;margin-bottom:3px;color:#17191c;font-size:12px;line-height:1.25}
.ales-ai__product span{display:block;color:#626970;font-size:11px;line-height:1.3}
.ales-ai__form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-top:1px solid #e5e7ea;background:#fff}
.ales-ai__input{width:100%;min-height:42px;max-height:96px;resize:vertical;border:1px solid #d8dde1;border-radius:8px;padding:10px 11px;color:#17191c;font:inherit;font-size:13px;line-height:1.35}
.ales-ai__input:focus{border-color:#ef6c01;outline:2px solid rgba(239,108,1,.14)}
.ales-ai__send{min-width:82px;border:0;border-radius:8px;background:#ef6c01;color:#fff;font:inherit;font-size:13px;font-weight:760;cursor:pointer}
.ales-ai__send:disabled{opacity:.55;cursor:progress}
@media (max-width:520px){.ales-ai{left:10px;right:10px;bottom:10px}.ales-ai__panel{width:calc(100vw - 20px);bottom:70px}.ales-ai__launcher{width:56px;height:56px}.ales-ai__messages{max-height:58vh}}
@keyframes alesAiTyping{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.ales-ai__launcher{transition:none}}
