.wa-float{
  position: fixed;
  right: 10px;
  bottom: 18px;
  z-index: 9999;

  width: 0;
  height: 0;

  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.wa-btn{
  position: absolute;
  right: 0;
  bottom: 0;

  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #25D366;
  box-shadow: 0 10px 25px rgba(0,0,0,.28);
  display: grid;
  place-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
  animation: waWiggle 4.8s infinite;

  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.wa-btn:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.34); }
.wa-btn:active{ transform: translateY(0) scale(.98); }

.wa-btn svg{ width: 30px; height: 30px; fill: #fff; }

@keyframes waWiggle{
  0%,86%{ transform: translateY(0) rotate(0deg); }
  88%{ transform: translateY(-2px) rotate(-8deg); }
  90%{ transform: translateY(0) rotate(8deg); }
  92%{ transform: translateY(-2px) rotate(-6deg); }
  94%{ transform: translateY(0) rotate(6deg); }
  96%{ transform: translateY(-1px) rotate(-4deg); }
  98%{ transform: translateY(0) rotate(4deg); }
  100%{ transform: translateY(0) rotate(0deg); }
}

.wa-panel{
  position: absolute;
  right: 70px;  /* painel ao lado do botão */
  bottom: 0;

  width: min(320px, calc(100vw - 110px));
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  overflow: hidden;

  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  visibility: hidden;

  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

.wa-panel.is-open{
  opacity: 1;
  transform: translateX(0);

  pointer-events: auto;
  visibility: visible;

  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}

.wa-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background: rgba(44,43,43,0.94);
  color:#fff;
}

.wa-panel-title{ font-weight:700; font-size:14px; letter-spacing:.2px; }

.wa-close{
  border:0;
  background:transparent;
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  opacity:.9;
}
.wa-close:hover{ opacity:1; }

.wa-form{ padding:12px 14px 14px; }
.wa-label{ display:block; font-size:12px; margin:8px 0 6px; color:#222; }

.wa-input{
  width:100%;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  padding:10px 12px;
  font-size:14px;
  outline:none;
}
.wa-input:focus{
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

.wa-send{
  width:100%;
  margin-top:12px;
  border:0;
  border-radius:12px;
  padding:11px 12px;
  background:#dc3545;
  color:#fff;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease;
}
.wa-send:hover{ filter:brightness(.98); transform: translateY(-1px); }
.wa-send:active{ transform: translateY(0) scale(.99); }

.wa-hint{ margin-top:10px; font-size:11px; color: rgba(0,0,0,.65); line-height:1.35; }

@media (max-width: 420px){
  .wa-float{ right: 8px; bottom: 12px; }

  /* no mobile, painel sobe acima do botão */
  .wa-panel{
    right: 0;
    bottom: 70px;
    transform: translateY(10px);
    max-height: 60vh;
    overflow: auto;
  }
  .wa-panel.is-open{ transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .wa-btn{ animation:none; }
  .wa-panel{ transition:none; }
}