/* BCJ Web Chat widget 1.0.0 — visual clone of the previous Chatwoot "standard" widget */
#bcjwc,#bcjwc *{box-sizing:border-box;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Tahoma,Arial,sans-serif;letter-spacing:normal;text-transform:none;line-height:1.5}
#bcjwc{position:fixed;right:20px;bottom:20px;z-index:2147482999;-webkit-font-smoothing:antialiased}
#bcjwc .wc-bubble{width:64px;height:64px;border-radius:100px;border:0;background:var(--wc,#E31515);box-shadow:0 8px 24px rgba(0,0,0,.16);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:transform .2s ease;position:relative}
#bcjwc .wc-bubble:hover{transform:scale(1.05)}
#bcjwc .wc-bubble svg{width:24px;height:24px;fill:#fff}
#bcjwc .wc-bubble .wc-ic-close{display:none}
#bcjwc.open .wc-bubble .wc-ic-chat{display:none}
#bcjwc.open .wc-bubble .wc-ic-close{display:block}
#bcjwc .wc-badge{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;border-radius:10px;background:#fff;color:var(--wc,#E31515);font-size:12px;font-weight:700;display:none;align-items:center;justify-content:center;padding:0 5px;box-shadow:0 1px 4px rgba(0,0,0,.2)}
#bcjwc .wc-badge.on{display:flex}
#bcjwc .wc-preview{position:absolute;right:0;bottom:80px;width:280px;background:#fff;border-radius:12px;box-shadow:0 5px 30px rgba(0,0,0,.16);padding:12px 14px;font-size:14px;color:#1f2937;cursor:pointer;display:none}
#bcjwc .wc-preview.on{display:block}
#bcjwc .wc-preview b{display:block;font-size:12px;color:#6b7280;font-weight:600;margin-bottom:2px}
#bcjwc .wc-panel{position:absolute;right:0;bottom:84px;width:400px;height:calc(100vh - 124px);max-height:590px;min-height:250px;background:#f8f8fa;border-radius:16px;box-shadow:0 5px 40px rgba(0,0,0,.16);overflow:hidden;display:flex;flex-direction:column;opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .2s ease,transform .2s ease}
#bcjwc.open .wc-panel{opacity:1;transform:none;pointer-events:auto}
#bcjwc .wc-head{background:#fff;padding:16px 20px;display:flex;align-items:center;gap:10px;box-shadow:0 1px 10px rgba(0,0,0,.05);position:relative;z-index:2;flex:0 0 auto}
#bcjwc .wc-back,#bcjwc .wc-x{background:none;border:0;padding:4px;margin:0 2px 0 -6px;cursor:pointer;color:#1f2937;display:none;line-height:0}
#bcjwc .wc-back svg,#bcjwc .wc-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
#bcjwc.chat .wc-back{display:block}
#bcjwc .wc-x{margin:0 -6px 0 auto}
#bcjwc .wc-logo{width:32px;height:32px;border-radius:50%;object-fit:cover;background:#000;flex:0 0 auto}
#bcjwc .wc-title{font-size:15px;font-weight:600;color:#1f2937;display:flex;align-items:center;gap:6px;margin:0}
#bcjwc .wc-dot{width:8px;height:8px;border-radius:50%;background:#10b981;display:inline-block}
#bcjwc .wc-sub{font-size:12px;color:#4b5563;margin:0}
#bcjwc .wc-home{flex:1;display:flex;flex-direction:column;justify-content:flex-end;padding:16px}
#bcjwc.chat .wc-home{display:none}
#bcjwc .wc-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;display:flex;align-items:center;gap:12px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
#bcjwc .wc-card-t{flex:1;min-width:0}
#bcjwc .wc-card h4{font-size:15px;font-weight:600;color:#1f2937;margin:0 0 4px}
#bcjwc .wc-card p{font-size:14px;color:#6b7280;margin:0 0 12px}
#bcjwc .wc-start{background:none;border:0;padding:0;color:var(--wc,#E31515);font-size:15px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
#bcjwc .wc-start svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
#bcjwc .wc-ava{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 auto}
#bcjwc .wc-chat{flex:1;display:none;flex-direction:column;min-height:0}
#bcjwc.chat .wc-chat{display:flex}
#bcjwc .wc-msgs{flex:1;overflow-y:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:4px;overscroll-behavior:contain}
#bcjwc .wc-row{display:flex;align-items:flex-end;gap:8px;max-width:100%}
#bcjwc .wc-row.u{justify-content:flex-end}
#bcjwc .wc-row .wc-mava{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#000;visibility:hidden}
#bcjwc .wc-row.last .wc-mava{visibility:visible}
#bcjwc .wc-row.gap{margin-top:8px}
#bcjwc .wc-b{max-width:80%;padding:10px 14px;border-radius:20px;font-size:14px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
#bcjwc .wc-row.a .wc-b{background:#fff;color:#1f2937;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
#bcjwc .wc-row.u .wc-b{background:var(--wc,#E31515);color:#fff;border-bottom-right-radius:4px}
#bcjwc .wc-b a{color:inherit;text-decoration:underline}
#bcjwc .wc-row.u.err .wc-b{opacity:.6}
#bcjwc .wc-err{font-size:11px;color:#b91c1c;text-align:right;margin:2px 4px 0}
#bcjwc .wc-sys{text-align:center;font-size:12px;color:#6b7280;margin:8px 0}
#bcjwc .wc-name{font-size:11px;color:#6b7280;margin:6px 0 0 32px}
#bcjwc .wc-typing .wc-b{display:flex;gap:4px;padding:14px}
#bcjwc .wc-typing i{width:6px;height:6px;border-radius:50%;background:#9ca3af;display:block;animation:wcb 1.2s infinite ease-in-out}
#bcjwc .wc-typing i:nth-child(2){animation-delay:.15s}
#bcjwc .wc-typing i:nth-child(3){animation-delay:.3s}
@keyframes wcb{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
#bcjwc .wc-foot{padding:8px 16px 16px;flex:0 0 auto;position:relative}
#bcjwc .wc-input{display:flex;align-items:flex-end;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:4px 8px 4px 12px;transition:border-color .15s}
#bcjwc .wc-input:focus-within{border-color:var(--wc,#E31515);box-shadow:0 0 0 1px var(--wc,#E31515)}
#bcjwc textarea{flex:1;border:0;outline:0;resize:none;font-size:14px;color:#1f2937;background:transparent;padding:8px 0;max-height:120px;min-height:22px;height:38px;margin:0;box-shadow:none}
#bcjwc textarea::placeholder{color:#9ca3af}
#bcjwc .wc-emo-btn,#bcjwc .wc-send{background:none;border:0;cursor:pointer;color:#4b5563;padding:8px 4px;line-height:0}
#bcjwc .wc-emo-btn svg,#bcjwc .wc-send svg{width:20px;height:20px}
#bcjwc .wc-send{color:var(--wc,#E31515);display:none}
#bcjwc .wc-input.has .wc-send{display:block}
#bcjwc .wc-emo{position:absolute;bottom:64px;right:16px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 5px 20px rgba(0,0,0,.12);padding:8px;display:none;grid-template-columns:repeat(8,1fr);gap:2px;width:288px}
#bcjwc .wc-emo.on{display:grid}
#bcjwc .wc-emo button{background:none;border:0;font-size:20px;padding:4px;cursor:pointer;border-radius:6px;line-height:1.2}
#bcjwc .wc-emo button:hover{background:#f3f4f6}
@media (max-width:667px){
  #bcjwc{right:16px;bottom:16px}
  #bcjwc .wc-panel{position:fixed;inset:0;width:100%;height:100%;max-height:none;border-radius:0;bottom:auto;right:auto}
  #bcjwc .wc-x{display:block}
  #bcjwc.open .wc-bubble{display:none}
  #bcjwc textarea{font-size:16px}
}
#bcjwc h4,#bcjwc p{font-style:normal;text-transform:none;letter-spacing:normal}
#bcjwc button{box-shadow:none;text-shadow:none;min-height:0;min-width:0;line-height:1;text-transform:none;letter-spacing:normal}
#bcjwc .wc-back,#bcjwc .wc-x,#bcjwc .wc-start,#bcjwc .wc-emo-btn,#bcjwc .wc-send,#bcjwc .wc-emo button{background:transparent!important;border-radius:6px}
