.mmo-whatsapp {
  position: fixed;
  display: block;
  width: max-content;
  max-width: calc(100vw - 20px);
  bottom: calc(var(--mmo-wa-bottom-offset, 90px) + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  user-select: none;
  -webkit-user-select: none;
}

.mmo-whatsapp--right {
  right: var(--mmo-wa-side-offset, 20px);
  left: auto;
}

.mmo-whatsapp--left {
  right: auto;
  left: var(--mmo-wa-side-offset, 20px);
}

.mmo-whatsapp__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  color: #1f2933;
  text-decoration: none !important;
  outline: none;
}

.mmo-whatsapp__label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 7px 24px rgba(31, 41, 51, 0.14);
  color: #243029;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mmo-whatsapp__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 26px rgba(15, 94, 47, 0.28);
  color: #fff;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.mmo-whatsapp[data-mmo-draggable="1"] .mmo-whatsapp__button {
  cursor: grab;
  touch-action: none;
}

.mmo-whatsapp.is-dragging,
.mmo-whatsapp.is-dragging * {
  cursor: grabbing !important;
}

.mmo-whatsapp.is-dragging .mmo-whatsapp__button,
.mmo-whatsapp.is-dragging .mmo-whatsapp__label {
  transition: none;
}

.mmo-whatsapp__icon {
  display: block;
  width: 31px;
  height: 31px;
}

.mmo-whatsapp__link:hover,
.mmo-whatsapp__link:focus {
  color: #1f2933;
}

.mmo-whatsapp__link:hover .mmo-whatsapp__button,
.mmo-whatsapp__link:focus-visible .mmo-whatsapp__button {
  transform: translateY(-2px);
  background: #20bd5a;
  box-shadow: 0 11px 30px rgba(15, 94, 47, 0.34);
}

.mmo-whatsapp__link:hover .mmo-whatsapp__label,
.mmo-whatsapp__link:focus-visible .mmo-whatsapp__label {
  transform: translateY(-1px);
  box-shadow: 0 9px 28px rgba(31, 41, 51, 0.18);
}

.mmo-whatsapp__link:focus-visible .mmo-whatsapp__button {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .mmo-whatsapp {
    bottom: calc(var(--mmo-wa-bottom-offset, 90px) + env(safe-area-inset-bottom, 0px));
  }

  .mmo-whatsapp__label {
    display: none;
  }

  .mmo-whatsapp__button {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .mmo-whatsapp__icon {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mmo-whatsapp__label,
  .mmo-whatsapp__button {
    transition: none;
  }
}
