:root { --wa-green:#25d366; --wa-green-dark:#0c8f4d; }
.wa-widget { position:fixed; z-index:90; right:22px; bottom:calc(22px + env(safe-area-inset-bottom)); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
.wa-fab { width:60px; height:60px; position:relative; display:grid; place-items:center; border:0; border-radius:50%; background:var(--wa-green); color:#fff; cursor:pointer; box-shadow:0 10px 28px #0008,0 0 0 1px #ffffff26; transition:transform .2s,box-shadow .2s; }
.wa-fab:hover { transform:translateY(-3px) scale(1.035); box-shadow:0 14px 34px #0009,0 0 0 5px #25d36622; }
.wa-fab svg { width:30px; height:30px; }
.wa-fab::after { content:""; position:absolute; inset:-5px; border:1px solid #25d36670; border-radius:50%; animation:wa-pulse 2.7s ease-out infinite; pointer-events:none; }
@keyframes wa-pulse { 0% { opacity:.6; transform:scale(.9); } 80%,100% { opacity:0; transform:scale(1.35); } }
.wa-fab-label { position:absolute; right:70px; top:50%; padding:8px 11px; border:1px solid #ffffff20; border-radius:9px; background:#171717; color:#eee; font-size:10px; font-weight:750; white-space:nowrap; opacity:0; transform:translate(5px,-50%); transition:.2s; pointer-events:none; }
.wa-fab:hover .wa-fab-label,.wa-fab:focus-visible .wa-fab-label { opacity:1; transform:translate(0,-50%); }
.wa-panel { width:min(360px,calc(100vw - 28px)); max-height:min(520px,calc(100dvh - 112px)); position:absolute; right:0; bottom:76px; display:flex; flex-direction:column; overflow:hidden; border:1px solid #ffffff20; border-radius:18px; background:#111; color:#f4f4f4; box-shadow:0 24px 70px #000b; opacity:0; visibility:hidden; transform:translateY(12px) scale(.97); transform-origin:bottom right; transition:opacity .2s,transform .24s cubic-bezier(.2,.7,.2,1),visibility .24s; }
.wa-widget.is-open .wa-panel { opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.wa-panel-head { min-height:76px; display:flex; align-items:center; gap:12px; padding:14px 15px; background:linear-gradient(110deg,#171717,#222); border-bottom:1px solid #ffffff12; }
.wa-mark { width:40px; height:40px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; background:var(--wa-green); color:white; }
.wa-mark svg { width:22px; height:22px; }
.wa-panel-title { min-width:0; flex:1; }.wa-panel-title b,.wa-panel-title small { display:block; }.wa-panel-title b { font-size:12px; }.wa-panel-title small { margin-top:3px; color:#a3a3a3; font-size:9px; }
.wa-close { width:30px; height:30px; display:grid; place-items:center; border:1px solid #ffffff1e; border-radius:50%; background:#ffffff08; color:#ccc; font-size:18px; line-height:1; cursor:pointer; transition:.18s; }.wa-close:hover { background:#ffffff17; color:white; }
.wa-chat-body { min-height:140px; flex:1; overflow:auto; padding:17px 15px 12px; background:radial-gradient(circle at 8% 4%,#ffffff08,transparent 37%),#111; }
.wa-greeting { max-width:278px; padding:12px 13px; border:1px solid #ffffff13; border-radius:4px 14px 14px 14px; background:#202020; color:#e9e9e9; font-size:11px; line-height:1.65; }
.wa-greeting small { display:block; margin-top:7px; color:#8d8d8d; font-size:8px; text-align:right; }
.wa-form { display:grid; grid-template-columns:1fr 42px; align-items:end; gap:9px; padding:12px; border-top:1px solid #ffffff12; background:#151515; }
.wa-input { width:100%; min-height:42px; max-height:112px; resize:vertical; outline:0; border:1px solid #ffffff1b; border-radius:12px; padding:11px 12px; background:#0c0c0c; color:#f2f2f2; font:inherit; font-size:11px; line-height:1.45; }
.wa-input::placeholder { color:#777; }.wa-input:focus { border-color:#25d36699; }
.wa-send { width:42px; height:42px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--wa-green); color:#062913; cursor:pointer; transition:transform .18s,opacity .18s; }.wa-send:hover:not(:disabled) { transform:scale(1.06); }.wa-send:disabled { opacity:.42; cursor:default; }
.wa-send svg { width:18px; height:18px; }
.wa-privacy { padding:0 13px 12px; background:#151515; color:#777; font-size:8px; text-align:center; }
.wa-widget button:focus-visible,.wa-widget textarea:focus-visible { outline:2px solid #d8d8d8; outline-offset:3px; }
@media(max-width:560px) {
  .wa-widget { right:15px; bottom:calc(15px + env(safe-area-inset-bottom)); }
  .wa-fab { width:48px; height:48px; }
  .wa-fab-label { display:none; }
  .wa-panel { right:0; bottom:60px; max-height:calc(100dvh - 92px); }
}
@media(prefers-reduced-motion:reduce) {
  .wa-fab,.wa-fab::after,.wa-panel,.wa-send { animation:none; transition:none; }
}
