label.switch {
  position: relative;
  display: inline-block;
  /* width: 56px; */
  width: 45px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border: 1px solid #2F3778;
}

.slider:before {
  position: absolute;
  height: 24px;
  width: 24px;
  left: 0px;
  bottom: 0px;
  background-color: #2F3778;
  color: white;
  -webkit-transition: .4s;
  transition: .4s;
  content: "\f00d";
  font-family: "Font Awesome\ 5 Free";
  font-weight: 600;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

input:checked+.slider {
  background-color: #2F3778;
}

input:checked+.slider:before {
  background-color: white;
  color: #2F3778;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2F3778;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  /* transform: translateX(26px); */
  transform: translateX(19px);
  content: "\f00c";
}

input:checked+#essential:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(19px);
  content: "\f023";
}

#essential {
  opacity: 0.5;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}