#luxdesk-widget-root{--ld-head:#075f52;--ld-head-text:#fff;--ld-button:#087f6a;--ld-button-text:#fff;--ld-visitor:#d9f3ea;--ld-agent:#fff;--ld-chat:#f8faf9;--ld-launcher:#075f52;--ld-online:#35c99a;position:fixed;right:24px;bottom:24px;z-index:999999;font:15px/1.45 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17231f}
#luxdesk-widget-root *{box-sizing:border-box}
#luxdesk-widget-root button,#luxdesk-widget-root input,#luxdesk-widget-root textarea{font:inherit}
.ld-launcher{display:grid;place-items:center;width:64px;height:64px;border:3px solid rgba(255,255,255,.95);border-radius:50%;background:var(--ld-launcher);color:#fff;box-shadow:0 8px 26px #0d2c2440;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}
.ld-launcher:hover{transform:translateY(-3px) scale(1.035);box-shadow:0 12px 30px #0d2c2450}
.ld-launcher:focus-visible,.ld-close:focus-visible{outline:3px solid var(--ld-online);outline-offset:3px}
.ld-launcher svg{width:31px;height:31px}
.ld-panel{position:absolute;right:0;bottom:78px;width:390px;height:min(620px,calc(100dvh - 112px));min-height:420px;background:#fff;border:1px solid #dce6e2;border-radius:22px;overflow:hidden;box-shadow:0 18px 54px #102b2440;display:flex;flex-direction:column;opacity:0;transform:translateY(14px) scale(.97);transform-origin:bottom right;transition:opacity .2s ease,transform .22s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.ld-panel.is-open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.ld-panel[hidden],.ld-start[hidden],.ld-send[hidden]{display:none}
.ld-head{background:var(--ld-head);color:var(--ld-head-text);padding:18px 18px 16px;display:flex;align-items:flex-start;gap:11px;min-height:112px}
.ld-brandmark{width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#fff;color:var(--ld-head);display:grid;place-items:center;font-size:21px;font-weight:700}
.ld-brand{display:flex;flex-direction:column;gap:2px;min-width:0}
.ld-brand strong{font-size:18px}
.ld-brand small{opacity:.9}
.ld-online{font-size:12px;font-weight:600;margin-top:8px}
.ld-online:first-letter{color:var(--ld-online)}
.ld-close{margin-left:auto;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.13);color:inherit;cursor:pointer;transition:background .15s ease,transform .15s ease}
.ld-close:hover{background:rgba(255,255,255,.25);transform:rotate(90deg)}
.ld-close svg{width:18px;height:18px}
.ld-content{padding:16px;display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;background:var(--ld-chat)}
.ld-intro{padding:12px 14px;border:1px solid #e0e9e5;border-radius:14px;background:#fff;flex:0 0 auto}
.ld-messages{display:flex;flex-direction:column;gap:9px;overflow:auto;flex:1;min-height:0}
.ld-msg{margin:0;padding:11px 13px;max-width:88%;border-radius:14px;overflow-wrap:anywhere;white-space:pre-wrap}
.ld-msg.visitor{align-self:flex-end;background:var(--ld-visitor);border:1px solid #bce8d8;border-bottom-right-radius:5px}
.ld-msg.agent{align-self:flex-start;background:var(--ld-agent);border:1px solid #e0e9e5;border-bottom-left-radius:5px}
.ld-start,.ld-send{display:flex;flex-direction:column;gap:9px;flex:0 0 auto}
.ld-start label{font-size:12px;font-weight:600;display:grid;gap:4px}
.ld-start input,.ld-start textarea,.ld-send input{width:100%;min-width:0;border:1px solid #d5e0db;border-radius:10px;padding:10px;background:#fff;color:#17231f}
.ld-start input,.ld-start textarea{font-size:14px}
.ld-start textarea{min-height:62px;resize:vertical}
.ld-start button,.ld-send button{border:0;border-radius:999px;padding:12px 18px;background:var(--ld-button);color:var(--ld-button-text);font-weight:700;cursor:pointer}
.ld-start button:disabled,.ld-send button:disabled{opacity:.65;cursor:wait}
.ld-send{flex-direction:row;align-items:center}
.ld-send input{flex:1;border-radius:999px}
.ld-send button{flex:0 0 auto}
.ld-error{color:#b42318;font-size:12px;margin:0;min-height:0}
.ld-panel footer{text-align:center;border-top:1px solid #edf1ef;padding:10px;font-size:12px;color:#718078;background:#fff;flex:0 0 auto}
@media(max-width:600px){#luxdesk-widget-root{right:12px;bottom:12px}.ld-panel{position:fixed;right:10px;bottom:86px;width:calc(100vw - 20px);max-width:430px;height:min(680px,calc(100dvh - 108px));min-height:min(420px,calc(100dvh - 108px));border-radius:18px}.ld-panel.is-open{transform:translateY(0) scale(1)}.ld-launcher{width:58px;height:58px}}
@media(max-width:360px){.ld-head{padding:14px;min-height:98px}.ld-content{padding:12px;gap:9px}.ld-panel footer{padding:8px 5px;font-size:11px}.ld-brand strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.ld-panel,.ld-launcher,.ld-close{transition:none}}

/* v0.2.2 icon visibility and deterministic panel transition */
#luxdesk-widget-root .ld-launcher{color:#fff!important;background:var(--ld-launcher)!important;border:3px solid #fff!important}
#luxdesk-widget-root .ld-launcher svg{display:block;width:34px;height:34px;stroke:#fff;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}
#luxdesk-widget-root .ld-close{color:#fff!important;background:rgba(0,0,0,.24)!important;flex:0 0 36px}
#luxdesk-widget-root .ld-close svg{display:block;width:20px;height:20px;stroke:#fff}
#luxdesk-widget-root .ld-panel{visibility:visible}

/* v0.2.3: isolate launcher and close SVGs from theme/global button styles */
#luxdesk-widget-root button.ld-launcher{appearance:none!important;-webkit-appearance:none!important;padding:0!important;line-height:0!important;min-width:64px!important;min-height:64px!important;overflow:visible!important}
#luxdesk-widget-root button.ld-launcher svg{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;display:block!important;visibility:visible!important;opacity:1!important;fill:none!important;stroke:#fff!important;stroke-width:2.4!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#luxdesk-widget-root button.ld-close{appearance:none!important;-webkit-appearance:none!important;padding:0!important;min-width:36px!important;min-height:36px!important;line-height:0!important;opacity:1!important}
#luxdesk-widget-root button.ld-close svg{width:22px!important;height:22px!important;display:block!important;visibility:visible!important;opacity:1!important;fill:none!important;stroke:#fff!important;stroke-width:2.6!important;stroke-linecap:round!important;stroke-linejoin:round!important}

/* v0.2.4 icon isolation against aggressive theme button/SVG rules */
#luxdesk-widget-root button.ld-launcher{background:var(--ld-launcher)!important;color:#fff!important;border:3px solid #fff!important}
#luxdesk-widget-root button.ld-launcher svg,#luxdesk-widget-root button.ld-close svg{overflow:visible!important;display:block!important;visibility:visible!important;opacity:1!important}
#luxdesk-widget-root button.ld-launcher svg path,#luxdesk-widget-root button.ld-close svg path{stroke:#fff!important;fill:none!important;stroke-width:2.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#luxdesk-widget-root button.ld-close{background:#064e45!important;color:#fff!important;border:1px solid rgba(255,255,255,.65)!important;box-shadow:0 1px 5px rgba(0,0,0,.22)!important}
/* v0.3.1 closed-chat rating */
.ld-rating-form{margin:12px 0;padding:14px;border:1px solid #d6e7df;border-radius:14px;background:#f6fbf8;display:grid;gap:10px;color:#17352b}
.ld-rating-stars{display:flex;gap:8px}.ld-rating-stars button{border:0;background:transparent;color:#aab8b1;font-size:28px;cursor:pointer;padding:2px}.ld-rating-stars button.selected{color:#e0a000}.ld-rating-form textarea{width:100%;min-height:64px;border:1px solid #d3dfd9;border-radius:9px;padding:9px;resize:vertical}.ld-rating-form button[type=submit]{background:var(--ld-button,#087f6a);color:var(--ld-button-text,#fff);border:0;border-radius:9px;padding:10px 14px;cursor:pointer;font-weight:650}.ld-rating-form .ld-error{color:#b42318;font-size:12px}
