@use './theme.scss' as *;

.dot-loader {
  &__dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: wave 1.4s ease-in infinite;
    background: button-theme-color('primary-color');

    &:not(:last-child) {
      margin-right: 3px;
    }

    &:nth-child(2) {
      animation-delay: -0.9s;
    }

    &:nth-child(3) {
      animation-delay: -0.5s;
    }
  }
}

@keyframes wave {
  0%,
  60%,
  100% {
    transform: initial;
  }

  30% {
    transform: translateY(-3px);
  }
}
