.whatsapp-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: inherit;
}

/* Floating button */
.whatsapp-button {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  animation: pulsewhite 3.5s infinite;
}

.whatsapp-button img {
  width: 35px;
  height: 35px;
  object-fit: cover;
}

.whatsapp-chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  &.open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;  
	
	.chat-message {
		opacity: 1;
		transform: translateY(0);
	}
  }
}

.chat-header {
  background: #25D366;
  color: white;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  
  #close-icon {
    width: 14px;
    position: absolute;
    right: 17px;
    cursor: pointer;
    
    @media(max-width: 540px) {
      width: 14px !important;
    }
  }
}

.chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  
  @media(max-width: 540px) {
    width: 45px !important;
  }
}

.chat-info  {
	small {
		font-size: 12px;
		  opacity: 0.9;
	}
	
	strong {
		font-size: 15px;
	}
}

/* Chat body */
.chat-body {
  padding: 10px;
}

.chat-message {
  background: #dcf8c6;
  padding: 10px;
  border-radius: 6px;
  margin: 12px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(5px);
  transition: .3s;
  transition-delay: .4s;
  box-shadow: 0 1px .5px rgba(0, 0, 0, .13);
}

/* Chat footer with input + send */
.chat-footer {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  background: #f1f0f0;
  border-top: 1px solid #eee;
  flex-direction: column;
  gap: 10px;
  border-radius: 0 0 0 10px;
  
  input {
    flex: 1;
    padding: 9px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    width: 100%;
    background: white;
    box-sizing: border-box;
  }
}

.send-button {
  background: #25D366;
  margin-left: 6px;
  padding: 10px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  transition: .3s ease all;
  
  img {
	width: 18px;
	margin-right: 10px;
  }
  
  &:hover {
    color: white;
    box-shadow: 0 4px 5px rgba(0, 0, 0, .11);
  }
}

@keyframes pulsewhite {
	0% {
		-moz-box-shadow: 0 0 0 0 #25D366;
		box-shadow: 0 0 0 0 #25D366;
	}
	40% {
		-moz-box-shadow: 0 0 0 10px rgba(192, 222, 110, 0);
		box-shadow: 0 0 0 10px rgba(192, 222, 110, 0);
	}
	100% {
		-moz-box-shadow: 0 0 0 0 rgba(192, 222, 110, 0);
		box-shadow: 0 0 0 0 rgba(192, 222, 110, 0);
	}
}