#wcap-root{
  --wcap-primary:#25D366;
  --wcap-header:#25D366;
  --wcap-text:#0f172a;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
}

.wcap-fab{
  position:fixed;
  bottom:24px;
  right:24px;
  width:72px;height:72px;border-radius:999px;
  border:none;
  background:var(--wcap-primary);
  box-shadow:0 22px 60px rgba(2,6,23,.22);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  z-index:999999;
  transition: transform .15s ease;
}
.wcap-fab.is-left{ left:24px; right:auto; }
.wcap-fab:hover{ transform: translateY(-1px); }
.wcap-fab svg{ width:28px;height:28px; fill:#fff; }

.wcap-overlay{
  position:fixed; inset:0;
  background:rgba(2,6,23,.45);
  display:none;
  z-index:999999;
  padding:18px;
  align-items:flex-end;
  justify-content:flex-end;
}
.wcap-overlay.is-open{ display:flex; }
.wcap-overlay.is-left{ justify-content:flex-start; }

.wcap-chat{
  width: 390px;
  max-width: 95vw;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 22px 70px rgba(2,6,23,.25);
}

.wcap-header{
  background:var(--wcap-header);
  color:#fff;
  padding:16px;
  display:flex;
  gap:12px;
  position:relative;
}
.wcap-avatar{
  width:52px;height:52px;border-radius:999px;
  border:2px solid rgba(255,255,255,.40);
  object-fit:cover;
  background:rgba(255,255,255,.18);
}
.wcap-status{
  position:absolute;
  left:56px;
  top:52px;
  width:14px;height:14px;border-radius:999px;
  background:#22c55e;
  border:3px solid #fff;
}
.wcap-meta{ flex:1; }
.wcap-name{ font-weight:900; font-size:22px; line-height:1.05; }
.wcap-role{ font-weight:700; opacity:.92; margin-top:2px; }
.wcap-online{
  display:inline-flex; gap:8px; align-items:center;
  margin-top:10px;
  padding:6px 10px; border-radius:999px;
  background: rgba(0,0,0,.15);
  font-weight:900;
  width: fit-content;
}
.wcap-online .dot{ width:10px;height:10px;border-radius:999px;background:#16a34a; }

.wcap-close{
  position:absolute;
  right:12px; top:10px;
  border:none;
  background:transparent;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  opacity:.9;
}
.wcap-close:hover{ opacity:1; }

.wcap-body{ padding:16px; background:#fff; }
.wcap-bubble{
  border:1px solid #eef2f7;
  border-radius:14px;
  padding:16px;
  box-shadow:0 12px 24px rgba(2,6,23,.06);
  font-weight:600;
  color:var(--wcap-text);
}
.wcap-time{
  margin-top:10px;
  font-size:12px;
  color:#94a3b8;
  text-align:right;
  font-weight:700;
}

.wcap-form{
  margin-top:14px;
  border:1px solid #eef2f7;
  border-radius:14px;
  padding:14px;
  box-shadow:0 12px 24px rgba(2,6,23,.06);
}
.wcap-field{ font-size:12px; color:#64748b; font-weight:900; margin-top:10px; }
.wcap-input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #e7edf6;
  outline:none;
  margin-top:6px;
  font-size:14px;
}
.wcap-input:focus{ border-color: rgba(15,23,42,.35); }

.wcap-cta{
  width:100%;
  border:none;
  background:var(--wcap-primary);
  color:#fff;
  font-weight:900;
  padding:12px 14px;
  border-radius:12px;
  margin-top:14px;
  cursor:pointer;
}
.wcap-cta:disabled{ opacity:.65; cursor:not-allowed; }

.wcap-powered{
  margin-top:16px;
  text-align:center;
  font-size:12px;
  color:#94a3b8;
  font-weight:900;
}
.wcap-statusline{
  margin-top:10px;
  font-size:13px;
  font-weight:800;
  min-height:18px;
  color:#0f172a;
}
.wcap-statusline.is-error{ color:#b91c1c; }
.wcap-statusline.is-ok{ color:#065f46; }