#alfred-root{--a-accent:#1c3f6e;--a-accent2:#2f6fb0;position:fixed;right:20px;bottom:20px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;display:none}
#alfred-root .alfred-hidden{display:none!important}
#alfred-bubble{width:60px;height:60px;border-radius:50%;border:none;background:var(--a-accent);color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s}
#alfred-bubble:hover{transform:scale(1.06)}
#alfred-teaser{position:absolute;right:0;bottom:78px;width:290px;max-width:calc(100vw - 40px);background:var(--a-accent);color:#fff;border-radius:16px;padding:16px 40px 16px 18px;box-shadow:0 10px 28px rgba(0,0,0,.28);font-size:15.5px;font-weight:500;line-height:1.4;cursor:pointer;animation:alfredPop .35s cubic-bezier(.2,.9,.3,1.3)}
#alfred-teaser::after{content:"";position:absolute;right:22px;bottom:-8px;width:16px;height:16px;background:var(--a-accent);transform:rotate(45deg);border-radius:0 0 3px 0}
#alfred-teaser-x{position:absolute;top:6px;right:9px;border:none;background:none;font-size:19px;color:rgba(255,255,255,.75);cursor:pointer;line-height:1}
@keyframes alfredPop{from{opacity:0;transform:translateY(12px) scale(.92)}to{opacity:1;transform:none}}
#alfred-window{position:absolute;right:0;bottom:0;width:360px;max-width:calc(100vw - 32px);height:540px;max-height:calc(100vh - 40px);background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.28);display:flex;flex-direction:column;overflow:hidden}
#alfred-head{background:var(--a-accent);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between}
#alfred-head-id{display:flex;flex-direction:column}
#alfred-head-id strong{font-size:16px}
#alfred-head-id span{font-size:12px;opacity:.85}
#alfred-close{border:none;background:none;color:#fff;font-size:24px;cursor:pointer;line-height:1}
#alfred-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#f5f7fa}
.alfred-msg{max-width:82%;padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.45;word-wrap:break-word}
.alfred-bot{align-self:flex-start;background:#fff;color:#1a1a1a;border:1px solid #e6e9ef;border-bottom-left-radius:4px}
.alfred-user{align-self:flex-end;background:var(--a-accent2);color:#fff;border-bottom-right-radius:4px}
.alfred-typing{align-self:flex-start;color:#888;font-size:13px;padding:6px 4px}
.alfred-action{align-self:flex-start;margin-top:-2px}
.alfred-btn{display:inline-block;background:var(--a-accent);color:#fff!important;text-decoration:none;padding:9px 16px;border-radius:10px;font-size:14px;font-weight:600;border:none;cursor:pointer}
.alfred-form{align-self:stretch;background:#fff;border:1px solid #e6e9ef;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px}
.alfred-form input[type=text],.alfred-form input[type=email],.alfred-form input[type=tel]{padding:9px 10px;border:1px solid #ccd2dc;border-radius:8px;font-size:14px;width:100%;box-sizing:border-box}
.alfred-consent{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:#555;line-height:1.3}
.alfred-consent input{margin-top:2px}
.alfred-form .alfred-btn{margin-top:2px}
.alfred-err{color:#c0392b;font-size:12.5px}
#alfred-input-row{display:flex;border-top:1px solid #e6e9ef;padding:8px;gap:8px;background:#fff}
#alfred-text{flex:1;border:1px solid #ccd2dc;border-radius:20px;padding:10px 14px;font-size:14px;outline:none}
#alfred-send{border:none;background:var(--a-accent);color:#fff;width:40px;border-radius:50%;cursor:pointer;font-size:15px}
#alfred-send:disabled{opacity:.5;cursor:default}
@media (max-width:480px){#alfred-window{width:calc(100vw - 24px);height:calc(100vh - 90px)}#alfred-root{right:12px;bottom:12px}}
