/* MAIN WRAPPER */
.wfwbcp-wrapper {
  position: fixed;
  z-index: 999999;
}

/* Position Handling */
.wfwbcp-pos-right {
  right: 20px;
}

.wfwbcp-pos-left {
  left: 20px;
}

/* FLOATING BUTTON */
.wfwbcp-button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #25D366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Floating button icon */
.wfwbcp-button-icon {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

/* Notification Dot */
/* .wfwbcp-profile-img img::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #E53935;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    right: 0px;
    z-index: 88;
} */

/* CHATBOX */
.wfwbcp-chatbox {
  position: absolute;
  /* right: 0; */
  bottom: 70px;
  width: 350px;
  max-width: 95vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  display: none;
  overflow: hidden;
  flex-direction: column;
  font-family: inherit;
  left: auto;
  min-height: 400px;
  /* display: flex; */
  flex-direction: column;
  justify-content: space-between;
}

/* //  Breathing Animation  // */
.wfwbcp-breathe {
  animation: wfwbcp-breathe 2s infinite ease-in-out;
}

@keyframes wfwbcp-breathe {
  0% {
    box-shadow: 0 0 0 6px var(--wfwbcp-breath-color);
  }

  70% {
    box-shadow: 0 0 0 25px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Visible */
.wfwbcp-chatbox.wfwbcp-open {
  display: flex;
  animation: wfwbcpSlideUp .25s ease-out;
}

@keyframes wfwbcpSlideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* HEADER */
.wfwbcp-chat-header {
  background: #075E54;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 24px 20px;
}

/* Profile Image */
.wfwbcp-profile-img img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  position: relative;
}

.wfwbcp-profile-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid white;
  line-height: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* Online Dot */
.wfwbcp-profile-img img::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #4CAF50;
  border-radius: 50%;
  position: absolute;
}

/* Info Container */
.wfwbcp-profile-info {
  margin-left: 10px;
  flex: 1;
}

.wfwbcp-profile-name {
  font-size: 16px;
  font-weight: 600;
}

.wfwbcp-profile-status {
  font-size: 13px;
  opacity: .9;
  font-family: inherit;
}

/* Close Button */
.wfwbcp-close {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 22px !important;
  cursor: pointer !important;
}

/* BODY with WA background */
.wfwbcp-chat-body {
  /* background: url('https://elfsight.com/assets/chats/patterns/whatsapp.png'); */
  background-size: cover;
  /* background-color: rgba(0, 0, 0, 0.5); */
  background-position: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Chat bubble */
.wfwbcp-msg-bubble {
  background: #fff;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 0 10px 10px 10px;
  font-size: 14px;
  margin-bottom: 6px;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  font-family: inherit;
  font-weight: 500;
}

/* Bubble name */
.wfwbcp-msg-bubble strong {
  color: #075E54;
  font-size: 13px;
}

/* Bottom timestamp */
.wfwbcp-msg-time {
  font-size: 11px;
  color: #757575;
  text-align: right;
  margin-top: 3px;
}

/* FOOTER */
.wfwbcp-chat-footer {
  padding: 10px;
  background: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
}

/* CTA Button */
.wfwbcp-send-btn {
  background: #25D366;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
  font-size: 15px;
  transition: .2s;
  display: block;
  text-decoration: none;
  /* justify-content: center; */
}

.wfwbcp-send-btn:hover {
  background: #1eb65d;
}

.wfwbcp-msg-bubble:before {
  position: absolute;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAmCAMAAADp2asXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACQUExURUxpccPDw9ra2m9vbwAAAAAAADExMf///wAAABoaGk9PT7q6uqurqwsLCycnJz4+PtDQ0JycnIyMjPf3915eXvz8/E9PT/39/RMTE4CAgAAAAJqamv////////r6+u/v7yUlJeXl5f///5ycnOXl5XNzc/Hx8f///xUVFf///+zs7P///+bm5gAAAM7Ozv///2fVensAAAAvdFJOUwCow1cBCCnqAhNAnY0WIDW2f2/hSeo99g1lBYT87vDXG8/6d8oL4sgM5szrkgl660OiZwAAAHRJREFUKM/ty7cSggAABNFVUQFzwizmjPz/39k4YuFWtm55bw7eHR6ny63+alnswT3/rIDzUSC7CrAziPYCJCsB+gbVkgDtVIDh+DsE9OTBpCtAbSBAZSEQNgWIygJ0RgJMDWYNAdYbAeKtAHODlkHIv997AkLqIVOXVU84AAAAAElFTkSuQmCC);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  top: 0px;
  left: -12px;
  width: 12px;
  height: 19px;
}

/* Typing bubble container */
.wfwbcp-typing-bubble {
  background: #fff;
  width: 52.5px;
  height: 32px;
  /* padding: 10px; */
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .10);
  margin-bottom: 8px;
  gap: 5px;
}

/* Typing dots */
.wfwbcp-typing-bubble span {
  width: 5px;
  height: 5px;
  background: #aaa;
  display: block;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.wfwbcp-typing-bubble span:nth-child(1) {
  animation-delay: 0s;
}

.wfwbcp-typing-bubble span:nth-child(2) {
  animation-delay: 0.2s;
}

.wfwbcp-typing-bubble span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Keyframes */
@keyframes typing {
  0% {
    transform: translateY(0);
    opacity: .4;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: .4;
  }
}

.wfwbcp-wrapper.wfwbcp-pos-right .wfwbcp-chatbox {
  right: 0;
  left: auto;
}

/* When positioned Left */
.wfwbcp-wrapper.wfwbcp-pos-left .wfwbcp-chatbox {
  left: 0;
  right: auto;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .wfwbcp-chatbox {
    width: 92vw;
  }
}