.button {
  align-items: center;
  background: var(--button-background);
  border: none;
  border-radius: 8px;
  color: var(--button-color);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 500;
  justify-content: center;
  line-height: 20px;
  max-width: 400px;
  min-height: 60px;
  min-width: 250px;
  padding: 12px 16px;
  width: 100%;
}

.button__spinner {
  animation: spinner-rotate 2s linear infinite;
  height: 50px;
  left: 50%;
  margin: -25px 0 0 -25px;
  position: absolute;
  top: 50%;
  width: 50px;
  z-index: 2;
}

.button__spinner-path {
  stroke: #93bfec;
  stroke-linecap: round;
  animation: spinner-dash 1.5s ease-in-out infinite;
}

.button:active:not(.button_disabled) {
  animation-duration: 0.2s;
  animation-iteration-count: 1;
  animation-name: button-scale;
  background: var(--button-active-bg);
}

.button_disabled {
  background: var(--light-silver);
  cursor: not-allowed;
}

.button_active {
  background: var(--strong-blue);
  color: var(--button-active);
}

@keyframes button-scale {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes spinner-rotate {
  100% {
    transform: rotate(1turn);
  }
}

@keyframes spinner-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}
