
.cr-simple-loader {
  @include clearfix();
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -35px;

  &__spinner {
    margin: 22px auto;
    width: 70px;
    text-align: center;
  }

  &__spinner-item {
    display: inline-block;
    margin: 0 2px;
    width: 16px;
    height: 16px;
    background-color: $brand-primary;

    border-radius: 100%;
    -webkit-animation: sk-bouncedelay 1.2s infinite ease-in-out both;
    animation: sk-bouncedelay 1.2s infinite ease-in-out both;

    &--bounce1 {
      -webkit-animation-delay: -0.32s;
      animation-delay: -0.32s;
    }

    &--bounce2 {
      -webkit-animation-delay: -0.16s;
      animation-delay: -0.16s;
      background-color: $brand-secondary;
    }

    &--bounce3 {
      background-color: $brand-tertiary;
    }
  }
}

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

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