#ejchat-widget{position:fixed;right:22px;bottom:22px;z-index:99990;font-family:Arial,sans-serif;color:#142e3c;font-size:14px;line-height:1.5}#ejchat-widget *{box-sizing:border-box}#ejchat-widget [hidden]{display:none!important}
#ejchat-launch{border:1px solid #c9ad72;background:#163c35;color:#fff;padding:16px 24px;border-radius:40px;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 5px 22px #071c3025}
#ejchat-panel{position:absolute;right:0;bottom:70px;width:360px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 110px);overflow:auto;background:#fff;border:1px solid #dbe3df;border-radius:20px;box-shadow:0 15px 55px #081c3040}
#ejchat-panel header{display:flex;justify-content:space-between;gap:10px;background:linear-gradient(130deg,#163e34,#0b2435);color:#fff;padding:22px;border-top:4px solid #dfc58b}#ejchat-panel header strong{font-size:20px}#ejchat-status{display:block;font-size:12px;color:#d4dfd8;margin-top:5px}#ejchat-close{background:none;border:0;color:#fff;font-size:28px;cursor:pointer;align-self:flex-start}
#ejchat-log{height:220px;overflow:auto;padding:16px;background:#f6f8f6;overscroll-behavior:contain}.ejchat-welcome{color:#5a7067;font-size:14px;line-height:1.7}
.ejchat-bubble{border-radius:12px;background:#fff;border:1px solid #e0e6e2;margin:0 22px 12px 0;padding:10px 12px;white-space:pre-wrap;overflow-wrap:anywhere}.ejchat-bubble.customer{background:#e9f0eb;margin:0 0 12px 22px}.ejchat-bubble small{display:block;color:#687a72;font-size:10px;margin-bottom:5px}
#ejchat-form{padding:16px}#ejchat-identity{display:flex;gap:8px;margin-bottom:10px}#ejchat-identity label{width:50%;font-size:11px;font-weight:700}#ejchat-widget input,#ejchat-widget textarea,#ejchat-admin textarea{width:100%;border:1px solid #cbd8cf;border-radius:8px;padding:10px;font:14px Arial;color:#142e3c;background:#fff;box-shadow:none}#ejchat-widget textarea{resize:vertical;min-height:60px;max-height:140px}.ejchat-send{display:flex;align-items:center;gap:12px;margin-top:8px}.ejchat-send small{font-size:10px;color:#6a7a74;flex:1}
#ejchat-form button{background:#173f35;color:#fff;border:0;border-radius:8px;padding:11px 17px;font-weight:700;cursor:pointer}#ejchat-form button:disabled{opacity:.5}#ejchat-error{font-size:12px;color:#9b3b2b;margin-top:6px}
#ejchat-panel footer{padding:13px 16px 16px;border-top:1px solid #e5e9e5;font-size:11px;color:#6c7e74}#ejchat-panel footer div{display:flex;gap:8px;margin:8px 0}#ejchat-panel footer a{flex:1;text-align:center;border:1px solid #cbd8cf;border-radius:8px;padding:9px;color:#173f35;text-decoration:none;font-size:12px;font-weight:bold}#ejchat-panel footer small{font-size:10px}
#ejchat-widget :focus-visible{outline:3px solid #c6a867;outline-offset:2px}.ejchat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#ejchat-admin{display:grid;grid-template-columns:300px 1fr;max-width:1100px;margin-top:20px;background:white;border:1px solid #d2dcd5;border-radius:12px;overflow:hidden}#ejchat-threads{background:#edf2ee;padding:12px;max-height:650px;overflow:auto}#ejchat-threads button{display:block;width:100%;padding:15px;text-align:left;border:0;border-bottom:1px solid #d0ddd4;background:transparent;cursor:pointer;overflow-wrap:anywhere}#ejchat-threads .selected{background:#173f35;color:white}#ejchat-admin section{min-width:0}#ejchat-person{padding:15px;font-size:16px;overflow-wrap:anywhere}#ejchat-admin #ejchat-log{height:380px}
@media(max-width:600px){#ejchat-widget{right:14px;bottom:14px}#ejchat-panel{bottom:65px}#ejchat-admin{grid-template-columns:1fr}#ejchat-threads{max-height:180px}#ejchat-log{height:180px}#ejchat-panel header{padding:16px}}

/* Refined customer chat. Keep the existing back-to-top control in its own corner. */
body .ej-back-top{right:auto!important;left:22px!important;bottom:24px!important}
#ejchat-widget{font-family:inherit;bottom:calc(22px + env(safe-area-inset-bottom));z-index:1001}
#ejchat-launch{display:flex;align-items:center;gap:12px;padding:12px 20px 12px 12px;background:#143d35;border-color:#bfa775;box-shadow:0 7px 24px #0b273329;transition:transform .2s,box-shadow .2s;min-height:58px}
.ejchat-launch-icon{width:34px;height:34px;border-radius:50%;background:#dfc58b;display:grid;place-items:center;color:#15362f}.ejchat-launch-icon svg{width:20px;height:20px}
.ejchat-launch-label{text-align:left;line-height:1.25}.ejchat-launch-label strong{display:block;font-size:14px}.ejchat-launch-label small{display:block;font-size:10px;font-weight:400;color:#d4e0da;margin-top:3px}
#ejchat-launch:hover{transform:translateY(-3px);box-shadow:0 10px 28px #0b273340}
#ejchat-panel{width:382px;bottom:74px;border-radius:22px;border:1px solid #dce4df;box-shadow:0 20px 65px #071e3333;max-height:calc(100dvh - 120px);display:flex;flex-direction:column;overflow:auto;animation:ejchat-enter .22s ease-out;background:#fff}
#ejchat-panel header{padding:22px 20px;border-top:0;flex-shrink:0;position:relative;background:linear-gradient(125deg,#194d40,#102b3e)}
#ejchat-panel header strong{font-size:19px;letter-spacing:-.5px}#ejchat-panel header strong:before{content:'EJ';display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid #d8c18c;border-radius:10px;font-size:12px;letter-spacing:0;color:#e7d2a2;margin-right:10px}
#ejchat-status{font-size:11px;letter-spacing:.1px;margin:9px 0 0;color:#d5e1da}
#ejchat-status:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#dfc58b;margin-right:7px}
#ejchat-status[data-online="true"]:before{background:#83d5af}
#ejchat-close{height:36px;width:36px;border-radius:50%;background:#ffffff12;font-size:25px;line-height:1}
#ejchat-widget #ejchat-log{height:220px;min-height:130px;flex:1 1 220px;padding:20px;background:linear-gradient(#f5f8f5,#fbfcfa);scrollbar-width:thin}
#ejchat-widget .ejchat-welcome{margin:0;color:#64766e;font-size:13px;line-height:1.65}
.ejchat-welcome strong{display:block;font-size:22px;letter-spacing:-.6px;line-height:1.25;color:#153b32;margin-bottom:8px}
.ejchat-topics{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}
#ejchat-widget .ejchat-topics button{padding:9px 12px;border:1px solid #ccdcd2;background:#fff;border-radius:20px;color:#254f41;font-size:12px;cursor:pointer;min-height:36px}
#ejchat-widget .ejchat-topics button:hover{border-color:#688f79;background:#eaf2ec}
#ejchat-widget .ejchat-bubble{font-size:13px;border-radius:13px 13px 13px 3px;box-shadow:0 2px 5px #12302004}
#ejchat-widget .ejchat-bubble.customer{background:#173e35;color:white;border-color:#173e35;border-radius:13px 13px 3px 13px}
#ejchat-widget .ejchat-bubble.customer small{color:#c5d6ca}
#ejchat-widget #ejchat-form{padding:16px 20px 12px;background:white;flex-shrink:0}
#ejchat-identity{gap:10px;margin-bottom:12px}
#ejchat-widget #ejchat-identity label{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#5d7367}
#ejchat-widget input{margin-top:5px;font-size:14px;padding:10px 11px;height:40px;border-color:#d7e2d9;background:#fafcf9}
#ejchat-widget textarea{border-color:#ccdcd1;border-radius:12px;font-family:inherit;padding:12px;font-size:14px;min-height:72px;resize:none}
#ejchat-widget input:focus,#ejchat-widget textarea:focus{border-color:#719f84;background:#fff}
#ejchat-widget .ejchat-send{gap:16px}
#ejchat-widget .ejchat-send button{background:#dfc58b;color:#122e36;border-radius:9px;min-height:42px;padding:11px 20px}
#ejchat-widget .ejchat-send small{line-height:1.45}
#ejchat-widget #ejchat-error:empty{display:none}
#ejchat-panel footer{padding:12px 20px 15px;background:#f8faf7;flex-shrink:0}
#ejchat-panel footer>span{font-size:10px;text-transform:uppercase;letter-spacing:.8px}
#ejchat-panel footer a{background:white;border-color:#dce5dc;border-radius:9px;min-height:40px;display:flex;align-items:center;justify-content:center;gap:7px}
#ejchat-panel footer a:hover{border-color:#8ba793;background:#edf4ed}
@keyframes ejchat-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){body .ej-back-top{left:14px!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;width:44px;height:44px}#ejchat-widget{right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}#ejchat-launch{min-height:52px;padding:9px 16px 9px 10px}#ejchat-panel{position:fixed;left:12px;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:calc(100dvh - 100px - env(safe-area-inset-bottom))}#ejchat-widget #ejchat-log{flex-basis:180px;min-height:100px;padding:16px}#ejchat-panel header{padding:16px}#ejchat-widget #ejchat-form{padding:12px 16px}#ejchat-widget input,#ejchat-widget textarea{font-size:16px}#ejchat-panel footer{padding:10px 16px}.ejchat-welcome strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){#ejchat-panel{animation:none}#ejchat-launch{transition:none}#ejchat-launch:hover{transform:none}}

/* App-inspired social contact buttons. */
#ejchat-panel footer a.ejchat-social{position:relative;display:flex;justify-content:flex-start;align-items:center;gap:8px;padding:12px 10px;border:1px solid #ffffff35;border-radius:13px;min-height:62px;color:#fff;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease;box-shadow:inset 0 1px 0 #ffffff35,0 4px 9px #23345316;text-align:left;text-decoration:none}
#ejchat-panel footer a.messenger{background:linear-gradient(135deg,#097bfa 0%,#515bea 55%,#9b3bd9 100%)}
#ejchat-panel footer a.instagram{background:linear-gradient(130deg,#7044b7 0%,#b52a83 48%,#d94553 80%,#df7750 100%)}
#ejchat-panel footer .ejchat-social-icon{width:29px;height:29px;flex:0 0 29px;filter:drop-shadow(0 1px 1px #0002)}
#ejchat-panel footer .ejchat-social-text{display:block;min-width:0;color:#fff;line-height:1.2}
#ejchat-panel footer .ejchat-social-text b{font-size:12px;letter-spacing:-.1px;color:#fff}
#ejchat-panel footer .ejchat-social-text small{display:block;margin-top:4px;color:#fff;font-size:10px;font-weight:400;opacity:.93}
#ejchat-panel footer .ejchat-social-arrow{margin-left:auto;font-size:13px;opacity:.85;align-self:flex-start}
#ejchat-panel footer a.ejchat-social:hover{transform:translateY(-2px);border-color:#ffffff80;box-shadow:inset 0 1px 0 #ffffff45,0 7px 16px #23345330;color:white}
#ejchat-panel footer a.ejchat-social:focus-visible{outline:3px solid #173e35;outline-offset:3px}
@media(max-width:350px){#ejchat-panel footer a.ejchat-social{gap:5px;padding:10px 7px}.ejchat-social-arrow{display:none}#ejchat-panel footer .ejchat-social-icon{width:24px;height:24px;flex-basis:24px}}
@media(prefers-reduced-motion:reduce){#ejchat-panel footer a.ejchat-social{transition:none}#ejchat-panel footer a.ejchat-social:hover{transform:none}}

/* Clear water glass shell. Etched copies are inert; the real UI remains interactive. */
#ejchat-widget #ejchat-panel,#ejchat-widget.ejchat-engaged #ejchat-panel{background:rgba(249,252,255,.32);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);border-color:rgba(255,255,255,.58);box-shadow:inset 0 1px 0 #ffffffa0,inset 0 -1px 0 #ffffff40,0 15px 45px #102b3b20;isolation:isolate}
#ejchat-panel>header,#ejchat-panel>#ejchat-log,#ejchat-panel>#ejchat-form,#ejchat-panel>footer{position:relative;z-index:1}
#ejchat-panel>[data-glass-copy]{z-index:0!important;pointer-events:none!important}
#ejchat-panel>[data-glass-copy] strong:before{color:rgba(35,45,52,.7);border-color:#ffffff70}
#ejchat-panel>[data-glass-copy] input::placeholder,#ejchat-panel>[data-glass-copy] textarea::placeholder{color:rgba(35,45,52,.60)}
#ejchat-widget #ejchat-launch{backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
@media(prefers-contrast:more){#ejchat-widget #ejchat-panel{background:#fff}}

/* Two clear routes: anonymous AI guidance and a named human conversation. */
#ejchat-modes{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:13px 14px;background:#f4f7f3;flex-shrink:0}
#ejchat-modes button{display:flex;align-items:center;gap:8px;min-width:0;text-align:left;background:#fff;border:1px solid #d5e0d7;border-radius:12px;padding:11px 9px;color:#244b40;cursor:pointer;font-family:inherit}
#ejchat-modes b{display:block;font-size:11px;line-height:1.35;letter-spacing:-.1px}
#ejchat-modes small{display:block;font-size:9px;line-height:1.4;color:#6a7b71;margin-top:3px}
#ejchat-modes .ejchat-mode-icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:30px;font-size:24px;color:#b3934d}
#ejchat-modes button[aria-pressed=true]{background:linear-gradient(130deg,#193f36,#102e3d);border-color:#cbb47c;box-shadow:inset 0 1px 0 #ffffff20;color:#fff}
#ejchat-modes button[aria-pressed=true] small{color:#d8e3dc}
#ejchat-modes button:hover{border-color:#b39a61}
#ejchat-modes button:disabled{cursor:wait;opacity:.7}
#ejchat-widget #ejchat-ai-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;line-height:1.4;color:#65776d;margin-bottom:10px}
#ejchat-widget #ejchat-ai-tools button{padding:5px 7px;white-space:nowrap;background:transparent;border:1px solid #d4dfd5;color:#254c3e;border-radius:6px;font-size:10px}
#ejchat-widget .ejchat-bubble.ai{border-color:#cbb780;background:linear-gradient(135deg,#fffdf6,#f3f7ef)}
#ejchat-widget .ejchat-bubble.ai small{color:#597651;font-weight:700}
#ejchat-widget .ejchat-next{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
#ejchat-widget .ejchat-next a{padding:7px 10px;border-radius:8px;border:1px solid #cbb780;font-size:10px;color:#284e41;text-decoration:none;background:#fffdf6}
#ejchat-widget #ejchat-log[aria-busy=true]:after{content:'Working on your reply…';display:block;font-size:11px;color:#586d61;padding-top:12px}
@media(max-width:600px){#ejchat-modes{padding:10px 12px;gap:6px}#ejchat-modes button{padding:9px 7px;gap:5px}#ejchat-modes b{font-size:10px}#ejchat-widget #ejchat-log{min-height:115px}}
