.eshop-whatsapp-float {
  position: fixed;
  right: max(1.15rem, env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 2rem);
  z-index: 9995;
  display: grid;
  justify-items: end;
  gap: .7rem;
  pointer-events: none;
}

.eshop-whatsapp-float__toggle,
.eshop-whatsapp-float__panel {
  pointer-events: auto;
}

.eshop-whatsapp-float__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 999px;
  background: #25d366 !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 .8rem 2rem rgba(18, 140, 74, .32);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.eshop-whatsapp-float__toggle:hover,
.eshop-whatsapp-float__toggle:focus-visible {
  background: #1ebe5d !important;
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.4rem rgba(18, 140, 74, .38);
}

.eshop-whatsapp-float__toggle:focus-visible,
.eshop-whatsapp-float__panel a:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .28);
  outline-offset: 3px;
}

.eshop-whatsapp-float__toggle .eshop-icon {
  width: 1.9rem;
  height: 1.9rem;
}

.eshop-whatsapp-float__panel {
  width: min(17rem, calc(100vw - 2rem));
  padding: .7rem;
  border: 1px solid rgba(18, 140, 74, .16);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(32, 18, 28, .16);
  transform-origin: right bottom;
}

.eshop-whatsapp-float__panel[hidden] {
  display: none !important;
}

.eshop-whatsapp-float__panel > span {
  display: block;
  padding: .1rem .35rem .55rem;
  color: #7d6772;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eshop-whatsapp-float__panel a {
  display: flex;
  gap: .7rem;
  align-items: center;
  min-height: 3.45rem;
  padding: .8rem .9rem;
  border-radius: .8rem;
  background: linear-gradient(135deg, #128c4a, #25d366);
  color: #fff !important;
  text-decoration: none !important;
}

.eshop-whatsapp-float__panel a .eshop-icon {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
}

.eshop-whatsapp-float__panel a strong {
  font-size: .92rem;
  line-height: 1.2;
}

@media (max-width: 48rem) {
  .eshop-whatsapp-float {
    right: max(.9rem, env(safe-area-inset-right));
    bottom: calc(env(safe-area-inset-bottom) + 4.25rem);
  }

  .eshop-whatsapp-float__toggle {
    width: 3.35rem;
    height: 3.35rem;
  }

  .eshop-whatsapp-float__panel {
    width: min(16.5rem, calc(100vw - 1.8rem));
  }
}

@keyframes eshop-whatsapp-attention {
  0%, 78%, 100% { transform: translateY(0) scale(1); box-shadow: 0 .8rem 2rem rgba(18, 140, 74, .32); }
  84% { transform: translateY(-.22rem) scale(1.04); box-shadow: 0 1rem 2.5rem rgba(18, 140, 74, .4); }
  90% { transform: translateY(0) scale(1); }
  94% { transform: translateY(-.1rem) scale(1.02); }
}

.eshop-whatsapp-float__toggle {
  animation: eshop-whatsapp-attention 6s ease-in-out infinite;
}

.eshop-whatsapp-float__toggle:hover,
.eshop-whatsapp-float__toggle:focus-visible {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .eshop-whatsapp-float__toggle {
    animation: none;
  }
}
