.fb-check {
  position: relative;
  cursor: pointer;
  height: 30px;
  line-height: 30px;
  display: block;
  margin-bottom: 2px;
  margin-right: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.check-prefix {
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

.fb-check span {
  display: block;
  padding-left: 35px;
  height: 30px;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-check span:before,
.fb-check span:after {
  content: "";
  position: absolute;
  top: 50%;
  transition: 0.3s;
}

.fb-check span:before {
  left: 0;
  height: 12px;
  margin-top: -6px;
  width: 30px;
  border-radius: 6px;
  background: #ededed;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.check-span:after {
  left: 1px;
  height: 16px;
  width: 16px;
  margin-top: -8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.fb-check input:checked + span:before {
  background-color: #79c142;
}

.fb-check input:checked + span:after {
  left: 14px;
  background-color: #fff;
}
