/* Botón flotante de WhatsApp - Dynamostore */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990; /* por debajo de los modales de PrestaShop (~10500) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  pointer-events: none;
  filter: brightness(0) invert(1); /* imagen totalmente blanca */
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background-color: #1ebe5b;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  outline: none;
}

/* Tooltip simple */
.whatsapp-float::after {
  content: "Escríbenos por WhatsApp";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #181818;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float:hover::after {
  opacity: 1;
}

/* Móvil: subir para no tapar el botón de "Agregar al carrito" */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-float::after {
    display: none; /* sin tooltip en móvil */
  }
}
