:root{
  --lc-bg:#fff;
  --lc-ink:#111;
  --lc-muted:#6d6d72;
  --lc-line:#e7e7e9;
  --lc-soft:#f6f6f7;
  --lc-shadow:0 18px 50px rgba(0,0,0,.18);
  --lc-radius:18px;
}
.lc-widget{position:fixed;right:16px;bottom:16px;z-index:9999;font-family:inherit;color:var(--lc-ink)}
@supports(padding:max(0px)){.lc-widget{bottom:max(16px,env(safe-area-inset-bottom));right:max(16px,env(safe-area-inset-right))}}
.lc-btn{display:flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:11px 14px;background:var(--lc-ink);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.16);cursor:pointer}
.lc-dot{width:9px;height:9px;border-radius:50%;background:#777}.lc-widget.is-online .lc-dot{background:#16c784;box-shadow:0 0 0 3px rgba(22,199,132,.13)}
.lc-title{font-weight:850}.lc-status{font-size:12px;opacity:.78}
.lc-panel{width:350px;max-width:calc(100vw - 24px);margin-top:9px;background:var(--lc-bg);border:1px solid var(--lc-line);border-radius:var(--lc-radius);box-shadow:var(--lc-shadow);overflow:hidden}
.lc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;background:var(--lc-ink);color:#fff}.lc-head-title{font-size:14px;font-weight:850}.lc-head-sub{margin-top:2px;font-size:10px;opacity:.72;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lc-close{border:0;background:transparent;color:#fff;font-size:22px;line-height:1;padding:5px 8px;border-radius:9px;cursor:pointer}.lc-close:hover{background:rgba(255,255,255,.08)}
.lc-body{height:330px;overflow:auto;padding:10px;background:var(--lc-soft)}
.lc-msg{display:flex;margin:8px 0}.lc-left{justify-content:flex-start}.lc-right{justify-content:flex-end}.lc-system{justify-content:center;opacity:.78}
.lc-bubble{max-width:82%;padding:9px 11px 6px;border:1px solid #e3e3e5;border-radius:14px;background:#fff;color:var(--lc-ink);word-break:break-word}.lc-right .lc-bubble{background:var(--lc-ink);border-color:var(--lc-ink);color:#fff}.lc-system .lc-bubble{background:#efeff0;border-color:#e4e4e5}
.lc-msg-text{white-space:pre-wrap}.lc-msg-time{display:block;margin-top:4px;text-align:right;font-size:9px;line-height:1;opacity:.48;white-space:nowrap}.lc-msg.is-pending .lc-bubble{opacity:.58}.lc-msg.is-error .lc-bubble{border-color:#e57373}.lc-msg.is-error .lc-msg-time{color:#c62828;opacity:1}
.lc-typing{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;padding:7px 9px;margin:7px 0 0;border-radius:11px;background:#ececee;color:#333;font-size:11px}.lc-typing[hidden]{display:none}.lc-typing .dots{display:inline-flex;gap:4px}.lc-typing .dots i{width:5px;height:5px;border-radius:50%;background:#777;display:inline-block;animation:lcDot 1s infinite ease-in-out}.lc-typing .dots i:nth-child(2){animation-delay:.15s}.lc-typing .dots i:nth-child(3){animation-delay:.3s}@keyframes lcDot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-3px);opacity:1}}
.lc-start{display:flex;flex-direction:column;gap:8px;padding:10px;border-top:1px solid var(--lc-line);background:#fff}.lc-start[hidden]{display:none}.lc-start input,.lc-send input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #ddd;border-radius:11px;outline:none;background:#fff;color:var(--lc-ink)}.lc-start input:focus,.lc-send input:focus{border-color:#b6b6bb}
.lc-start-btn{border:0;border-radius:11px;padding:11px 12px;background:var(--lc-ink);color:#fff;font-weight:850;cursor:pointer}.lc-start-btn:disabled{opacity:.42;cursor:default}
.lc-send{position:relative;display:flex;align-items:center;gap:7px;padding:9px;border-top:1px solid var(--lc-line);background:#fff}.lc-send input{flex:1;min-width:0}.lc-send button{height:41px;border:0;border-radius:11px;background:var(--lc-ink);color:#fff;cursor:pointer}.lc-send button:disabled{opacity:.4;cursor:default}.lc-send #lcSendBtn{width:42px;min-width:42px;font-size:16px}.lc-send .lc-emo-btn{width:42px;min-width:42px;background:#fff;color:var(--lc-ink);border:1px solid #ddd;font-size:18px}
.lc-emo-pop{position:absolute;right:9px;bottom:56px;width:280px;max-width:calc(100% - 18px);padding:9px;border:1px solid var(--lc-line);border-radius:14px;background:#fff;box-shadow:0 14px 38px rgba(0,0,0,.17);z-index:5}.lc-emo-pop[hidden]{display:none}.lc-emo-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.lc-emo-item{height:33px;border:0;border-radius:9px;background:#fff;font-size:18px;cursor:pointer}.lc-emo-item:hover{background:#f4f4f5}
@media(max-width:600px){.lc-widget{right:10px;bottom:10px}.lc-btn{padding:11px 13px}.lc-status{display:none}.lc-panel{width:calc(100vw - 20px);max-width:390px;border-radius:20px}.lc-body{height:58vh}.lc-start input,.lc-send input{font-size:16px}.lc-emo-pop{left:9px;right:9px;width:auto}}

/* configurable widget */
.lc-widget.lc-pos-left{right:auto;left:16px}
.lc-welcome{margin:2px 0 10px;padding:9px 10px;border:1px solid #e5e5e7;border-radius:12px;background:#fff;color:#555;font-size:11px;line-height:1.45}.lc-welcome:empty{display:none}
@supports(padding:max(0px)){.lc-widget.lc-pos-left{right:auto;left:max(16px,env(safe-area-inset-left))}}
@media(max-width:600px){.lc-widget.lc-pos-left{right:auto;left:10px}}

/* LiveChat 1.3 — product cards & images */
.lc-send .lc-image-btn{width:41px;min-width:41px;padding:0;background:#fff;color:var(--lc-ink);border:1px solid #ddd;font-size:22px;font-weight:400;line-height:1}.lc-send .lc-image-btn:hover{background:#f6f6f7}.lc-send .lc-image-btn[hidden]{display:none}
.lc-upload-status{padding:7px 10px;border-top:1px solid var(--lc-line);background:#edf8f3;color:#087c58;font-size:10px;font-weight:750}.lc-upload-status[hidden]{display:none}.lc-upload-status.is-error{background:#fff0f0;color:#b42323}
.lc-msg.has-attachment .lc-bubble{width:min(300px,88%);max-width:300px;padding:0;overflow:hidden;background:#fff!important;color:var(--lc-ink)!important;border-color:#dedee1!important}.lc-msg.has-attachment .lc-msg-time{padding:0 9px 7px;margin-top:4px;color:#555}
.lc-product-card{display:grid;grid-template-columns:92px 1fr;min-height:92px;color:inherit;text-decoration:none;background:#fff}.lc-product-img{width:92px;height:92px;object-fit:contain;background:#fff;border-right:1px solid #eee}.lc-product-noimg{display:grid;place-items:center;font-size:26px}.lc-product-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:9px 9px 6px}.lc-product-info strong{font-size:11px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.lc-product-price{display:flex;align-items:baseline;gap:6px;margin-top:6px;font-size:14px;font-weight:900}.lc-product-old{text-decoration:line-through;color:#999;font-size:9px;font-weight:600}.lc-product-stock{margin-top:3px;font-size:9px;color:#087c58;font-weight:800}.lc-product-stock.is-out,.lc-product-stock.is-discontinued{color:#b42323}.lc-product-stock.is-awaited{color:#9a6700}.lc-product-open{margin-top:auto;padding-top:5px;color:#555;font-size:9px;font-weight:800}
.lc-image-attachment{display:block!important;width:100%!important;height:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:#ececee!important;overflow:hidden;cursor:zoom-in}.lc-image-attachment img{display:block;width:100%;max-height:330px;object-fit:contain;background:#ececee}
.lc-panel.is-dragging:after{content:'Відпустіть фото';position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.9);z-index:20;font-weight:900;pointer-events:none}.lc-panel{position:relative}
.lc-image-viewer{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.88);backdrop-filter:blur(5px)}.lc-image-viewer[hidden]{display:none}.lc-image-viewer img{max-width:96vw;max-height:90vh;object-fit:contain;border-radius:9px}.lc-image-viewer-close{position:fixed;right:14px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:26px;cursor:pointer}.lc-viewer-open{overflow:hidden}
@media(max-width:600px){.lc-msg.has-attachment .lc-bubble{width:min(300px,94%);max-width:94%}.lc-product-card{grid-template-columns:84px 1fr;min-height:84px}.lc-product-img{width:84px;height:84px}.lc-send .lc-image-btn{width:41px;min-width:41px}}
