/* 💬 Live Chat — the round button and the chat window (colours can be changed in «دیزاینی ماڵپەڕ») */
.lcbtn{position:fixed;right:20px;bottom:20px;z-index:60;width:60px;height:60px;border-radius:50%;border:0;background:var(--brand2,#2563EB);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(15,23,42,.28);transition:transform .15s}
.lcbtn:hover{transform:scale(1.06)}
.lcbtn:focus-visible{outline:3px solid #93C5FD;outline-offset:3px}
.lcbtn svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lcbtn .lcx{display:none}.lcbtn.on .lcx{display:block}.lcbtn.on .lcico{display:none}
.lcbtn b{position:absolute;top:-2px;left:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--hot,#E11D48);color:#fff;font:700 12px/22px Tahoma,sans-serif;text-align:center;box-shadow:0 0 0 2px #fff}
.lcbtn b[hidden]{display:none}
.lcbox{position:fixed;right:20px;bottom:92px;z-index:60;width:370px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 120px);background:var(--card,#fff);color:var(--ink,#0F172A);border:1px solid var(--line,#E2E8F0);border-radius:18px;box-shadow:0 18px 48px rgba(15,23,42,.25);display:flex;flex-direction:column;overflow:hidden}
.lcbox[hidden]{display:none}
.lchead{background:var(--brand2,#2563EB);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:10px}
.lchead .lct{flex:1;min-width:0}
.lchead b{display:block;font-size:16px;line-height:1.3}
.lchead small{display:flex;align-items:center;gap:6px;font-size:12.5px;opacity:.95}
.lchead small i{width:8px;height:8px;border-radius:50%;background:#34D399;display:inline-block}
.lchead small i.off{background:#FBBF24}
.lchead button{background:rgba(255,255,255,.18);border:0;color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:16px;flex:none}
.lchead button:hover{background:rgba(255,255,255,.3)}
.lcoff{background:#FEF3C7;color:#78350F;font-size:13px;padding:8px 14px;border-bottom:1px solid #FDE68A;white-space:pre-line}
.lcbody{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--bg,#F5F7FB)}
.lcintro{display:flex;flex-direction:column;gap:10px;padding:16px;overflow-y:auto;flex:1}
.lcintro p{margin:0;background:var(--bg,#F5F7FB);border-radius:12px;padding:10px 12px;white-space:pre-line}
.lcintro label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted,#64748B)}
.lcintro input,.lcintro textarea{border:1px solid var(--line,#E2E8F0);border-radius:10px;padding:10px 12px;font:inherit;font-size:15px;background:var(--card,#fff);color:var(--ink,#0F172A)}
.lcintro textarea{min-height:70px;resize:vertical}
.lcintro .lcgo{background:var(--brand2,#2563EB);color:#fff;border:0;border-radius:10px;padding:12px;font:inherit;font-weight:700;cursor:pointer}
.lcintro .lcgo:disabled{opacity:.6;cursor:wait}
.lcintro .lcerr{color:#B91C1C;font-size:13px;margin:0;background:none;padding:0}.lcintro .lcerr:empty{display:none}
.lcm{display:flex;flex-direction:column;max-width:82%}
.lcm .lcb{border-radius:16px;padding:8px 12px;white-space:pre-wrap;word-break:break-word;font-size:14.5px;line-height:1.55}
.lcm.c{align-self:flex-end}.lcm.c .lcb{background:var(--brand2,#2563EB);color:#fff;border-bottom-left-radius:4px}
.lcm.s{align-self:flex-start}.lcm.s .lcb{background:var(--card,#fff);color:var(--ink,#0F172A);border:1px solid var(--line,#E2E8F0);border-bottom-right-radius:4px}
.lcm.sys{align-self:center;max-width:92%}.lcm.sys .lcb{background:#FEF3C7;color:#78350F;font-size:13px;text-align:center}
.lcm small{font-size:11px;color:var(--muted,#64748B);margin-top:2px;padding:0 4px}
.lcm.c small{text-align:left}
.lcm img{display:block;max-width:220px;max-height:260px;border-radius:12px;margin-bottom:4px;cursor:zoom-in}
.lcm.wait .lcb{opacity:.6}
.lcfoot{display:flex;align-items:flex-end;gap:6px;padding:10px;border-top:1px solid var(--line,#E2E8F0);background:var(--card,#fff)}
.lcfoot textarea{flex:1;min-width:0;border:1px solid var(--line,#E2E8F0);border-radius:12px;padding:9px 12px;font:inherit;font-size:15px;resize:none;max-height:120px;background:var(--card,#fff);color:var(--ink,#0F172A)}
.lcfoot button{flex:none;width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lcfoot svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lcfoot .lcsend{background:var(--brand2,#2563EB);color:#fff}
.lcfoot .lcsend svg{transform:scaleX(-1)}
.lcfoot .lcpic{background:transparent;color:var(--muted,#64748B)}
.lcfoot .lcpic:hover{background:var(--bg,#F5F7FB)}
.lcnew{background:none;border:0;color:var(--muted,#64748B);font:inherit;font-size:12px;cursor:pointer;align-self:center;text-decoration:underline;padding:4px}
.lcsr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html.dark .lcbtn b{box-shadow:0 0 0 2px var(--card,#0F172A)}
html.dark .lcoff,html.dark .lcm.sys .lcb{background:#422006;color:#FDE68A;border-color:#78350F}
@media(max-width:860px){
  .lcbtn{bottom:calc(76px + env(safe-area-inset-bottom));right:14px;width:54px;height:54px}
  .lcbox{right:8px;left:8px;width:auto;max-width:none;bottom:calc(140px + env(safe-area-inset-bottom));height:auto;top:76px;max-height:none}
}
@media print{.lcbtn,.lcbox{display:none!important}}

/* 💬 live-chat button: two speech bubbles (front one outlined with two lines, back one filled) */
.lcbtn svg.lcweb{width:32px;height:32px;stroke:none}
.lcbtn svg.lcweb .w{fill:#fff}
.lcbtn svg.lcweb .gap{fill:var(--lcbg,var(--brand2,#2563EB));stroke:var(--lcbg,var(--brand2,#2563EB));stroke-width:4.2;stroke-linejoin:round}
.lcbtn svg.lcweb .fr{fill:var(--lcbg,var(--brand2,#2563EB));stroke:#fff;stroke-width:1.9;stroke-linejoin:round}
.lcbtn svg.lcweb .ln{fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round}
