.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input, .switch-check input {
  opacity: 0;
  width: 0;
  height: 0;
}
td.switch-text {
  padding-right: 0 !important;
  vertical-align: middle;
  text-align: right;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  border-radius: 12px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch .slider:before {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 12px;
  left: 4px;
  bottom: 3px;
  background-color: var(--white);
  -webkit-transition: .4s;
  transition: .4s;
}
.switch .slider:after, .switch-check .check:after{
  display: none;
  position: absolute;
  color: var(--dark-color);
  content: "\f023";
  font: normal normal normal 10px/1 FontAwesome;
}
.switch .slider:after{
  left: 8px;
  top: 6px;
}
.switch-check .check:after{
  right: 0;
  bottom: 0;
}
.switch-check.circle .check:after{
  left:7px;
  top:6px;
}
input:checked + .slider:after{
  left: 29px;
}
input:disabled + .slider:after, input:disabled + .check:after{
  display: block;
}

input:checked + .slider {
  background-color: var(--light-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--light-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.switch-check {
  width: 20px;
  height: 20px;
  position: relative;
}
.switch-caption {
  flex: 1;
  user-select: none;
}
.switch-check .check {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 2px;
}

input:checked + .check {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' focusable='false' version='1.1' viewBox='0 0 24 24' style='background:%2300ad40'%3E%3Cpath d='M4.1,12.7 9,17.6 20.3,6.3' fill='none' stroke='white' stroke-width='2'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  border: 2px solid var(--main-color);
}
.circle input + .check {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' focusable='false' version='1.1' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11'%0Afill='%23f7f7f7' stroke='%23cccccc' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  background-color: transparent;
  border: none;
}
.circle input:checked + .check {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' focusable='false' version='1.1' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11'%0Afill='%23f7f7f7' stroke='%2300ad40' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='7'%0Afill='%2300ad40' stroke='%2300ad40'/%3E%3C/svg%3E");
  background-size: cover;
  background-color: transparent;
  border: none;
}
.switch-container {
  display: inline-flex;
  padding-right: 2px;
}
.switch-container label ~ .switch-caption {
  margin-left: 0.5em;
}
.switch-container.as-button {
  background: var(--main-color);
  color: var(--white);
  padding: 3px 12px 3px 4px;
  border-radius: 12px;
  margin: -3px 0;
  cursor: pointer;
}