/* Exact ELIA visual rules copied from assets/style.css (homepage). */
.ec-help-launch{position:fixed;right:24px;bottom:24px;z-index:980;border:1px solid #d9bd89;background:#0c1c2c;color:#fff;box-shadow:0 14px 40px #07152240;border-radius:100px;padding:14px 19px;display:flex;align-items:center;gap:11px;font:600 14px/1.3 inherit;cursor:pointer;transition:transform .25s,box-shadow .25s}
.ec-help-launch:hover{transform:translateY(-3px);box-shadow:0 20px 45px #07152255}
.ec-help-dot{height:12px;width:12px;border-radius:50%;background:#d7b77d;box-shadow:0 0 0 5px #d7b77d22}
.ec-help-panel{position:fixed;right:24px;bottom:88px;width:min(410px,calc(100vw - 30px));height:min(610px,calc(100dvh - 115px));z-index:985;background:#fff;border:1px solid #e8e2d9;border-radius:19px;box-shadow:0 24px 75px #08182d35;display:none;flex-direction:column;overflow:hidden;font-family:inherit}
.ec-help-panel.ec-open{display:flex;animation:ecPanel .26s ease-out}
@keyframes ecPanel{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.ec-help-head{background:#0b1b2b;color:#fff;padding:21px 22px;display:flex;align-items:center;gap:13px}
.ec-help-avatar{height:42px;width:42px;border-radius:14px;display:grid;place-items:center;background:#cba76c;color:#0b1b2b;font-weight:750;font-size:19px}
.ec-help-head strong{display:block;font-size:17px}
.ec-help-head small{display:block;color:#d2d8df;font-size:12px;margin-top:3px}
.ec-help-close,.ec-modal-close{margin-left:auto;border:0;background:transparent;color:inherit;font-size:25px;cursor:pointer;padding:4px 9px}
.ec-help-messages{padding:21px 17px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:13px;background:#faf9f7}
.ec-help-msg{max-width:90%;border-radius:15px;padding:12px 15px;font-size:14px;line-height:1.6;white-space:pre-line}
.ec-help-msg.bot{background:#fff;color:#142437;border:1px solid #e9e5dd;align-self:flex-start;border-bottom-left-radius:4px}
.ec-help-msg.user{background:#10243a;color:white;align-self:flex-end;border-bottom-right-radius:4px}
.ec-help-suggestions{display:flex;gap:7px;flex-wrap:wrap;padding:10px 15px 4px;background:white}
.ec-help-suggestions button{border:1px solid #d9c5a4;border-radius:25px;background:#fff;color:#203249;font-size:12px;padding:8px 11px;cursor:pointer}
.ec-help-suggestions button:hover{background:#f5eee2}
.ec-help-form{display:flex;gap:7px;padding:13px 15px;background:white}
.ec-help-form input{min-width:0;flex:1;border:1px solid #d9dee2;border-radius:10px;padding:11px 12px;font:inherit;font-size:14px}
.ec-help-form button{border:0;border-radius:10px;background:#cba76c;color:#071522;font-weight:700;padding:0 15px;cursor:pointer}
.ec-help-note{font-size:10px;color:#65717b;text-align:center;padding:0 12px 12px;background:white}
.ec-help-note a{text-decoration:underline}
.ec-help-inline-link{display:inline-block;margin-top:8px;color:#80612f;font-weight:700;text-decoration:underline}
.ec-help-link-button{border:0;background:transparent;text-decoration:underline;color:#89622f;font-weight:700;cursor:pointer;padding:0}
.ec-help-msg a{color:#8a6534;text-decoration:underline}
.ec-help-panel[hidden],.ec-contact-overlay[hidden]{display:none!important}
@media (max-width:600px){.ec-help-launch{right:14px;bottom:14px;padding:13px 16px}.ec-help-panel{right:10px;bottom:75px;width:calc(100vw - 20px);height:min(620px,calc(100dvh - 90px))}}
@media (prefers-reduced-motion:reduce){.ec-help-panel.ec-open,.ec-contact-modal{animation:none}.ec-help-launch{transition:none}}
.ec-help-avatar{background:#172a3d;border:1px solid #cba76c55;padding:8px;border-radius:12px}
.ec-help-avatar img{width:100%;height:100%;object-fit:contain}
.ec-help-head{background:linear-gradient(120deg,#091929,#173047);border-bottom:2px solid #b99b68}
.ec-help-panel{border-radius:20px;box-shadow:0 28px 85px #06172845}
.ec-help-msg.bot{box-shadow:0 3px 12px #0b223008}
.ec-help-form input:focus{outline:2px solid #b99b68;outline-offset:1px}
.ec-help-msg.bot{animation:eliaBubbleIn .28s cubic-bezier(.2,.8,.2,1) both;transform-origin:bottom left}
.ec-help-msg.user{animation:eliaBubbleIn .23s cubic-bezier(.2,.8,.2,1) both;transform-origin:bottom right}
@keyframes eliaBubbleIn{from{opacity:0;transform:translateY(9px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
.ec-thinking{display:flex;align-items:center;gap:12px;min-height:42px}
.ec-thinking-label{font-size:12px;color:#637183}
.ec-thinking-dots{display:inline-flex;align-items:center;gap:4px}
.ec-thinking-dots i{display:block;width:6px;height:6px;border-radius:50%;background:#bd985f;animation:eliaDot 1.15s infinite ease-in-out}
.ec-thinking-dots i:nth-child(2){animation-delay:.15s}
.ec-thinking-dots i:nth-child(3){animation-delay:.3s}
@keyframes eliaDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-5px)}}
.ec-typing-cursor{display:inline-block;width:2px;height:1em;vertical-align:-.14em;margin-left:2px;background:#b6935d;animation:eliaCursor .65s step-end infinite}
@keyframes eliaCursor{50%{opacity:0}}
.ec-help-launch .ec-help-dot{animation:eliaBeacon 2.8s ease-in-out infinite}
@keyframes eliaBeacon{0%,100%{box-shadow:0 0 0 5px #d7b77d22}50%{box-shadow:0 0 0 9px #d7b77d0b}}
@media (prefers-reduced-motion:reduce){.ec-help-msg.bot,.ec-help-msg.user,.ec-thinking-dots i,.ec-typing-cursor,.ec-help-launch .ec-help-dot{animation:none!important}}
/* Only website-check-specific adjustments; original ELIA styles above remain unchanged. */
.ec-help-panel{font-family:Arial,sans-serif;color-scheme:light;line-height:1.7}
.ec-help-launch{font-family:Arial,sans-serif;line-height:1.3}
.ec-help-limited{padding:9px 14px;background:#f6f1e8;border-bottom:1px solid #e5d7bd;color:#55462f;font-size:11px;line-height:1.5}

/* Website-check global `button {width:100%;justify-content:space-between}` must not affect the original floating ELIA launcher. */
button.ec-help-launch {
  width: max-content;
  max-width: calc(100vw - 28px);
  min-width: 0;
  left: auto;
  right: 24px;
  bottom: 24px;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 19px;
  border: 1px solid #d9bd89;
  border-radius: 100px;
}
@media (max-width: 600px) {
  button.ec-help-launch { right: 14px; bottom: 14px; padding: 13px 16px; }
}

/* Isolate ELIA controls from the website-check's broad button/input rules. */
.ec-help-panel, .ec-help-panel * { box-sizing: border-box; }
.ec-help-panel .ec-help-head { flex-shrink:0; }
.ec-help-panel .ec-help-head > div { flex:1 1 auto; min-width:0; }
.ec-help-panel button.ec-help-close { width:auto; min-width:32px; height:34px; flex:0 0 auto; display:grid; place-items:center; padding:0; margin-left:auto; background:transparent; color:#fff; font-size:25px; font-weight:400; border:0; border-radius:8px; }
.ec-help-panel .ec-help-suggestions button { width:auto; flex:0 1 auto; display:inline-flex; align-items:center; justify-content:center; font-weight:400; font-size:12px; padding:8px 11px; line-height:1.3; }
.ec-help-panel .ec-help-form { display:flex; align-items:stretch; gap:7px; flex-shrink:0; }
.ec-help-panel .ec-help-form input#ec-help-input { display:block; width:0; min-width:0; flex:1 1 auto; padding:11px 12px; background:#fff; color:#142437; border:1px solid #d9dee2; border-radius:10px; font-family:inherit; font-size:14px; font-weight:400; line-height:1.4; height:44px; }
.ec-help-panel .ec-help-form button[type="submit"] { display:flex; align-items:center; justify-content:center; width:44px; min-width:44px; height:44px; flex:0 0 44px; padding:0; border-radius:10px; font-size:20px; font-weight:600; }
.ec-help-panel .ec-help-note { flex-shrink:0; }
button.ec-help-launch { font-weight:400; }
/* Keep the original compact launcher and chat controls. */
button.ec-help-launch{font-weight:400!important}
.ec-help-panel .ec-help-messages{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.ec-help-panel .ec-help-suggestions{flex-shrink:0}
.ec-help-panel .ec-help-form{margin:0}


/* ELIA mobile layout: safe-area, keyboard and iOS focus-zoom fixes. */
.ec-help-panel,.ec-help-panel *{box-sizing:border-box}
.ec-help-panel{max-width:100%;min-height:0}
.ec-help-messages{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ec-help-form{flex-shrink:0;min-width:0}
.ec-help-form input,.ec-help-form input#ec-help-input{font-size:16px;min-width:0;max-width:100%}
.ec-help-head,.ec-help-suggestions,.ec-help-note{flex-shrink:0}
@media(max-width:600px){
 .ec-help-panel{position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;width:100%!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;border:0!important;overflow:hidden;display:none;}
 .ec-help-panel.ec-open{display:flex}
 .ec-help-head{padding-top:max(14px,env(safe-area-inset-top));padding-left:max(15px,env(safe-area-inset-left));padding-right:max(15px,env(safe-area-inset-right));}
 .ec-help-messages{flex:1 1 auto;overflow-y:auto;padding:14px 12px}
 .ec-help-suggestions{max-height:22dvh;overflow-y:auto;padding:8px 12px}
 .ec-help-form{padding:10px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));}
 .ec-help-form input,.ec-help-form input#ec-help-input{font-size:16px!important;line-height:1.4;}
 .ec-help-note{padding-bottom:max(10px,env(safe-area-inset-bottom));}
 .ec-help-launch{bottom:max(14px,env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right));}
 .ec-help-msg{overflow-wrap:anywhere;word-break:normal}
}
@media(max-width:600px) and (max-height:520px){.ec-help-head{padding-top:8px;padding-bottom:8px}.ec-help-suggestions{max-height:16dvh}.ec-help-note{font-size:9px;padding-bottom:4px}}

/* Prevent scroll chaining from the ELIA conversation to the page. */
.ec-help-panel{overscroll-behavior:contain}
.ec-help-messages,.ec-help-suggestions,.ec-lead-wizard{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
