#esa-lc{position:fixed;bottom:calc(var(--bottom) + env(safe-area-inset-bottom,0px));z-index:99989;font-family:inherit;color:#30304a;font-size:14px}#esa-lc.right{right:var(--offset)}#esa-lc.left{left:var(--offset)}#esa-lc *{box-sizing:border-box}#esa-lc [hidden]{display:none!important}#esa-lc button{font:inherit;cursor:pointer;border:0}#esa-lc-launch{width:65px;height:65px;border-radius:50%;background:var(--primary);color:white;display:grid;place-items:center;box-shadow:0 6px 25px #302d7044;position:relative}#esa-lc-launch span{position:absolute;width:15px;height:15px;border:3px solid white;background:var(--accent);border-radius:50%;top:0;right:0}#esa-lc-panel{position:absolute;bottom:78px;width:min(380px,calc(100vw - 32px));height:min(590px,calc(100dvh - 125px));background:#fff;border-radius:22px;box-shadow:0 16px 70px #23204435;overflow:hidden;display:flex;flex-direction:column;border:1px solid #e4e5ed}#esa-lc.right #esa-lc-panel{right:0}#esa-lc.left #esa-lc-panel{left:0}#esa-lc header{background:var(--primary);color:#fff;padding:19px;display:flex;justify-content:space-between;align-items:center}#esa-lc header strong,#esa-lc header small{display:block;color:white}#esa-lc header small{font-size:11px;margin-top:6px;opacity:.85}#esa-lc-close{background:transparent;color:white;font-size:25px}#esa-lc .esa-lc-scroll{flex:1;min-height:0;overflow:auto;background:#f4f5f9;padding:14px}#esa-lc .esa-lc-welcome,#esa-lc-start{background:#fff;padding:14px;border-radius:15px;margin-bottom:12px;line-height:1.9}#esa-lc label{display:block;margin:8px 0;font-size:12px}#esa-lc input,#esa-lc textarea{display:block;width:100%;border:1px solid #dfe1ea;border-radius:9px;padding:9px;background:#fff;color:#25243d;font:inherit;resize:vertical}#esa-lc textarea{min-height:44px}#esa-lc form button,#esa-lc-new{background:var(--accent);color:#24243e;padding:10px 15px;border-radius:10px;font-weight:bold}#esa-lc-start button{width:100%;margin:8px 0}#esa-lc-start small{font-size:10px}#esa-lc-send{display:flex;gap:8px;padding:10px;align-items:center}#esa-lc-send textarea{flex:1;min-width:0}#esa-lc footer{text-align:center;padding:8px;font-size:10px;color:#737587;background:#fff}#esa-lc-error{margin:0;padding:0 10px;color:#a52a2a;font-size:12px}#esa-lc .msg{max-width:87%;padding:10px 13px;border-radius:14px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;line-height:1.8}#esa-lc .msg.visitor{background:var(--primary);color:white;margin-right:auto}#esa-lc .msg small{display:block;font-size:10px;opacity:.8}#esa-lc button:focus-visible,#esa-lc a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:767px){#esa-lc{bottom:calc(var(--mobile-bottom) + env(safe-area-inset-bottom,0px))}#esa-lc-launch{width:55px;height:55px}#esa-lc-panel{bottom:65px;height:min(570px,calc(100dvh - 110px));width:min(360px,calc(100vw - 42px))}}
/* v1.1 viewport-aware layout */
#esa-lc[hidden]{display:none!important}#esa-lc{--launch-size:68px;--panel-gap:12px;--safe-top:12px;--safe-bottom:env(safe-area-inset-bottom,0px);bottom:calc(clamp(8px,var(--bottom),max(8px,calc(100vh - 220px))) + var(--safe-bottom));max-width:100vw}body.admin-bar #esa-lc{--safe-top:44px}#esa-lc-launch{width:var(--launch-size);height:var(--launch-size);border:2px solid white;background:linear-gradient(145deg,var(--primary),#24224f);transition:transform .25s,box-shadow .25s}#esa-lc-launch:hover{transform:translateY(-3px)}#esa-lc-launch svg{width:46px;height:46px}#esa-lc-panel{bottom:calc(var(--launch-size) + var(--panel-gap));width:min(var(--panel-width),calc(100vw - 2 * var(--offset) - 8px));height:min(var(--panel-height),var(--available-height,420px));max-height:var(--available-height,420px);min-height:0;animation:esaChatIn .23s ease-out}#esa-lc header{padding:12px 14px;gap:10px;flex-shrink:0}#esa-lc header .esa-lc-headtext{flex:1;min-width:0}#esa-lc-avatar{border:2px solid var(--accent);border-radius:50%;object-fit:cover;flex-shrink:0}#esa-lc header strong{font-size:14px;line-height:1.55}#esa-lc header small{margin-top:3px}#esa-lc .esa-lc-scroll{padding:10px;overscroll-behavior:contain}#esa-lc .esa-lc-welcome,#esa-lc-start{padding:10px;margin-bottom:8px}#esa-lc label{margin:5px 0;font-size:12px}#esa-lc input,#esa-lc textarea{box-sizing:border-box;font-size:var(--field-font);padding:5px 9px;margin:3px 0 0;min-height:0;line-height:1.5}#esa-lc input{height:var(--field-height)}#esa-lc textarea{height:var(--message-height);resize:none}#esa-lc-send{flex-shrink:0;padding:7px}#esa-lc-send textarea{height:var(--field-height)}#esa-lc footer{flex-shrink:0;padding:6px;line-height:1.5}#esa-lc-error:empty{display:none}#esa-lc-error{max-height:50px;overflow:auto}#esa-lc-ai{margin:3px 10px 5px;padding:7px;border-radius:10px;background:#eef0fa;color:var(--primary);font-size:12px;flex-shrink:0}#esa-lc .msg.ai{border-right:3px solid var(--accent);background:#edf1fa}#esa-lc-typing{font-size:11px;color:#666;display:flex;align-items:center;gap:4px;padding:8px}#esa-lc-typing span{width:6px;height:6px;background:var(--primary);border-radius:50%;animation:esaTyping 1.2s infinite}#esa-lc-typing span:nth-child(2){animation-delay:.15s}#esa-lc-typing span:nth-child(3){animation-delay:.3s}@keyframes esaTyping{50%{transform:translateY(-4px);opacity:.5}}@keyframes esaChatIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:767px){#esa-lc{--launch-size:58px;bottom:calc(clamp(8px,var(--mobile-bottom),max(8px,calc(100vh - 220px))) + var(--safe-bottom))}body.admin-bar #esa-lc{--safe-top:58px}#esa-lc-panel{height:min(var(--mobile-height),var(--available-height,350px));width:min(var(--panel-width),calc(100vw - 2 * var(--offset) - 8px))}#esa-lc-launch svg{width:39px;height:39px}}@media(prefers-reduced-motion:reduce){#esa-lc *,#esa-lc{animation:none!important;transition:none!important}}
#esa-lc.left{left:clamp(8px,var(--offset),calc(100vw - var(--launch-size) - 8px))}#esa-lc.right{right:clamp(8px,var(--offset),calc(100vw - var(--launch-size) - 8px))}#esa-lc-panel{width:min(var(--panel-width),max(120px,calc(100vw - clamp(8px,var(--offset),calc(100vw - var(--launch-size) - 8px)) - 8px)))}
