#pulsechat-root,
#pulsechat-root *{box-sizing:border-box}
#pulsechat-root{--pc-primary:#83b735;--pc-dark:#5f8e25;--pc-accent:#22c55e;--pc-panel:#fff;--pc-side:20px;--pc-bottom:20px;position:fixed;bottom:var(--pc-bottom);z-index:999999999;font-family:var(--pc-font,inherit);direction:rtl;text-align:right;line-height:1.5;-webkit-font-smoothing:antialiased}
#pulsechat-root button,#pulsechat-root input,#pulsechat-root select,#pulsechat-root textarea{font-family:inherit}
.pulsechat-pos-right{right:var(--pc-side)}.pulsechat-pos-left{left:var(--pc-side)}
.pulsechat-launcher{position:relative;width:64px;height:64px;padding:0;border:2px solid rgba(255,255,255,.94);border-radius:50%;background:linear-gradient(145deg,var(--pc-primary),var(--pc-dark));color:#fff;cursor:pointer;display:grid;place-items:center;box-shadow:0 15px 36px rgba(65,100,29,.34),0 0 0 7px rgba(131,183,53,.13);transition:transform .25s ease,box-shadow .25s ease;isolation:isolate}
.pulsechat-launcher:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 19px 42px rgba(65,100,29,.39),0 0 0 9px rgba(131,183,53,.12)}
.pulsechat-launcher:focus-visible{outline:3px solid rgba(131,183,53,.35);outline-offset:4px}
.pulsechat-launcher-glow{position:absolute;inset:-8px;border:1px solid rgba(131,183,53,.28);border-radius:50%;animation:pc-glow 3.2s ease-in-out infinite;z-index:-1}
.pulsechat-launcher-icon{position:absolute;inset:0;display:grid;place-items:center;transition:opacity .22s ease,transform .25s ease}
.pulsechat-icon-open{animation:pc-buddy-wobble var(--pc-wobble-speed,6s) ease-in-out infinite;transform-origin:50% 58%}
.pulsechat-icon-open svg{width:52px;height:52px;overflow:visible;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pulsechat-icon-open .pc-mascot-shell{fill:rgba(255,255,255,.15);stroke:#fff}
.pulsechat-icon-open .pc-mascot-spark{fill:#fff;stroke:#fff;animation:pc-spark 2.4s ease-in-out infinite}
.pulsechat-icon-close{opacity:0;transform:scale(.55) rotate(-45deg)}
.pulsechat-icon-close svg{width:27px;height:27px;fill:none;stroke:#fff;stroke-width:2.3;stroke-linecap:round}
.pulsechat-launcher.is-open .pulsechat-icon-open{opacity:0;transform:scale(.55) rotate(35deg)}
.pulsechat-launcher.is-open .pulsechat-icon-close{opacity:1;transform:scale(1) rotate(0)}
.pulsechat-launcher.is-open .pulsechat-launcher-glow{display:none}

.pulsechat-launcher-static .pulsechat-icon-open,.pulsechat-launcher-static .pulsechat-launcher-glow,.pulsechat-launcher-static .pc-mascot-spark{animation:none!important}
.pulsechat-motion-off .pulsechat-panel,.pulsechat-motion-off .pulsechat-prompt,.pulsechat-motion-off .pulsechat-message-row,.pulsechat-motion-off .pulsechat-header-orb{animation:none!important;transition:none!important}
#pulsechat-unread{position:absolute;top:-5px;right:-5px;min-width:23px;height:23px;padding:0 6px;border:2px solid #fff;border-radius:999px;background:#ef4056;color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 15px rgba(239,64,86,.34)}
#pulsechat-unread[hidden]{display:none}
.pulsechat-prompt{position:absolute;bottom:76px;right:0;min-width:150px;max-width:270px;min-height:43px;padding:10px 13px 10px 11px;border:1px solid rgba(95,142,37,.14);border-radius:15px;background:#fff;color:#334126;box-shadow:0 13px 35px rgba(42,62,24,.16);font-size:12px;font-weight:750;display:flex;align-items:center;gap:7px;opacity:0;visibility:hidden;transform:translateY(8px) scale(.96);transition:opacity .22s ease,transform .22s ease,visibility .22s;pointer-events:none}
.pulsechat-pos-left .pulsechat-prompt{right:auto;left:0}
.pulsechat-prompt.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.pulsechat-prompt.is-message{border-color:rgba(131,183,53,.34);background:linear-gradient(135deg,#fff,#f5fbe9);box-shadow:0 14px 38px rgba(66,98,29,.22)}
.pulsechat-prompt-mark{width:23px;height:23px;flex:0 0 23px;border-radius:8px;background:rgba(131,183,53,.13);color:var(--pc-dark);display:grid;place-items:center;font-size:11px}
.pulsechat-prompt i{position:absolute;bottom:-7px;right:22px;width:14px;height:14px;border-right:1px solid rgba(95,142,37,.14);border-bottom:1px solid rgba(95,142,37,.14);background:#fff;transform:rotate(45deg)}
.pulsechat-pos-left .pulsechat-prompt i{right:auto;left:22px}
.pulsechat-prompt.is-message i{background:#f8fceF}
.pulsechat-panel{position:absolute;right:0;bottom:80px;width:380px;height:min(650px,calc(100vh - 118px));height:min(650px,calc(100dvh - 118px));border:1px solid rgba(95,142,37,.15);border-radius:25px;background:var(--pc-panel);box-shadow:0 30px 90px rgba(31,50,17,.24),0 8px 25px rgba(31,50,17,.08);overflow:hidden;display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(18px) scale(.96);transform-origin:bottom right;transition:opacity .24s ease,transform .26s cubic-bezier(.2,.8,.2,1),visibility .24s;pointer-events:none}
.pulsechat-pos-left .pulsechat-panel{right:auto;left:0;transform-origin:bottom left}
.pulsechat-panel.is-open{opacity:1;visibility:visible;transform:translateY(0) scale(1);pointer-events:auto}
.pulsechat-header{position:relative;min-height:91px;padding:17px 17px 16px;background:linear-gradient(135deg,var(--pc-primary),var(--pc-dark));color:#fff;display:flex;align-items:center;gap:12px;overflow:hidden}
.pulsechat-header:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 8% 5%,rgba(255,255,255,.25),transparent 33%),linear-gradient(115deg,transparent 58%,rgba(255,255,255,.08));pointer-events:none}
.pulsechat-header-orb{position:absolute;width:110px;height:110px;border:1px solid rgba(255,255,255,.12);border-radius:50%;left:-45px;top:-45px;animation:pc-orb 9s linear infinite}
.pulsechat-agent-avatar{position:relative;z-index:1;width:53px;height:53px;flex:0 0 53px;border:2px solid rgba(255,255,255,.85);border-radius:50%;background:rgba(255,255,255,.15);display:grid;place-items:center;box-shadow:0 8px 22px rgba(53,83,22,.24)}
.pulsechat-agent-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.pulsechat-agent-avatar svg{width:45px;height:45px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pulsechat-agent-avatar .pc-mascot-shell{fill:rgba(255,255,255,.12)}
.pulsechat-agent-avatar b{position:absolute;right:-1px;bottom:2px;width:13px;height:13px;border:2px solid var(--pc-dark);border-radius:50%;background:var(--pc-accent);box-shadow:0 0 0 3px rgba(34,197,94,.14)}
.pulsechat-agent-meta{position:relative;z-index:1;min-width:0;display:grid;gap:3px}
.pulsechat-agent-meta strong{font-size:14px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pulsechat-agent-meta small{font-size:10px;opacity:.92;display:flex;align-items:center;gap:5px}
.pulsechat-agent-meta small i{width:6px;height:6px;border-radius:50%;background:#d9ffb2;box-shadow:0 0 0 4px rgba(217,255,178,.12)}
.pulsechat-close-btn{position:relative;z-index:2;margin-right:auto;width:35px;height:35px;padding:0;border:0;border-radius:11px;background:rgba(255,255,255,.13);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s,transform .2s}
.pulsechat-close-btn:hover{background:rgba(255,255,255,.22);transform:rotate(4deg)}
.pulsechat-close-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.pulsechat-stage{flex:1;min-height:0}
.pulsechat-prechat{padding:18px 18px 15px;overflow:auto;background:linear-gradient(180deg,#fff 0,#fbfdf8 100%)}
.pulsechat-intro{padding:14px;border:1px solid #e9efdf;border-radius:18px;background:linear-gradient(135deg,#f8fceF,#fff);display:flex;align-items:center;gap:12px;margin-bottom:15px}
.pulsechat-intro-icon{width:58px;height:58px;flex:0 0 58px;border-radius:50%;background:rgba(131,183,53,.11);display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(131,183,53,.12)}
.pulsechat-intro-icon svg{width:51px;height:51px;fill:none;stroke:var(--pc-dark);stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.pulsechat-intro-icon .pc-mascot-shell{fill:rgba(131,183,53,.09);stroke:var(--pc-primary)}
.pulsechat-intro>div{min-width:0}
.pulsechat-intro small{font-size:9px;color:var(--pc-dark);font-weight:800}
.pulsechat-intro h3{margin:3px 0 3px;color:#26301e;font-size:14px;line-height:1.55;font-weight:900}
.pulsechat-intro p{margin:0;color:#737c6b;font-size:10px;line-height:1.7}
#pulsechat-prechat-form{display:grid;gap:10px}
#pulsechat-prechat-form label{display:grid;gap:5px;color:#4f5749;font-size:10px;font-weight:750}
#pulsechat-prechat-form input,#pulsechat-prechat-form select{width:100%;height:44px;padding:0 12px;border:1px solid #e2e8db;border-radius:12px;background:#fff;color:#252d20;font-size:12px;outline:0;transition:border-color .2s,box-shadow .2s,transform .2s}
#pulsechat-prechat-form input:focus,#pulsechat-prechat-form select:focus{border-color:var(--pc-primary);box-shadow:0 0 0 3px rgba(131,183,53,.13);transform:translateY(-1px)}
.pulsechat-honeypot{position:absolute!important;left:-9999px!important}
.pulsechat-primary-btn{height:48px;margin-top:2px;padding:0 17px;border:0;border-radius:13px;background:linear-gradient(135deg,var(--pc-primary),var(--pc-dark));color:#fff;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;box-shadow:0 10px 24px rgba(95,142,37,.24);transition:transform .2s,box-shadow .2s}
.pulsechat-primary-btn:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(95,142,37,.3)}
.pulsechat-primary-btn:disabled{opacity:.64;cursor:wait}
.pulsechat-primary-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg)}
.pulsechat-primary-btn.is-loading span:after{content:"…"}
.pulsechat-privacy{padding:0 8px;color:#949b8e;text-align:center;font-size:8px;line-height:1.8}
.pulsechat-chat{display:flex;flex-direction:column;background:#f4f7f0}
.pulsechat-chat[hidden],.pulsechat-prechat[hidden]{display:none!important}
.pulsechat-chat-context{height:39px;padding:0 14px;border-bottom:1px solid #e4e9df;background:#fff;display:flex;align-items:center;justify-content:space-between;color:#687063;font-size:9px}
.pulsechat-chat-context span{max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.pulsechat-chat-context button{padding:5px 8px;border:0;border-radius:8px;background:#fff1f3;color:#d74359;font-size:9px;font-weight:750;cursor:pointer}
.pulsechat-messages{flex:1;min-height:0;padding:14px 12px 16px;overflow:auto;scroll-behavior:smooth;background-color:#f4f7f0;background-image:radial-gradient(circle at 8px 8px,rgba(131,183,53,.065) 1px,transparent 1px);background-size:18px 18px}
.pulsechat-message-row{display:flex;margin:7px 0;animation:pc-message-in .2s ease both}
.pulsechat-message-row.is-user{justify-content:flex-start}.pulsechat-message-row.is-agent{justify-content:flex-end}
.pulsechat-message-bubble{max-width:84%;padding:9px 11px 6px;border-radius:17px;font-size:11px;line-height:1.75;box-shadow:0 3px 12px rgba(31,36,48,.06)}
.pulsechat-message-row.is-user .pulsechat-message-bubble{background:linear-gradient(135deg,var(--pc-primary),var(--pc-dark));color:#fff;border-bottom-right-radius:5px}
.pulsechat-message-row.is-agent .pulsechat-message-bubble{background:#fff;color:#30362d;border-bottom-left-radius:5px}
.pulsechat-message-row.is-pending{opacity:.72}.pulsechat-message-row.is-failed{opacity:1}.pulsechat-message-row.is-failed .pulsechat-message-bubble{box-shadow:0 0 0 1px #ef4056 inset}
.pulsechat-message-text{white-space:pre-wrap;overflow-wrap:anywhere}
.pulsechat-message-time{display:block;margin-top:2px;font-size:7px;opacity:.68;text-align:left}
.pulsechat-message-bubble audio{display:block;width:235px;max-width:100%;height:34px}
.pulsechat-file-card{min-width:190px;color:inherit!important;text-decoration:none!important;display:flex;align-items:center;gap:9px}
.pulsechat-file-card>span:first-child{width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.18);display:grid;place-items:center}
.pulsechat-message-row.is-agent .pulsechat-file-card>span:first-child{background:#eef7e4;color:var(--pc-dark)}
.pulsechat-file-card svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pulsechat-file-card>span:last-child{display:grid;min-width:0}
.pulsechat-file-card strong{max-width:175px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}
.pulsechat-file-card small{font-size:7px;opacity:.7}
.pulsechat-upload-progress{position:relative;height:36px;padding:8px 12px 7px;background:#fff;border-top:1px solid #e7ebdf;display:grid;gap:4px;color:#687063;font-size:8px}
.pulsechat-upload-progress[hidden]{display:none}
.pulsechat-upload-progress>div{height:4px;border-radius:99px;background:#edf1e8;overflow:hidden}
.pulsechat-upload-progress i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--pc-primary),var(--pc-accent));transition:width .15s}
.pulsechat-composer{min-height:61px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e2e7dc;background:#fff;display:flex;align-items:flex-end;gap:5px}
.pulsechat-composer textarea{flex:1;min-width:0;height:40px;max-height:96px;padding:10px 9px;border:1px solid #edf0e9;border-radius:13px;resize:none;outline:0;background:#f8faf6;color:#2d3428;font-size:11px;line-height:1.65;transition:border-color .2s,background .2s}
.pulsechat-composer textarea:focus{border-color:#d6e5c6;background:#fff}
.pulsechat-tool-btn,.pulsechat-send-btn{width:38px;height:38px;flex:0 0 38px;padding:0;border:0;border-radius:12px;display:grid;place-items:center;cursor:pointer;transition:transform .2s,background .2s,color .2s}
.pulsechat-tool-btn{background:#f0f3ec;color:#697263}.pulsechat-tool-btn:hover{color:var(--pc-dark);background:#e8f2dc;transform:translateY(-1px)}
.pulsechat-tool-btn:disabled{opacity:.45;cursor:not-allowed}
.pulsechat-tool-btn.is-recording{background:#ffe8ec;color:#e43e59;animation:pc-record 1s infinite}
.pulsechat-send-btn{background:linear-gradient(135deg,var(--pc-primary),var(--pc-dark));color:#fff;box-shadow:0 7px 16px rgba(95,142,37,.25)}
.pulsechat-send-btn:hover{transform:translateY(-2px)}
.pulsechat-tool-btn svg,.pulsechat-send-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pulsechat-send-btn svg{transform:rotate(180deg)}
.pulsechat-toast{position:absolute;left:14px;right:14px;bottom:74px;padding:10px 12px;border-radius:12px;background:#20271d;color:#fff;text-align:center;font-size:9px;box-shadow:0 10px 30px rgba(0,0,0,.2);z-index:5;animation:pc-toast-in .2s ease}
.pulsechat-toast[hidden]{display:none}
.pulsechat-messages::-webkit-scrollbar,.pulsechat-prechat::-webkit-scrollbar{width:5px}.pulsechat-messages::-webkit-scrollbar-thumb,.pulsechat-prechat::-webkit-scrollbar-thumb{background:#d7decf;border-radius:10px}
@keyframes pc-buddy-wobble{0%,72%,100%{transform:rotate(0) translateY(0)}78%{transform:rotate(-5deg) translateY(-2px)}84%{transform:rotate(4deg) translateY(-1px)}90%{transform:rotate(-2deg)}}
@keyframes pc-glow{0%,100%{transform:scale(.95);opacity:.55}50%{transform:scale(1.13);opacity:.12}}
@keyframes pc-spark{0%,100%{opacity:.45;transform:scale(.8);transform-origin:58px 18px}50%{opacity:1;transform:scale(1.12)}}
@keyframes pc-orb{to{transform:rotate(360deg)}}
@keyframes pc-message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes pc-record{50%{box-shadow:0 0 0 5px rgba(228,62,89,.13)}}
@keyframes pc-toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:520px){#pulsechat-root{bottom:max(var(--pc-bottom),env(safe-area-inset-bottom))}.pulsechat-pos-right{right:max(12px,env(safe-area-inset-right))}.pulsechat-pos-left{left:max(12px,env(safe-area-inset-left))}.pulsechat-launcher{width:54px;height:54px}.pulsechat-icon-open svg{width:45px;height:45px}.pulsechat-prompt{bottom:65px;max-width:225px;font-size:10px;min-height:39px}.pulsechat-panel{position:fixed;left:8px!important;right:8px!important;bottom:72px;width:auto;height:min(620px,calc(100dvh - 87px));border-radius:22px;transform-origin:bottom center}.pulsechat-header{min-height:82px;padding:14px}.pulsechat-agent-avatar{width:48px;height:48px;flex-basis:48px}.pulsechat-agent-avatar svg{width:41px;height:41px}.pulsechat-message-bubble{max-width:88%}.pulsechat-prechat{padding:14px}.pulsechat-intro{padding:11px}.pulsechat-intro-icon{width:51px;height:51px;flex-basis:51px}.pulsechat-intro-icon svg{width:46px;height:46px}}
@media(max-width:360px){.pulsechat-panel{left:5px!important;right:5px!important}.pulsechat-header{padding:12px}.pulsechat-agent-meta strong{font-size:12px}.pulsechat-prechat{padding:12px}.pulsechat-intro p{display:none}.pulsechat-composer{gap:3px;padding-left:5px;padding-right:5px}.pulsechat-tool-btn,.pulsechat-send-btn{width:35px;height:35px;flex-basis:35px}}
@media(prefers-reduced-motion:reduce){#pulsechat-root *{animation:none!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
