.loader {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, transparent 40%, #069356);
  animation: animate 2s linear infinite;

  &:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    z-index: 1000;
  }

  &:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, transparent 40%, #069356);
    border-radius: 50%;
    z-index: 1;
    filter: blur(30px);
  }
}


@keyframes animate {
  0% {
    transform: rotate(0deg);
    //filter: hue-rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
    //filter: hue-rotate(360deg);
  }
}


// PSpin Style
.p-spin {
  width: 24px;
  height: 24px;

  #pSpinSvg {
    animation: 2s linear infinite svg-animation;
    max-width: 24px;

    circle {
      animation: 1.4s ease-in-out infinite both circle-animation;
      display: block;
      fill: transparent;
      stroke: #069356;
      stroke-linecap: round;
      stroke-dasharray: 283;
      stroke-dashoffset: 280;
      stroke-width: 10px;
      transform-origin: 50% 50%;
    }
  }
}

@keyframes svg-animation {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg)
  }
}

@keyframes circle-animation {
  0%,
  25% {
    stroke-dashoffset: 280;
    transform: rotate(0);
  }

  50%,
  75% {
    stroke-dashoffset: 75;
    transform: rotate(45deg);
  }

  100% {
    stroke-dashoffset: 280;
    transform: rotate(360deg);
  }
}





