body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #4e295b;
}

* {
  box-sizing: border-box;
}

.btn {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 24px;
}
.btn svg {
  fill: none;
  width: 20px;
  height: 26px;
  margin: 11px 0 0 14px;
  transform: translate3d(0, 0, 0);
}
.btn svg path {
  stroke: #fdd7d2;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
.btn .circle {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  height: 48px;
  width: 48px;
  border-radius: 24px;
  border: 3px solid #fdd7d2;
  transition: border 0.3s ease;
}
.btn .progress {
  position: absolute;
  display: block;
  bottom: -10px;
  left: 0;
  height: 3px;
  width: 48px;
  border-radius: 3px;
  background: rgba(253, 215, 210, 0.2);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.btn .progress:after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #ff9b8b;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 2s linear;
}
.btn .progress.active {
  opacity: 1;
}
.btn .progress.active::after {
  transform: scaleX(1);
}
.btn:hover .circle {
  border-color: #ff9b8b;
}
.btn:hover svg path {
  stroke: #ff9b8b;
}
.btn:active svg {
  transform: translateY(2px);
}
.btn.pending .circle {
  border-color: #ff9b8b;
  animation: animC 0.6s ease-out;
  animation-delay: 2.35s;
}
.btn.pending svg {
  animation: animS 0.6s ease-in;
  animation-delay: 2.15s;
}
.btn.pending svg path {
  stroke: #ff9b8b;
}

@keyframes animS {
  5% {
    transform: scale(0.9);
  }
  50% {
    transform: translateY(12px);
  }
  80% {
    transform: translateY(-4px);
  }
}
@keyframes animC {
  50% {
    transform: translateY(6px);
  }
  80% {
    transform: translateY(-4px);
  }
}