/* WhatsApp Button Container */
.whatsapp-container {
  position: fixed;
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Position variants */
.whatsapp-bottom-right {
  bottom: 20px;
  right: 20px;
}

.whatsapp-bottom-left {
  bottom: 20px;
  left: 20px;
}

.whatsapp-top-right {
  top: 20px;
  right: 20px;
}

.whatsapp-top-left {
  top: 20px;
  left: 20px;
}

/* WhatsApp Button Link */
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  outline: none;
  position: relative;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(43, 184, 38, 0.3);
}

.whatsapp-button:active {
  transform: scale(0.95);
}

/* Added tooltip text styles */
.whatsapp-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%) scale(0.9);
  transform-origin: right center;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  right: 75px;
  top: 50%;
  margin-top: -12px;
}

.whatsapp-button:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(-10px) scale(1);
}

/* WhatsApp Icon */
.whatsapp-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Responsive design */
@media (max-width: 768px) {
  .whatsapp-container {
    width: 55px;
    height: 55px;
  }

  .whatsapp-bottom-right,
  .whatsapp-bottom-left,
  .whatsapp-top-right,
  .whatsapp-top-left {
    bottom: 15px;
    right: 15px;
    left: auto;
    top: auto;
  }

  .whatsapp-button {
    width: 55px;
    height: 55px;
  }

  .whatsapp-icon {
    width: 55px;
    height: 55px;
  }

  /* Hide tooltip on mobile */
  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .whatsapp-container {
    width: 50px;
    height: 50px;
  }

  .whatsapp-bottom-right,
  .whatsapp-bottom-left,
  .whatsapp-top-right,
  .whatsapp-top-left {
    bottom: 10px;
    right: 10px;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
  }

  .whatsapp-icon {
    width: 50px;
    height: 50px;
  }
}
