/* WebCorp Core — online chat widget */
.wcc-chat{--c:#3b5bfd;--c2:#3b5bfd;--on:#fff;--off:20px;--bg:#fff;--panel:#f5f6f9;--ink:#0f172a;--muted:#64748b;--line:#e6e8ef;--bubble:#fff;
	position:fixed;bottom:var(--off);right:var(--off);z-index:99990;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink)}
.wcc-chat.is-left{right:auto;left:var(--off)}
.wcc-chat.is-dark{--bg:#121629;--panel:#0b0e1c;--ink:#e9ecf8;--muted:#8d95b4;--line:rgba(255,255,255,.08);--bubble:#1b2140}
.wcc-chat *{box-sizing:border-box}
.wcc-chat__btn{height:58px;min-width:58px;border-radius:999px;border:0;background:linear-gradient(135deg,var(--c),var(--c2));color:var(--on);cursor:pointer;
	box-shadow:0 10px 28px -6px color-mix(in srgb,var(--c) 70%,transparent),inset 0 1px 0 rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;gap:10px;position:relative;padding:0;transition:transform .15s}
.wcc-chat__btn:hover{transform:translateY(-1px)}
.wcc-chat__btn:focus-visible{outline:3px solid color-mix(in srgb,var(--c) 40%,transparent);outline-offset:3px}
.wcc-chat.is-pill .wcc-chat__btn{padding:0 22px 0 18px;height:52px}
.wcc-chat__icon{display:flex;width:26px;height:26px}
.wcc-chat__icon svg,.wcc-chat__icon img{width:100%;height:100%;object-fit:contain}
.wcc-chat__icon img{border-radius:50%}
.wcc-chat__label{display:none;font-weight:600;font-size:15px;white-space:nowrap}
.wcc-chat.is-pill .wcc-chat__label{display:inline}
.wcc-chat__badge{position:absolute;top:-3px;right:-3px;background:#ef4444;color:#fff;border-radius:999px;font-size:11px;min-width:19px;height:19px;padding:0 5px;display:none;align-items:center;justify-content:center;font-weight:700;box-shadow:0 0 0 2px #fff}
.wcc-chat__panel{position:absolute;right:0;bottom:74px;width:360px;max-width:calc(100vw - 32px);height:500px;max-height:calc(100vh - 120px);background:var(--panel);border-radius:20px;
	box-shadow:0 24px 64px -12px rgba(15,23,42,.45),0 0 0 1px var(--line);display:none;flex-direction:column;overflow:hidden;transform-origin:bottom right}
.wcc-chat.is-left .wcc-chat__panel{right:auto;left:0;transform-origin:bottom left}
.wcc-chat.is-open .wcc-chat__panel{display:flex;animation:wcc-pop .18s ease-out}
@keyframes wcc-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.wcc-chat__head{background:linear-gradient(135deg,var(--c),var(--c2));color:var(--on);padding:14px 14px 14px 16px;display:flex;align-items:center;gap:12px}
.wcc-chat__avatar{width:40px;height:40px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-weight:700;font-size:16px;background:rgba(255,255,255,.22);overflow:hidden;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.wcc-chat__avatar img{width:100%;height:100%;object-fit:cover}
.wcc-chat__who{flex:1;min-width:0;display:flex;flex-direction:column}
.wcc-chat__who strong{font-size:15px;line-height:1.25}
.wcc-chat__who small{opacity:.88;font-size:12px;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wcc-chat__live{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 2px rgba(255,255,255,.35);flex-shrink:0;display:inline-block}
.wcc-chat__live.is-off{background:#cbd5e1}
.wcc-chat__close{background:rgba(255,255,255,.16);border:0;color:inherit;width:30px;height:30px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;flex-shrink:0}
.wcc-chat__close:hover{background:rgba(255,255,255,.28)}
.wcc-chat__body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:8px}
.wcc-chat__msg{max-width:84%;padding:9px 13px;border-radius:16px;white-space:pre-wrap;word-wrap:break-word}
.wcc-chat__msg.is-agent,.wcc-chat__msg.is-system{background:var(--bubble);align-self:flex-start;border-bottom-left-radius:5px;box-shadow:0 1px 2px rgba(0,0,0,.06),0 0 0 1px var(--line)}
.wcc-chat__msg.is-visitor{background:linear-gradient(135deg,var(--c),var(--c2));color:var(--on);align-self:flex-end;border-bottom-right-radius:5px}
.wcc-chat__msg small{display:block;color:var(--muted);font-size:11px;margin-bottom:2px}
.wcc-chat__form{border-top:1px solid var(--line);padding:10px;display:flex;flex-direction:column;gap:6px;background:var(--bg);margin:0}
.wcc-chat__form input,.wcc-chat__form textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:9px 11px;font:inherit;color:var(--ink);background:var(--panel);margin:0}
.wcc-chat__form input:focus,.wcc-chat__form textarea:focus{outline:none;border-color:var(--c);box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 20%,transparent)}
.wcc-chat__form textarea{resize:none;height:44px}
.wcc-chat__row{display:flex;gap:6px;align-items:flex-end}
.wcc-chat__send{background:linear-gradient(135deg,var(--c),var(--c2));color:var(--on);border:0;border-radius:12px;padding:0 16px;height:44px;cursor:pointer;font:inherit;font-weight:600}
.wcc-chat__send:disabled{opacity:.6}
.wcc-chat__teaser{position:absolute;right:0;bottom:72px;max-width:270px;background:var(--bg);color:var(--ink);padding:12px 32px 12px 14px;border-radius:16px 16px 4px 16px;box-shadow:0 14px 36px -8px rgba(15,23,42,.35),0 0 0 1px var(--line);cursor:pointer;font-size:14px}
.wcc-chat.is-left .wcc-chat__teaser{right:auto;left:0;border-radius:16px 16px 16px 4px}
.wcc-chat__teaser-x{position:absolute;top:6px;right:6px;border:0;background:none;color:var(--muted);font-size:16px;cursor:pointer;line-height:1}
.wcc-chat.is-open .wcc-chat__teaser{display:none}
.wcc-chat.is-preview{position:absolute}
@media (max-width:480px){
	.wcc-chat{--off:12px}
	.wcc-chat__panel{height:72vh;width:calc(100vw - 24px)}
	.wcc-chat.no-mobile:not(.is-preview){display:none}
}
@media (prefers-reduced-motion:reduce){.wcc-chat *{animation:none!important;transition:none!important}}

.wcc-chat__msg .wcc-chat__by{display:flex;align-items:center;gap:6px}
.wcc-chat__face{width:18px;height:18px;border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;background:var(--c);color:var(--on);font-size:10px;font-weight:700;font-style:normal}
.wcc-chat__face img{width:100%;height:100%;object-fit:cover;display:block}
