.loading-spinner {
  margin: 120px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: $core-white;
  width: 48px;
  height: 48px;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;

  &__ring {
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    border: 4px solid $core-vibrant-blue;
    
    div {
      box-sizing: border-box;
      display: block;
      position: absolute;
      width: 32px;
      height: 32px;
      margin: -4px;
      border: 4px solid $core-white;
      border-radius: 50%;
      animation: ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
      border-color: $ui-vibrant-blue-25 transparent transparent transparent;
    }
  }
  
  &__ring-for-button {
    margin-right: $pad-small;
    width: 16px;
    height: 16px;
    border-width: 3px;
    border-color: rgba(255,255,255,0.25);
    
    div {
      margin: -3px;
      width: 16px;
      height: 16px;
      border-width: 3px;
      border-color: $core-white transparent transparent transparent;
    }
  }
  
  div:nth-child(1) {
    animation-delay: -0.45s;
  }

  div:nth-child(2) {
    animation-delay: -0.3s;
  }
  
  div:nth-child(3) {
    animation-delay: -0.15s;
  }
}

@keyframes ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
