/* ===== PHCERA chat widget (shared by index.html / products.html) ===== */
.wa-launcher{
  position:fixed;right:22px;bottom:22px;z-index:90;
  width:56px;height:56px;border-radius:50%;border:0;cursor:pointer;
  background:linear-gradient(160deg,#00A6D4,#0080AE);color:#fff;
  box-shadow:0 10px 26px -10px rgba(0,128,174,.55);
  display:grid;place-items:center;transition:.2s;
}
.wa-launcher:hover{transform:translateY(-2px)}
.wa-launcher svg{width:26px;height:26px;fill:#fff}
.wa-launcher .badge{
  position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;border-radius:10px;
  background:#E5484D;color:#fff;font-size:11px;font-weight:600;
  display:grid;place-items:center;padding:0 5px;border:2px solid #fff;
}
.wa-launcher.pulse{animation:waPulse 2.2s ease-out 1}
@keyframes waPulse{0%{box-shadow:0 0 0 0 rgba(0,166,212,.5)}100%{box-shadow:0 0 0 22px rgba(0,166,212,0)}}

.wa-panel{
  position:fixed;right:22px;bottom:90px;z-index:91;
  width:min(372px,calc(100vw - 32px));
  background:#fff;border:1px solid #E3E6E9;border-radius:16px;overflow:hidden;
  box-shadow:0 24px 60px -20px rgba(20,23,26,.45);
  display:none;flex-direction:column;
  max-height:min(560px,calc(100vh - 130px));
}
.wa-panel.open{display:flex;animation:waIn .18s ease-out}
@keyframes waIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.wa-head{
  background:linear-gradient(160deg,#0E2B36,#14171A);color:#fff;
  padding:16px 18px;display:flex;gap:12px;align-items:center;
}
.wa-head .avatar{
  width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);
  border:1.5px solid rgba(0,166,212,.8);display:grid;place-items:center;flex:none;
}
.wa-head .avatar img{width:24px;height:auto}
.wa-head b{display:block;font-size:14.5px;letter-spacing:.02em}
.wa-head .st{font-size:12px;color:#9FD9EE;display:flex;align-items:center;gap:6px}
.wa-head .st::before{content:"";width:7px;height:7px;border-radius:50%;background:#3DD68C;flex:none}
.wa-close{margin-left:auto;background:none;border:0;color:#B9C2CA;font-size:20px;cursor:pointer;line-height:1;padding:4px}
.wa-close:hover{color:#fff}

.wa-msgs{padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:10px;background:#F4F6F7;flex:1}
.wa-msg{max-width:84%;padding:9px 13px;border-radius:12px;font-size:13.5px;line-height:1.55}
.wa-msg.bot{background:#fff;border:1px solid #E3E6E9;color:#14171A;border-bottom-left-radius:4px;align-self:flex-start}
.wa-msg.user{background:#0080AE;color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.wa-msg .acts{display:flex;flex-direction:column;gap:7px;margin-top:9px}
.wa-msg .acts a{
  display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:500;
  padding:7px 11px;border-radius:7px;background:#F1F7F9;border:1px solid #DCEDF2;color:#00688C;
}
.wa-msg .acts a:hover{background:#E4F2F7}
.wa-msg .acts a.wa{background:#0080AE;border-color:#0080AE;color:#fff}
.wa-msg .acts a.wa:hover{background:#00688C}
.wa-typing{align-self:flex-start;display:flex;gap:4px;padding:11px 14px;background:#fff;border:1px solid #E3E6E9;border-radius:12px;border-bottom-left-radius:4px}
.wa-typing i{width:6px;height:6px;border-radius:50%;background:#9AA5AD;animation:waDot 1s infinite}
.wa-typing i:nth-child(2){animation-delay:.15s}
.wa-typing i:nth-child(3){animation-delay:.3s}
@keyframes waDot{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}

.wa-chips{display:flex;flex-wrap:wrap;gap:7px;padding:0 16px 12px;background:#F4F6F7}
.wa-chip{
  font-size:12.5px;padding:7px 12px;border-radius:16px;cursor:pointer;
  background:#fff;border:1px solid #CFD8DD;color:#3E464D;transition:.15s;
}
.wa-chip:hover{border-color:#00A6D4;color:#00688C;background:#F5FBFD}

.wa-input{display:flex;gap:8px;padding:12px;border-top:1px solid #E3E6E9;background:#fff}
.wa-input input{
  flex:1;border:1px solid #E3E6E9;border-radius:8px;padding:9px 12px;font-size:13.5px;font-family:inherit;
}
.wa-input input:focus{outline:none;border-color:#00A6D4}
.wa-input button{
  border:0;border-radius:8px;background:#0080AE;color:#fff;padding:0 15px;cursor:pointer;font-size:14px;
}
.wa-input button:hover{background:#00688C}
.wa-foot{font-size:11px;color:#79838C;text-align:center;padding:0 12px 10px;background:#fff}
