.ast-fab{position:fixed;inset-inline-end:18px;bottom:18px;z-index:41;width:60px;height:60px;border-radius:50%;border:0;padding:0;background:var(--gold);color:var(--leather);display:grid;place-items:center;cursor:pointer;box-shadow:0 0 0 2px var(--leather),0 8px 20px rgba(31,26,19,.3)}
.ast-fab svg{width:30px;height:30px}
.ast-fab:focus-visible{outline:2px solid var(--gold-deep);outline-offset:4px}
.ast-fab.on{background:var(--leather);color:var(--gold);box-shadow:0 0 0 2px var(--gold),0 8px 20px rgba(31,26,19,.3)}
.form-on .ast-fab:not(.on){display:none}
.ast-tip{position:fixed;inset-inline-end:88px;bottom:26px;z-index:41;display:flex;align-items:center;max-width:calc(100vw - 110px);background:var(--paper);border:1px solid var(--line);border-radius:14px;border-end-end-radius:4px;box-shadow:0 8px 24px rgba(31,26,19,.2);animation:ast-tip .35s ease-out}
.ast-tip[hidden],.form-on .ast-tip{display:none}
.ast-tip button{background:transparent;border:0;cursor:pointer;font:inherit;color:var(--ink)}
.ast-tip-t{padding-block:9px;padding-inline:14px 4px;font-size:14px;font-weight:600;text-align:start}
.ast-tip-x{font-size:20px;line-height:1;width:32px;height:36px;color:var(--muted)!important}
.ast-tip button:focus-visible{outline:2px solid var(--gold);outline-offset:-2px;border-radius:10px}
@keyframes ast-tip{from{opacity:0;transform:translateY(8px)}}
.ast{position:fixed;inset-inline-end:18px;bottom:90px;z-index:42;width:min(380px,calc(100vw - 24px));height:min(560px,calc(100vh - 120px));display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 20px 50px rgba(31,26,19,.28)}
.ast[hidden]{display:none}
.ast-hd{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--leather);color:var(--paper)}
.ast-av{width:36px;height:36px;border-radius:50%;background:var(--gold);color:var(--leather);display:grid;place-items:center;flex:none}
.ast-av svg{width:20px;height:20px}
.ast-tt{flex:1;display:flex;flex-direction:column;line-height:1.3}
.ast-tt b{font-family:'El Messiri',serif;color:var(--gold);font-size:17px}
.ast-tt small{font-size:12px;opacity:.75}
.ast-new,.ast-x{background:transparent;border:0;color:var(--gold-hi);cursor:pointer;font:inherit}
.ast-new{font-size:12px;padding:4px 8px;border:1px solid #5A4F3C;border-radius:999px}
.ast-x{font-size:26px;line-height:1;width:34px;height:34px}
.ast-new:focus-visible,.ast-x:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:6px}
.ast-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--sand)}
.ast-msg{max-width:85%;padding:9px 13px;border-radius:14px;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.ast-msg.bot{align-self:flex-start;background:var(--paper);border:1px solid var(--line);border-start-start-radius:4px}
.ast-msg.me{align-self:flex-end;background:var(--leather);color:var(--paper);border-start-end-radius:4px}
.ast-wa{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;padding:9px 14px;border-radius:12px;background:#1F8A4C;color:#fff!important;text-decoration:none!important;white-space:normal}
.ast-cars{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px;margin-top:8px;white-space:normal}
.ast-cars figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.ast-cars img{display:block;width:100%;height:auto;aspect-ratio:640/420;object-fit:contain;background:#fff}
.ast-cars figcaption{padding:4px 8px;font-size:12px;line-height:1.4;color:var(--muted);text-align:center;direction:ltr}
.ast-wa svg{width:20px;height:20px;flex:none}
.ast-msg a{color:var(--gold-deep);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.ast-msg.typing::after{content:'•••';letter-spacing:3px;color:var(--muted);animation:ast-dots 1s infinite}
@keyframes ast-dots{50%{opacity:.3}}
.ast-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px;background:var(--sand)}
.ast-chips[hidden]{display:none}
.ast-chips button{font:inherit;font-size:13px;padding:5px 12px;border-radius:999px;border:1px solid var(--gold-deep);background:var(--paper);color:var(--ink);cursor:pointer}
.ast-in{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--paper)}
.ast-in textarea{flex:1;resize:none;font:inherit;font-size:16px;line-height:1.5;padding:8px 12px;border:1px solid var(--line);border-radius:12px;max-height:110px;color:var(--ink);background:var(--paper)}
.ast-in textarea:focus{outline:2px solid var(--gold);outline-offset:0}
.ast-in button{width:42px;height:42px;flex:none;border:0;border-radius:50%;background:var(--leather);color:var(--gold);display:grid;place-items:center;cursor:pointer}
.ast-in button:disabled{opacity:.5;cursor:wait}
.ast-in button svg{width:20px;height:20px}
[dir="rtl"] .ast-in button svg{transform:scaleX(-1)}
@media (max-width:600px){.ast{inset-inline:8px;width:auto;bottom:88px;height:calc(100vh - 110px);height:calc(100dvh - 110px)}}
@media (prefers-reduced-motion:reduce){.ast-msg.typing::after,.ast-tip{animation:none}}
