.pix-button__icon {
  width: 1.25rem;
  height: 1.25rem;

  &--before {
    margin-right: var(--pix-spacing-2x);
  }

  &--after {
    margin-left: var(--pix-spacing-2x);
  }
}

.pix-button .loader {
  position: absolute;

  &__not-visible-text {
    visibility: hidden;
  }
}

.loader > div {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--pix-neutral-0);
  border-radius: 100%;
  animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.loader--white > div {
  background-color: var(--pix-neutral-0);
}

.loader--grey > div {
  background-color: var(--pix-neutral-800);
}

.loader .bounce1 {
  animation-delay: -0.32s;
}

.loader .bounce2 {
  animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}
