/* WhatsApp Widget Styles */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  border: none;
  position: relative;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.whatsapp-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.whatsapp-popup.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.whatsapp-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.whatsapp-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.whatsapp-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.whatsapp-title {
  color: white;
}

.whatsapp-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.whatsapp-title .status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.whatsapp-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.whatsapp-close:hover {
  transform: rotate(90deg);
}

.whatsapp-close svg {
  width: 24px;
  height: 24px;
}

.whatsapp-body {
  padding: 20px;
  background: #ECE5DD;
  min-height: 200px;
}

.whatsapp-message {
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 16px;
}

.whatsapp-message::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent white transparent transparent;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.message-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #075E54;
}

.message-header .emoji {
  font-size: 18px;
}

.message-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.whatsapp-footer {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

.whatsapp-link svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .whatsapp-popup {
    width: calc(100vw - 40px);
    right: 20px;
  }
  
  .whatsapp-widget {
    bottom: 15px;
    right: 15px;
  }
}
