/*! whatsbutton v1.0.1 | MIT License | https://github.com/mavisland/whatsbutton */
.whatsbutton {
  display: block;
  font-size: 19px;
  font-family: Livvic Medium;
  line-height: 20px;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.whatsbutton *,
.whatsbutton *:before,
.whatsbutton *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.whatsbutton .wb-toggle-button {
  background-color: #25D366;
  border-radius: 360px;
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  color: #fff;
  cursor: pointer;
  display: block;
  height: 56px;
  padding: 10px;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56px;
  -webkit-animation-name: toggleButton;
  animation-name: toggleButton;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

/* Ripple effect */
.wb-ripple-effect {
  position: absolute;
  border-radius: 360px;
  background-color: #25D366;
  opacity: 0.5;
  width: 56px;
  height: 56px;
  animation: ripple 1.5s infinite;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.whatsbutton .wb-toggle-button:before, .whatsbutton .wb-toggle-button:after {
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  content: "";
  display: block;
  height: 36px;
  position: absolute;
  left: 10px;
  top: 10px;
  -webkit-transition: opacity 160ms ease-in-out, -webkit-transform 160ms ease-in-out;
  transition: opacity 160ms ease-in-out, -webkit-transform 160ms ease-in-out;
  transition: opacity 160ms ease-in-out, transform 160ms ease-in-out;
  transition: opacity 160ms ease-in-out, transform 160ms ease-in-out, -webkit-transform 160ms ease-in-out;
  width: 36px;
}

.whatsbutton .wb-toggle-button:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z'/%3E%3C/svg%3E");
  -webkit-transform: rotate(0);
  transform: rotate(0);
}

.whatsbutton .wb-toggle-button:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  opacity: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.whatsbutton .wb-unread-badge {
  background-color: #FA3E3E;
  border-radius: 20px;
  color: #FFFFFF;
  display: none;
  font-size: 12px;
  height: 20px;
  line-height: 20px;
  position: absolute;
  right: -3px;
  top: -3px;
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 20px;
}

.whatsbutton .wb-chat {
  background-color: #ECE5DD;
  background-image: url('https://www.wixily.com/myimages/whatsappbg.webp');
  background-size: cover; /* Adjust to fit the container */
  background-repeat: no-repeat;
  background-position: center; /* Optional: centers the image */
  border-radius: 10px;
  -webkit-box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  -webkit-transform: translateY(50px);
  transform: translateY(50px);
  -webkit-transition: opacity 160ms ease-in-out, -webkit-transform 160ms ease-in-out;
  transition: opacity 160ms ease-in-out, -webkit-transform 160ms ease-in-out;
  transition: transform 160ms ease-in-out, opacity 160ms ease-in-out;
  transition: transform 160ms ease-in-out, opacity 160ms ease-in-out, -webkit-transform 160ms ease-in-out;
  width: 280px;
}

.whatsbutton .wb-chat-header {
  background-color: #128C7E;
  color: #FFFFFF;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 17px;
  height: 56px;
  line-height: 22px;
  padding: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100%;
}

.whatsbutton .wb-user-object {
  height: 36px;
  padding-left: 5px;
  padding-right: 5px;
  width: 46px;
}

.whatsbutton .wb-user-avatar {
  border-radius: 50%;
  -webkit-box-shadow: 0 0px 0 rgba(255, 255, 255, 0.1);
  box-shadow: 0 0px 0 rgba(255, 255, 255, 0.1);
  display: block;
  width: 100%;
}

.whatsbutton .wb-user-body {
  color: #FFFFFF !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-flow: column wrap;
  flex-flow: column wrap;
  padding-left: 10px;
}

.whatsbutton .wb-user-name,
.whatsbutton .wb-user-status {
  color: currentColor !important;
}

.whatsbutton .wb-user-status {
  font-size: 12px;
  font-style: italic;
  line-height: 1.2;
}

.whatsbutton .wb-chat-body {
   padding: 20px 15px 25px 15px;
}

.whatsbutton .wb-message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.whatsbutton .wb-message-list-item {
  background-color: #FFFFFF;
  border-radius: 15px;
  border-top-left-radius: 0;
  /* -webkit-box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);*/
  color: #000;
  font-size: 78%;
  padding: 10px;
  position: relative;
  width: 100%;
}

.waving-hand {
    animation-name: wave-animation;
    animation-duration: 2.5s;
    animation-iteration-count: infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}
  
  @keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
    15% { transform: rotate(14.0deg) }  /* The following five values can be played with to make the waving more or less extreme */
    30% { transform: rotate(-8.0deg) }
    40% { transform: rotate(14.0deg) }
    50% { transform: rotate(-4.0deg) }
    60% { transform: rotate(10.0deg) }
    70% { transform: rotate( 0.0deg) }  /* Reset for the last half to pause */
   100% { transform: rotate( 0.0deg) }
}

/* Add time styling */
.whatsbutton .wb-message-time {
    text-align: right;
    margin-top: 1px;
    font-size: 11px;
    line-height: 16px;
    color: rgba(17, 17, 17, 0.3);
    margin-right: 2px;
    margin-bottom: -5px;
    font-family:Arial, Helvetica, sans-serif;
    font-weight: 700;
}

/* .whatsbutton .wb-message-list-item:before {
  border-left: 15px solid transparent;
  border-top: 15px solid #fff;
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
} */

.whatsbutton .wb-message-list-item + .wb-message-list-item {
  margin-top: 1rem;
}

.whatsbutton .wb-chat-footer {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 18px 12px 16px 14px;
    background-color: #F5F5F5;
}
  
/* Update message input styles */
.whatsbutton .wb-message-input {
    display: inline-block;
    width: 82%;
    padding: 10px 0 10px 15px;
    font-family: Livvic Medium;
    font-weight: 400;
    color: #377D6A;
    background: #fff;
    border: 0;
    border-radius: 8px;
    outline: 0;
    text-indent: 60px;
    transition: all .3s ease-in-out;
}
  
/* Placeholder styles */
.whatsbutton .wb-message-input::-webkit-input-placeholder {
    color: #efefef;
    text-indent: 0;
    font-weight: 300;
}
  
/* Label styles */
.whatsbutton .wb-message-input + label {
    display: inline-block;
    position: absolute;
    top: px;
    left: 8;
    padding: 5px 15px;
    color: #032429;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(19, 74, 70, 0);
    transition: all .3s ease-in-out;
    border-radius: 3px;
    background: rgba(122, 184, 147, 0);
    pointer-events: none; /* Ensures clicks pass through to input */
}
  
/* Label arrow */
.whatsbutton .wb-message-input + label:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 100%;
    left: 50%;
    margin-left: -3px;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid rgba(122, 184, 147, 0);
    transition: all .3s ease-in-out;
}
  
/* Focus states */
  .whatsbutton .wb-message-input:focus,
  .whatsbutton .wb-message-input:active {
    color: #377D6A;
    text-indent: 0;
    background: #fff;
}
  
.whatsbutton .wb-message-input:focus::-webkit-input-placeholder,
.whatsbutton .wb-message-input:active::-webkit-input-placeholder {
    color: #aaa;
}
  
.whatsbutton .wb-message-input:focus + label,
.whatsbutton .wb-message-input:active + label {
    color: #fff;
    font-weight: 700;
    background: #128c7e;
    transform: translateY(-40px);
}
  
.whatsbutton .wb-message-input:focus + label:after,
.whatsbutton .wb-message-input:active + label:after {
    border-top: 4px solid #128c7e;
}
  

.whatsbutton .wb-send-button {
  background-color: #128C7E;
  border-radius: 12%;
  cursor: pointer;
  display: block;
  height: 36px;
  position: relative;
  -webkit-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
  width: 36px;
}

.whatsbutton .wb-send-button:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  content: "";
  display: block;
  height: 24px;
  position: absolute;
  left: 6px;
  top: 6px;
  width: 24px;
}

.whatsbutton .wb-send-button:hover {
  background-color: #075E54;
}

.whatsbutton.is-left {
  left: 24px;
}

.whatsbutton.is-left,
.whatsbutton.is-left .wb-toggle-button,
.whatsbutton.is-left .wb-chat {
  right: auto;
}

.whatsbutton.is-left .wb-toggle-button,
.whatsbutton.is-left .wb-chat {
  left: 0;
}

.whatsbutton.is-active .wb-toggle-button:before, .whatsbutton.is-open .wb-toggle-button:before {
  opacity: 0;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.whatsbutton.is-active .wb-toggle-button:after, .whatsbutton.is-open .wb-toggle-button:after {
  opacity: 1;
  -webkit-transform: rotate(0);
  transform: rotate(0);
}

.whatsbutton.is-active .wb-chat, .whatsbutton.is-open .wb-chat {
  opacity: 1;
  pointer-events: all;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

@-webkit-keyframes toggleButton {
  0% {
    opacity: 0;
    -webkit-transform: rotate(90deg) scale(0.1);
    transform: rotate(90deg) scale(0.1);
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
  }
}

@keyframes toggleButton {
  0% {
    opacity: 0;
    -webkit-transform: rotate(90deg) scale(0.1);
    transform: rotate(90deg) scale(0.1);
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
  }
}
