.fab-wrapper {
  position: fixed;
  left: 50px;
  bottom: 50px;
}
.fab-checkbox {
  display: none;
}
.fab {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  right: auto;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #126ee2;
  border: 1px solid #0c50a7;
  border-bottom-left-radius: 6px;
  box-shadow: 0px 5px 20px #81a4f1;
  transition: all 0.3s ease;
  z-index: 1;
}
.fab:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}
.fab:hover {
  background: #2c87e8;
  box-shadow: 0px 5px 20px 5px #81a4f1;
}
.fab .fab-dots {
  position: absolute;
  height: 8px;
  width: 8px;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  transform: translateX(0%) translateY(-50%) rotate(0deg);
  opacity: 1;
  animation: blink 3s ease infinite;
  transition: all 0.3s ease;
}
.fab .fab-dots-1 {
  left: 15px;
  animation-delay: 0s;
}
.fab .fab-dots-2 {
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(0deg);
  animation-delay: 0.4s;
}
.fab .fab-dots-3 {
  right: 15px;
  animation-delay: 0.8s;
}
.fab-checkbox:checked ~ .fab:before {
  width: 90%;
  height: 90%;
  left: 5%;
  top: 5%;
  background-color: rgba(255, 255, 255, 0.2);
}
.fab-checkbox:checked ~ .fab .fab-dots {
  height: 6px;
  animation: none;
}
.fab-checkbox:checked ~ .fab .fab-dots-1 {
  width: 32px;
  border-radius: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.fab-checkbox:checked ~ .fab .fab-dots-3 {
  width: 32px;
  border-radius: 10px;
  right: 50%;
  transform: translateX(50%) translateY(-50%) rotate(-45deg);
}
.fab-checkbox:checked ~ .fab-wheel {
  transform: scale(1);
}
.fab-checkbox:checked ~ .fab-wheel .fab-action {
  opacity: 1;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.fab-wheel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: auto;
  border: 1px solid transparent;
  width: 7rem;
  height: 7rem;
  transition: all 0.3s ease;
  transform-origin: bottom left;
  transform: scale(0);
}
.fab-wheel a {
  text-decoration: none !important;
  cursor: pointer;
}
.fab-wheel .fab-action {
  position: absolute;
  background: #0f1941;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0.1rem 1rem rgba(24, 66, 154, 0.82);
  transition: all 1s ease;
  opacity: 0;
}
.fab-wheel .fab-action:hover {
  background-color: #f16100;
}
.fab-wheel .fab-action-1 {
  top: auto;
  right: auto;
  bottom: 4rem;
  left: -0.7rem;
}
.fab-wheel .fab-action-2 {
  top: auto;
  right: auto;
  bottom: 2.7rem;
  left: 3rem;
}
.fab-wheel .fab-action-3 {
  top: auto;
  right: auto;
  left: 4rem;
  bottom: -1rem;
}
@media only screen and (max-width: 767px) {
  .fab-wrapper {
    left: 30px;
    bottom: 80px;
  }
  .fab {
    width: 2.5rem;
    height: 2.5rem;
  }
  .fab .fab-dots {
    height: 5px;
    width: 5px;
  }
  .fab .fab-dots-1 {
    left: 10px;
  }
  .fab .fab-dots-2 {
    left: 50%;
  }
  .fab .fab-dots-3 {
    right: 10px;
  }
  .fab-wheel .fab-action {
    width: 2rem;
    height: 2rem;
  }
  .fab-wheel .fab-action-1 {
    top: auto;
    right: auto;
    bottom: 2.5rem;
    left: -0.7rem;
  }
  .fab-wheel .fab-action-2 {
    top: auto;
    right: auto;
    bottom: 1.2rem;
    left: 1.5rem;
  }
  .fab-wheel .fab-action-3 {
    top: auto;
    right: auto;
    left: 2.3rem;
    bottom: -1.2rem;
  }
  .fab-wheel .fab-action i {
    font-size: 14px;
  }
  .fab-checkbox:checked ~ .fab .fab-dots {
    height: 4px;
  }
  .fab-checkbox:checked ~ .fab .fab-dots-1 {
    width: 20px;
  }
  .fab-checkbox:checked ~ .fab .fab-dots-3 {
    width: 20px;
  }
}
