.cswac {
  --cswac-size: 60px;
  --cswac-offset: 22px;
  position: fixed;
  z-index: 1045;
  bottom: max(var(--cswac-offset), env(safe-area-inset-bottom));
  pointer-events: none;
}

.cswac--right {
  right: max(var(--cswac-offset), env(safe-area-inset-right));
}

.cswac--left {
  left: max(var(--cswac-offset), env(safe-area-inset-left));
}

.cswac__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cswac-size);
  height: var(--cswac-size);
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(16, 36, 24, 0.24), 0 4px 10px rgba(16, 36, 24, 0.18);
  pointer-events: auto;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cswac__button::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(37, 211, 102, 0.42);
  border-radius: 50%;
  animation: cswac-pulse 2.4s ease-out infinite;
}

.cswac__button:hover,
.cswac__button:focus {
  color: #fff;
  background: #1ebe5d;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(16, 36, 24, 0.28), 0 6px 14px rgba(16, 36, 24, 0.2);
}

.cswac__button:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.35);
  outline-offset: 4px;
}

.cswac__icon {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.cswac__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body#checkout .cswac {
  bottom: max(82px, env(safe-area-inset-bottom));
}

@keyframes cswac-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.92);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@media (max-width: 575.98px) {
  .cswac {
    --cswac-size: 56px;
    --cswac-offset: 16px;
  }

  .cswac__icon {
    width: 31px;
    height: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cswac__button,
  .cswac__button::before {
    animation: none;
    transition: none;
  }
}
