/* Easy Solutions — Assistant IA commercial V71 */
.es-ai-chat{position:fixed;right:20px;bottom:88px;z-index:90;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#16243f}
.es-ai-chat *{box-sizing:border-box}
.es-ai-launcher{width:58px;height:58px;border:0;border-radius:50%;background:#16243f;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 14px 36px rgba(11,20,37,.28);transition:transform .2s ease,background .2s ease}
.es-ai-launcher:hover{transform:translateY(-2px);background:#c41e2a}.es-ai-launcher svg{width:25px;height:25px}.es-ai-launcher .es-ai-close{display:none}.es-ai-chat.is-open .es-ai-launcher .es-ai-open{display:none}.es-ai-chat.is-open .es-ai-launcher .es-ai-close{display:block}
.es-ai-badge{position:absolute;right:68px;bottom:8px;background:#fff;color:#16243f;border:1px solid #e4e9f2;border-radius:999px;padding:8px 12px;white-space:nowrap;font-size:12px;font-weight:700;box-shadow:0 8px 26px rgba(11,20,37,.12);transition:opacity .2s ease,transform .2s ease}.es-ai-chat.is-open .es-ai-badge{opacity:0;pointer-events:none;transform:translateX(8px)}
.es-ai-panel{position:absolute;right:0;bottom:72px;width:min(388px,calc(100vw - 32px));height:min(620px,calc(100vh - 150px));background:#fff;border:1px solid #e4e9f2;border-radius:20px;box-shadow:0 24px 70px rgba(11,20,37,.24);overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(10px) scale(.98);transform-origin:bottom right;transition:opacity .2s ease,transform .2s ease,visibility .2s}
.es-ai-chat.is-open .es-ai-panel{opacity:1;visibility:visible;transform:none}
.es-ai-head{background:#0b1425;color:#fff;padding:16px 17px 14px;display:flex;align-items:center;gap:11px;min-height:72px}.es-ai-mark{width:36px;height:36px;border-radius:10px;background:#c41e2a;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;flex:0 0 auto}.es-ai-head-copy{min-width:0}.es-ai-head strong{display:block;font-size:14px;line-height:1.2}.es-ai-head span{display:block;font-size:11px;color:rgba(255,255,255,.68);margin-top:4px}.es-ai-status{display:inline-flex!important;align-items:center;gap:5px}.es-ai-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#6fe49b;display:inline-block}
.es-ai-messages{flex:1;overflow:auto;padding:16px 14px 8px;background:#f7f9fc;scroll-behavior:smooth}.es-ai-msg{display:flex;margin:0 0 10px}.es-ai-msg.user{justify-content:flex-end}.es-ai-bubble{max-width:86%;padding:10px 12px;border-radius:14px;font-size:13.5px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.es-ai-msg.bot .es-ai-bubble{background:#fff;border:1px solid #e5eaf2;border-bottom-left-radius:5px}.es-ai-msg.user .es-ai-bubble{background:#16243f;color:#fff;border-bottom-right-radius:5px}.es-ai-msg.error .es-ai-bubble{background:#fff5f5;border-color:#f1c5c9;color:#79242c}.es-ai-typing .es-ai-bubble{display:flex;gap:4px;align-items:center;padding:13px 14px}.es-ai-typing i{width:5px;height:5px;background:#8c99b0;border-radius:50%;animation:esAiDot 1s infinite ease-in-out}.es-ai-typing i:nth-child(2){animation-delay:.15s}.es-ai-typing i:nth-child(3){animation-delay:.3s}@keyframes esAiDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
.es-ai-quick{padding:0 14px 10px;background:#f7f9fc;display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.es-ai-quick::-webkit-scrollbar{display:none}.es-ai-chip{border:1px solid #dce3ed;background:#fff;color:#263a5d;border-radius:999px;padding:7px 10px;font:600 11px/1.2 Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap}.es-ai-chip:hover{border-color:#c41e2a;color:#a5121d}
.es-ai-actions{padding:0 14px 11px;background:#f7f9fc}.es-ai-lead-btn{width:100%;border:0;border-radius:10px;background:#c41e2a;color:#fff;padding:10px 12px;font:700 12px/1.2 Inter,system-ui,sans-serif;cursor:pointer}.es-ai-lead-btn:hover{background:#a5121d}
.es-ai-compose{border-top:1px solid #e5eaf2;background:#fff;padding:10px}.es-ai-compose-row{display:flex;gap:8px;align-items:flex-end}.es-ai-input{flex:1;resize:none;max-height:92px;min-height:40px;border:1px solid #dce3ed;border-radius:10px;padding:10px 11px;font:13px/1.35 Inter,system-ui,sans-serif;color:#16243f;outline:none}.es-ai-input:focus{border-color:#8090a9;box-shadow:0 0 0 3px rgba(22,36,63,.07)}.es-ai-send{width:40px;height:40px;border:0;border-radius:10px;background:#16243f;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}.es-ai-send:disabled{opacity:.45;cursor:not-allowed}.es-ai-send svg{width:17px;height:17px}.es-ai-note{font-size:9.5px;line-height:1.35;color:#7b8799;margin:7px 2px 0}.es-ai-note a{color:#54627e;text-decoration:underline}
.es-ai-lead{position:absolute;inset:72px 0 0;background:#fff;z-index:4;display:none;flex-direction:column}.es-ai-lead.is-visible{display:flex}.es-ai-lead-head{padding:16px 17px 10px;border-bottom:1px solid #eef1f5}.es-ai-lead-head strong{font-size:16px}.es-ai-lead-head p{font-size:12px;color:#647087;margin:5px 0 0;line-height:1.45}.es-ai-lead-body{padding:14px 17px;overflow:auto}.es-ai-field{margin-bottom:10px}.es-ai-field label{display:block;font-size:10.5px;font-weight:700;color:#526079;margin-bottom:5px}.es-ai-field input,.es-ai-field textarea{width:100%;border:1px solid #dce3ed;border-radius:9px;padding:9px 10px;font:13px/1.4 Inter,system-ui,sans-serif;outline:none}.es-ai-field textarea{min-height:74px;resize:vertical}.es-ai-field input:focus,.es-ai-field textarea:focus{border-color:#8090a9;box-shadow:0 0 0 3px rgba(22,36,63,.07)}.es-ai-lead-actions{display:flex;gap:8px;margin-top:12px}.es-ai-secondary,.es-ai-primary{border:0;border-radius:9px;padding:10px 12px;font:700 12px/1 Inter,system-ui,sans-serif;cursor:pointer}.es-ai-secondary{background:#eef1f5;color:#263a5d}.es-ai-primary{flex:1;background:#c41e2a;color:#fff}.es-ai-primary:disabled{opacity:.55;cursor:not-allowed}.es-ai-consent{font-size:9.5px;color:#7b8799;line-height:1.4;margin-top:8px}.es-ai-success{padding:28px 18px;text-align:center}.es-ai-success strong{display:block;font-size:17px;margin-bottom:7px}.es-ai-success p{font-size:12px;color:#647087;line-height:1.5}
@media(max-width:560px){.es-ai-chat{right:14px;bottom:82px}.es-ai-panel{position:fixed;right:10px;left:10px;bottom:148px;width:auto;height:min(610px,calc(100dvh - 170px));border-radius:17px}.es-ai-badge{display:none}.es-ai-launcher{width:54px;height:54px}.es-ai-bubble{max-width:90%}}
@media(prefers-reduced-motion:reduce){.es-ai-panel,.es-ai-launcher,.es-ai-badge{transition:none!important}.es-ai-typing i{animation:none!important}}


/* A single consistent avatar and one panel, without the cropped floating portrait. */
.es-ai-chat{right:max(16px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:9990;font-family:var(--font-body,Arial,sans-serif)}
.es-ai-launcher{position:relative;width:62px;height:62px;padding:0;background:#16243f;border:2px solid white;overflow:hidden}.es-ai-character-avatar{width:100%;height:100%;display:block;object-fit:contain}.es-ai-mark{width:48px;height:48px;border-radius:50%;overflow:hidden;background:#16243f}.es-ai-mark img{width:100%;height:100%;object-fit:contain;display:block}.es-ai-status:before{display:none}.es-ai-head{padding:12px 14px;min-height:74px}.es-ai-head-copy{flex:1}.es-ai-panel-close{width:40px;height:40px;border:1px solid #ffffff40;background:transparent;color:white;border-radius:8px;font-size:25px;cursor:pointer}.es-ai-panel{right:0;bottom:76px;width:390px;max-width:calc(100vw - 32px);height:min(600px,calc(var(--es-ai-vh,100dvh) - 120px));max-height:calc(100dvh - 120px);border-radius:12px}.es-ai-badge{right:74px;bottom:13px;font-size:12px;white-space:nowrap;pointer-events:none}.es-ai-messages{min-height:80px}.es-ai-routes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}.es-ai-routes a{display:block;background:#16243f;color:white;padding:10px 12px;border-radius:6px;font-size:12px;font-weight:700;text-decoration:none}.es-ai-chat button:focus-visible,.es-ai-chat a:focus-visible{outline:3px solid #367ec5;outline-offset:3px}.es-ai-security-status:empty{display:none}.es-ai-chat .es-ai-input{min-width:0}.es-menu-open .es-ai-chat{visibility:hidden}.es-ai-lead{inset:74px 0 0}.es-ai-lead-body{min-height:0}.es-ai-quick{flex-wrap:wrap;flex-shrink:0}.es-ai-chip{min-height:36px}.es-ai-note{line-height:1.5}.es-ai-actions,.es-ai-compose{flex-shrink:0}
@media(max-width:760px){.es-ai-chat{right:12px;bottom:max(14px,env(safe-area-inset-bottom))}.es-ai-launcher{width:56px;height:56px}.es-ai-badge{display:none}.es-ai-panel{position:fixed;left:12px;right:12px;bottom:82px;width:auto;max-width:none;height:min(610px,calc(var(--es-ai-vh,100dvh) - 98px));max-height:calc(var(--es-ai-vh,100dvh) - 98px)}.es-ai-input{font-size:16px}.es-ai-field input,.es-ai-field textarea{font-size:16px}.es-ai-head strong{font-size:13px}.es-ai-messages{padding:12px}.es-ai-quick{max-height:90px;overflow:auto}}
@media(max-height:560px){.es-ai-quick,.es-ai-note,.es-ai-badge{display:none}.es-ai-panel{bottom:74px;height:calc(var(--es-ai-vh,100dvh) - 88px);max-height:calc(var(--es-ai-vh,100dvh) - 88px)}.es-ai-head{min-height:52px;padding:6px 12px}.es-ai-mark{width:36px;height:36px}.es-ai-lead{inset:52px 0 0}.es-ai-actions{padding-bottom:6px}}

/* Alex: restore the existing character, with a brief introduction and an accessible launcher. */
.es-ai-badge{font-family:inherit;cursor:pointer;pointer-events:auto;white-space:nowrap}
.es-ai-character-figure{position:absolute;right:0;bottom:78px;width:120px;height:auto;max-height:min(330px,calc(var(--es-ai-vh,100dvh) - 120px));object-fit:contain;border-radius:12px;box-shadow:0 12px 35px #0b14253b;opacity:0;visibility:hidden;transform:translateY(20px);transition:opacity .3s ease,transform .35s ease,visibility .3s;pointer-events:none}
.es-ai-chat.is-peeking .es-ai-character-figure,.es-ai-chat.is-open .es-ai-character-figure{opacity:1;visibility:visible;transform:none}
.es-ai-intro-close{position:absolute;right:4px;bottom:calc(78px + min(330px,calc(var(--es-ai-vh,100dvh) - 120px)) - 30px);width:28px;height:28px;border-radius:50%;background:#16243f;color:white;border:1px solid #ffffff80;z-index:2;font-size:19px;line-height:1;cursor:pointer}.es-ai-intro-close[hidden]{display:none}
@media(min-width:761px) and (min-height:561px){.es-ai-chat.is-open .es-ai-panel{right:136px}.es-ai-chat.is-peeking .es-ai-badge{bottom:160px;right:132px;padding:13px 16px;border-radius:14px 14px 3px 14px}}
@media(max-width:760px){.es-ai-character-figure{display:none}.es-ai-chat:not(.is-open) .es-ai-badge{display:block;right:68px;bottom:10px;font-size:11px;padding:9px 11px}.es-ai-intro-close{display:none}.es-ai-chat.is-peeking .es-ai-launcher{box-shadow:0 0 0 5px #c41e2a22,0 12px 28px #0b142535}}
@media(max-height:560px){.es-ai-character-figure,.es-ai-intro-close{display:none}}
@media(prefers-reduced-motion:reduce){.es-ai-character-figure{transition:none;transform:none}}
.es-ai-chat{z-index:10070}.es-ai-character-figure{max-width:none}

/* Alex's transparent head is the launcher itself, without a circular container. */
.es-ai-launcher,.es-ai-launcher:hover,.es-ai-chat.is-peeking .es-ai-launcher{width:72px;height:82px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;overflow:visible}
.es-ai-launcher .es-ai-character-avatar{width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 3px 5px rgba(11,20,37,.22));transition:transform .2s ease}
.es-ai-launcher:hover .es-ai-character-avatar{transform:translateY(-2px) scale(1.04)}
.es-ai-mark{width:44px;height:48px;background:transparent;border-radius:0;overflow:visible}.es-ai-mark img{width:100%;height:100%;object-fit:contain;object-position:center}
.es-ai-badge{right:82px;bottom:21px}.es-ai-panel{bottom:94px}.es-ai-character-figure{bottom:96px}.es-ai-intro-close{bottom:calc(96px + min(330px,calc(var(--es-ai-vh,100dvh) - 120px)) - 30px)}
@media(max-width:760px){.es-ai-launcher,.es-ai-launcher:hover,.es-ai-chat.is-peeking .es-ai-launcher{width:60px;height:70px}.es-ai-chat:not(.is-open) .es-ai-badge{right:69px;bottom:16px}.es-ai-panel{bottom:92px;height:min(610px,calc(var(--es-ai-vh,100dvh) - 108px));max-height:calc(var(--es-ai-vh,100dvh) - 108px)}}
@media(max-height:560px){.es-ai-panel{height:calc(var(--es-ai-vh,100dvh) - 108px);max-height:calc(var(--es-ai-vh,100dvh) - 108px)}}
@media(prefers-reduced-motion:reduce){.es-ai-launcher .es-ai-character-avatar{transition:none}.es-ai-launcher:hover .es-ai-character-avatar{transform:none}}
