#e64ai-root{--e64ai-accent:#1763d1;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;z-index:999990;position:fixed;right:20px;bottom:20px;font-size:14px;color:#202838}
#e64ai-root *{box-sizing:border-box}
#e64ai-root .e64ai-launch{background:var(--e64ai-accent);color:white;border:0;border-radius:28px;padding:13px 20px;cursor:pointer;box-shadow:0 4px 22px #1113;font:inherit;font-weight:700}
#e64ai-root .e64ai-panel{position:absolute;bottom:60px;right:0;width:min(380px,calc(100vw - 24px));height:min(520px,calc(100dvh - 105px));border:1px solid #d7dce3;border-radius:15px;overflow:hidden;box-shadow:0 14px 55px #1113;background:#fff;display:flex;flex-direction:column}
#e64ai-root [hidden]{display:none!important}
#e64ai-root header{padding:13px 15px;background:var(--e64ai-accent);color:#fff;display:flex;align-items:center;justify-content:space-between}
#e64ai-root header button{border:0;background:transparent;color:#fff;font-size:25px;cursor:pointer;line-height:1}
#e64ai-root .e64ai-transcript{padding:14px;flex:1;overflow:auto;background:#fafbfd;display:flex;flex-direction:column;gap:10px}
#e64ai-root .e64ai-msg{max-width:92%;border-radius:13px;padding:10px 12px;white-space:pre-wrap;line-height:1.5;overflow-wrap:anywhere}
#e64ai-root .e64ai-msg.user{align-self:flex-end;background:#dbe8ff}
#e64ai-root .e64ai-msg.assistant{align-self:flex-start;background:#eceff2}
#e64ai-root .e64ai-msg small{display:block;color:#58606e;margin-top:8px;font-size:11px}
#e64ai-root .e64ai-msg a{display:block;color:#1555ad;font-size:12px;margin-top:7px;text-decoration:underline}
#e64ai-root .e64ai-contact{font-weight:700}
#e64ai-root .e64ai-form{display:flex;gap:6px;padding:10px;border-top:1px solid #e3e7ec}
#e64ai-root .e64ai-form input{min-width:0;flex:1;border:1px solid #cad1df;border-radius:8px;padding:10px;color:#202838;background:#fff;font:inherit}
#e64ai-root .e64ai-form button{border:0;border-radius:8px;background:var(--e64ai-accent);color:#fff;padding:0 14px;cursor:pointer;font:inherit}
#e64ai-root .e64ai-disclaimer{padding:0 11px 10px;font-size:10px;color:#687485;line-height:1.4}
#e64ai-root .e64ai-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:480px){#e64ai-root{right:12px;bottom:12px}#e64ai-root .e64ai-panel{width:calc(100vw - 24px)}}
/* v1.2: readable business information and always-present phone CTA */
.e64ai-contact-box{display:flex;flex-direction:column;gap:5px;margin-top:9px;}
.e64ai-hours{display:block;font-size:11px;line-height:1.45;opacity:.8;}
.e64ai-msg .e64ai-contact{text-decoration:none;display:inline-block;max-width:100%;overflow-wrap:anywhere;}
/* v1.4: playful superhero bot. No layout shift, transform-only flight animation. */
#e64ai-root{width:124px;height:134px;right:max(16px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:999990}
#e64ai-root .e64ai-flyer{position:relative;width:124px;height:134px;will-change:auto}
#e64ai-root .e64ai-launch{position:relative;display:block;width:124px;height:132px;padding:0;border:0;background:transparent;border-radius:20px;box-shadow:none;color:#1d3766;cursor:pointer;font:inherit}
#e64ai-root .e64ai-launch:focus-visible{outline:3px solid #f4ae3d;outline-offset:2px}
#e64ai-root .e64ai-hero{width:118px;height:112px;object-fit:contain;display:block;filter:drop-shadow(0 6px 8px #16274740);transform:translateZ(0)}
#e64ai-root .e64ai-dock-label{position:absolute;bottom:2px;right:0;background:var(--e64ai-accent);color:white;white-space:nowrap;font-size:12px;font-weight:700;padding:5px 10px;border-radius:100px;box-shadow:0 4px 12px #1113}
#e64ai-root .e64ai-speech{position:absolute;bottom:119px;right:-2px;width:220px;max-width:calc(100vw - 24px);border-radius:16px 16px 3px 16px;background:#fff;color:#1b2c49;border:1px solid #dae3ed;padding:11px 13px;font-size:14px;font-weight:700;line-height:1.4;box-shadow:0 9px 28px #1b325638;pointer-events:none}
#e64ai-root .e64ai-flying{will-change:transform}
#e64ai-root .e64ai-panel{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(150px,calc(env(safe-area-inset-bottom) + 134px));height:min(520px,calc(100dvh - 172px));z-index:999991}
#e64ai-root .e64ai-msg small{line-height:1.5}
@media(max-width:480px){
 #e64ai-root{right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));width:110px;height:120px}
 #e64ai-root .e64ai-flyer{width:110px;height:120px}
 #e64ai-root .e64ai-launch{width:110px;height:120px}
 #e64ai-root .e64ai-hero{width:106px;height:102px}
 #e64ai-root .e64ai-speech{bottom:112px;width:207px;font-size:13px}
 #e64ai-root .e64ai-panel{right:12px;bottom:max(137px,calc(env(safe-area-inset-bottom) + 120px));height:min(490px,calc(100dvh - 150px))}
}
@media(prefers-reduced-motion:reduce){#e64ai-root .e64ai-flyer{animation:none!important;transition:none!important}}

/* v1.5: opt-in, once-per-session promotional invitation */
#e64ai-root .e64ai-promo{border:1px solid #b6c9eb;background:#eef4ff;font-weight:500}
/* v1.6 voice, consent-based handoff, feedback and responsive input */
#e64ai-root .e64ai-top-controls{display:flex;align-items:center;gap:8px}
#e64ai-root .e64ai-human{font:inherit;font-size:12px;background:#ffffff26;border:1px solid #ffffff8c;color:white;border-radius:8px;padding:6px 8px;cursor:pointer}
#e64ai-root .e64ai-human:hover{background:#ffffff42}
#e64ai-root .e64ai-mic{padding:0 8px;background:#f0f5ff;color:#1b488d;border:1px solid #cad1df;min-width:35px}
#e64ai-root .e64ai-mic[aria-pressed="true"]{background:#ffdfdf;color:#93272a}
#e64ai-root .e64ai-voice-notice{padding:6px 12px;font-size:11px;color:#324a65;background:#f4f8ff}
#e64ai-root .e64ai-mini,#e64ai-root .e64ai-feedback button{font:inherit;cursor:pointer;border:1px solid #c6d7f0;border-radius:8px;background:#fff;color:#244a7a;padding:5px 8px;margin-top:8px;font-size:12px}
#e64ai-root .e64ai-mini{display:block}
#e64ai-root .e64ai-feedback{display:flex;align-items:center;gap:6px;margin-top:6px;flex-wrap:wrap}
#e64ai-root .e64ai-feedback span{font-size:11px;color:#536176}
#e64ai-root .e64ai-feedback button{margin-top:0;min-width:31px}
#e64ai-root .e64ai-feedback button:disabled{opacity:.5;cursor:default}
#e64ai-root .e64ai-handoff{display:flex;flex:1;min-height:0;overflow-y:auto;flex-direction:column;gap:8px;padding:13px 15px;background:#fff}
#e64ai-root .e64ai-handoff strong{font-size:16px}
#e64ai-root .e64ai-handoff p{font-size:12px;line-height:1.4;margin:0 0 4px;color:#58606e}
#e64ai-root .e64ai-handoff label{font-size:12px;display:block;font-weight:600}
#e64ai-root .e64ai-handoff label input:not([type=checkbox]),#e64ai-root .e64ai-handoff label textarea{font:inherit;font-size:14px;display:block;width:100%;padding:8px;border:1px solid #cbd2dc;border-radius:8px;background:white;color:#202838}
#e64ai-root .e64ai-consent{font-weight:400!important;line-height:1.5;display:flex!important;gap:6px;flex-wrap:wrap;align-items:flex-start}
#e64ai-root .e64ai-consent input{flex:0 0 auto}
#e64ai-root .e64ai-consent a{color:#175db2}
#e64ai-root .e64ai-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
#e64ai-root .e64ai-lead-actions{display:flex;gap:8px;flex-wrap:wrap}
#e64ai-root .e64ai-lead-actions button{font:inherit;background:var(--e64ai-accent);color:#fff;border:0;border-radius:8px;padding:9px 12px;cursor:pointer}
#e64ai-root .e64ai-lead-actions .e64ai-cancel-lead{background:#e8edf5;color:#20385b}
#e64ai-root .e64ai-lead-status{font-size:12px;line-height:1.4;color:#42516c}
#e64ai-root button:focus-visible,#e64ai-root a:focus-visible,#e64ai-root input:focus-visible,#e64ai-root textarea:focus-visible{outline:3px solid #eda72b;outline-offset:2px}
@media(max-width:480px){#e64ai-root .e64ai-handoff{padding:10px}#e64ai-root .e64ai-top-controls{gap:5px}#e64ai-root .e64ai-human{font-size:11px;padding:5px 6px}#e64ai-root .e64ai-form{padding:7px;gap:4px}#e64ai-root .e64ai-mic{padding:0 4px}}

/* v1.6.3: iOS Safari visual-viewport, keyboard and touch corrections. */
#e64ai-root .e64ai-panel{min-height:0;}
#e64ai-root .e64ai-transcript{min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
#e64ai-root .e64ai-form{flex:0 0 auto;}
#e64ai-root .e64ai-form input,
#e64ai-root .e64ai-handoff input:not([type=checkbox]),
#e64ai-root .e64ai-handoff textarea{font-size:16px;}
#e64ai-root .e64ai-form button,
#e64ai-root .e64ai-close,
#e64ai-root .e64ai-human,
#e64ai-root .e64ai-lead-actions button{min-height:44px;min-width:44px;touch-action:manipulation;}
#e64ai-root .e64ai-launch{touch-action:manipulation;}
@media(max-width:600px), (max-height:550px){
  #e64ai-root.e64ai-open .e64ai-flyer{visibility:hidden;pointer-events:none;}
  #e64ai-root.e64ai-mobile-open .e64ai-panel{
    position:fixed;
    top:var(--e64ai-vv-top,5px);
    bottom:auto;
    left:max(var(--e64ai-vv-left,6px),env(safe-area-inset-left));
    right:max(var(--e64ai-vv-right,6px),env(safe-area-inset-right));
    width:auto;
    height:var(--e64ai-vv-height,calc(100dvh - 10px));
    max-height:var(--e64ai-vv-height,calc(100dvh - 10px));
    border-radius:12px;
    margin:0;
  }
  #e64ai-root .e64ai-panel header{flex:0 0 auto;min-height:48px;}
  #e64ai-root .e64ai-disclaimer{flex:0 0 auto;}
  #e64ai-root .e64ai-handoff{min-height:0;}
  #e64ai-root .e64ai-top-controls{gap:5px;}
}

/* v1.6.4: iPadOS tablets and Samsung/Android virtual keyboards in wide viewports. */
#e64ai-root.e64ai-keyboard-open .e64ai-panel{
  position:fixed;
  top:var(--e64ai-vv-top,5px);
  bottom:auto;
  left:auto;
  right:max(var(--e64ai-vv-right,12px),env(safe-area-inset-right));
  width:min(380px,calc(100vw - 24px));
  height:min(520px,var(--e64ai-vv-height,calc(100dvh - 10px)));
  max-height:var(--e64ai-vv-height,calc(100dvh - 10px));
  min-height:0;
  margin:0;
}
#e64ai-root.e64ai-keyboard-open .e64ai-flyer{visibility:hidden;pointer-events:none;}
#e64ai-root.e64ai-keyboard-open .e64ai-panel header{flex:0 0 auto;}
#e64ai-root.e64ai-keyboard-open .e64ai-transcript{min-height:0;}
#e64ai-root.e64ai-keyboard-open .e64ai-handoff{min-height:0;}
@media(max-width:600px), (max-height:550px){
 #e64ai-root.e64ai-mobile-open .e64ai-panel{min-width:0;}
}


/* v1.6.10: keep the mascot docked at the RIGHT VERTICAL CENTRE.
   Avoid the site's fixed phone CTA at bottom-right.
   Do not transform the root: a transformed ancestor would break fixed
   visual-viewport positioning of the chat panel on iOS/Android. */
#e64ai-root {
  top:calc(50% - 67px);
  bottom:auto;
  right:max(16px,env(safe-area-inset-right));
}
/* Open the chat adjacent to the mascot on wide screens. */
#e64ai-root .e64ai-panel {
  position:fixed;
  top:50%;
  bottom:auto;
  right:max(152px,calc(env(safe-area-inset-right) + 142px));
  transform:translateY(-50%);
  height:min(520px,calc(100dvh - 24px));
  max-height:calc(100dvh - 24px);
}
@media(max-width:600px) {
  #e64ai-root {
    top:calc(50% - 67px);
    right:max(10px,env(safe-area-inset-right));
    bottom:auto;
  }
  #e64ai-root .e64ai-panel {
    right:max(12px,env(safe-area-inset-right));
    height:min(490px,calc(100dvh - 24px));
  }
}
@media(max-width:480px) {
  #e64ai-root { top:calc(50% - 60px); }
}
/* Phone, foldable and iPad keyboard viewports are managed by widget.js.
   Those calculated top/left/right values must win over centre-positioning. */
#e64ai-root.e64ai-mobile-open .e64ai-panel,
#e64ai-root.e64ai-keyboard-open .e64ai-panel {
  transform:none;
}

/* v1.6.12: typewriter and non-jumping transcript; visual output is aria-hidden,
   complete text is announced once to screen readers. */
#e64ai-root .e64ai-transcript{overflow-anchor:none}
#e64ai-root .e64ai-typing-text{white-space:pre-wrap}
#e64ai-root .e64ai-typing-text.e64ai-typing::after{content:"▍";color:var(--e64ai-accent);animation:e64ai-caret 0.65s steps(1,end) infinite}
@keyframes e64ai-caret{0%,49%{opacity:1}50%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){#e64ai-root .e64ai-typing-text.e64ai-typing::after{animation:none}}

/* v1.6.13: smooth, reader-controlled transcript navigation. */
#e64ai-root .e64ai-transcript{scroll-behavior:smooth;scroll-padding-top:10px;}
#e64ai-root .e64ai-panel{isolation:isolate;}
#e64ai-root .e64ai-more{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);z-index:10;max-width:calc(100% - 24px);border:1px solid #9bbbf0;border-radius:999px;background:#fff;color:#1754a9;font:600 12px/1.35 system-ui,sans-serif;box-shadow:0 6px 22px #132d5633;padding:9px 15px;cursor:pointer;white-space:nowrap;touch-action:manipulation;}
#e64ai-root .e64ai-more:focus-visible{outline:3px solid #eca72b;outline-offset:2px;}
#e64ai-root .e64ai-more:hover{background:#f2f7ff;}
#e64ai-root.e64ai-question-limit .e64ai-form input{opacity:.55;cursor:not-allowed}
@media (max-width:480px){#e64ai-root .e64ai-more{bottom:96px}}
@media (prefers-reduced-motion:reduce){#e64ai-root .e64ai-transcript{scroll-behavior:auto}}
