#fs_whatsapp-widget.fswa {
  --fswa-header: #0b6b5f;
  --fswa-button: #14c656;
  --fswa-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  font-family: inherit;
  line-height: 1.35;
  box-sizing: border-box;
}

#fs_whatsapp-widget *,
#fs_whatsapp-widget *::before,
#fs_whatsapp-widget *::after {
  box-sizing: border-box;
}

.fswa__window {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 40px));
  overflow: hidden;
  border-radius: 18px;
  background: #f3eee7;
  box-shadow: var(--fswa-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: right bottom;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .85, .25, 1), visibility 180ms ease;
}

.fswa--open .fswa__window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fswa__header {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 48px 18px 20px;
  background: var(--fswa-header);
  color: #fff;
}

.fswa__avatar {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--fswa-header);
  font-weight: 800;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.fswa__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.fswa__online-dot {
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #55e000;
  box-shadow: 0 0 0 2px var(--fswa-header);
}

.fswa--offline .fswa__online-dot {
  background: #a9afb7;
}

.fswa__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fswa__identity strong {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fswa__identity span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.fswa__close {
  position: absolute;
  top: 8px;
  right: 11px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font: 700 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.fswa__chat {
  min-height: 178px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f1ede6;
  background-image:
    radial-gradient(circle at 20px 18px, rgba(71, 66, 58, 0.055) 1px, transparent 1.4px),
    radial-gradient(circle at 52px 47px, rgba(71, 66, 58, 0.04) 1.2px, transparent 1.6px),
    linear-gradient(35deg, transparent 47%, rgba(71, 66, 58, 0.025) 48%, rgba(71, 66, 58, 0.025) 52%, transparent 53%);
  background-size: 72px 72px, 86px 86px, 64px 64px;
}

.fswa__time {
  height: 18px;
  color: rgba(91, 87, 80, 0.36);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.fswa__typing,
.fswa__message {
  align-self: flex-start;
  position: relative;
  margin-top: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  color: #3b3b3b;
}

.fswa__typing {
  min-width: 56px;
  height: 36px;
  padding: 0 14px;
  display: none;
  align-items: center;
  gap: 4px;
}

.fswa__typing::before,
.fswa__message::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #fff;
}

.fswa__typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9b9b9b;
  animation: fswa-dot 1s infinite ease-in-out;
}

.fswa__typing span:nth-child(2) {
  animation-delay: 120ms;
}

.fswa__typing span:nth-child(3) {
  animation-delay: 240ms;
}

.fswa__message {
  max-width: 92%;
  padding: 7px 13px 8px;
  font-size: 16px;
  line-height: 1.25;
}

.fswa__message.fswa__message--hidden {
  display: none;
}

.fswa__message.fswa__message--reveal {
  animation: fswa-message-in 280ms cubic-bezier(.2, .85, .25, 1) both;
}

.fswa__typing.fswa__typing--visible {
  display: flex;
  animation: fswa-message-in 180ms ease both;
}

.fswa__cta {
  margin-top: 30px;
  min-height: 48px;
  padding: 11px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  background: var(--fswa-button);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: transform 150ms ease, filter 150ms ease;
}

.fswa__cta:hover {
  color: #fff !important;
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.fswa__cta svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.fswa__bubble {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #4fce5d;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.fswa--offline .fswa__bubble {
  color: #8a929d;
}

.fswa__bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.22);
}

.fswa__bubble svg {
  width: 35px;
  height: 35px;
}

.fswa__notification {
  position: absolute;
  top: 3px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff1018;
  box-shadow: 0 0 0 2px #fff;
}

.fswa--offline .fswa__notification {
  background: #a9afb7;
}

@keyframes fswa-dot {
  0%, 60%, 100% {
    opacity: 0.4;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes fswa-message-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

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

@media (max-width: 480px) {
  #fs_whatsapp-widget.fswa {
    right: 16px;
    bottom: 16px;
  }

  .fswa__window {
    width: min(360px, calc(100vw - 32px));
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fswa__window,
  .fswa__bubble,
  .fswa__cta {
    transition: none;
  }

  .fswa__typing span,
  .fswa__typing.fswa__typing--visible,
  .fswa__message.fswa__message--reveal {
    animation: none;
  }
}
