.custom-quantity-selector {
  .quantity-input {
    &.loading {
      border: 2px solid $light;
      animation: loading-product-quantity 1s cubic-bezier(0.4, 0, 1, 1) infinite;
    }
  }
}

@keyframes loading-product-quantity {
  25% {
    border-color: $primary transparent transparent transparent;
  }
  50% {
    border-color: transparent $primary transparent transparent;
  }
  75% {
    border-color: transparent transparent $primary transparent;
  }
  100% {
    border-color: transparent transparent transparent $primary;
  }
}
