.loading-button {
  position: relative;

  &__loader {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &--loading {
    cursor: wait !important;
    pointer-events: none;
    min-height: 40px;
    background-color: $green;
    border: 1px solid $green;

    &:focus {
      background-color: $green;
    }

    .loading-button__text {
      visibility: hidden;
    }

    .loading-button__loader {
      display: flex;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      align-items: center;
      justify-content: center;
    }
  }

  .loader-wrapper {
    .loader-spinner {
      width: 24px;
      height: 24px;

      .circular-loader {
        stroke-width: 8px;

        .loader-path {
          stroke: $white;
        }
      }
    }
  }
}
