input[switch] {
  display: none;
}

input[switch]+label {
  font-size: 1em;
  line-height: 1;
  width: 80px;
  height: 24px;
  background-color: #dee2e6;
  background-image: none;
  border-radius: 2rem;
  padding: 0.16667rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  position: relative;
  font-weight: 500;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  margin: 0;
}

input[switch]+label:before {
  color: var(--bs-primary);
  content: attr(data-off-label);
  display: block;
  font-family: inherit;
  font-weight: 500;
  font-size: 12px;
  line-height: 21px;
  position: absolute;
  left: 1px;
  margin: 3px;
  top: -2px;
  text-align: center;
  min-width: 1.66667rem;
  overflow: hidden;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

input[switch]+label:after {
  content: "";
  position: absolute;
  right: 3px;
  background-color: var(--bs-primary);
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 2rem;
  height: 20px;
  width: 20px;
  top: 2px;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

input[switch]:checked+label {
  background-color: var(--bs-primary);
}

input[switch]:checked+label {
  background-color: var(--bs-primary);
}

input[switch]:checked+label:before {
  color: #fff;
  content: attr(data-on-label);
  left: auto;
  right: 3px;
}

input[switch]:checked+label:after {
  right: 57px;
  background-color: #fff;
}

input[switch=bool]+label {
  background-color: #ec536c;
}

input[switch=bool]+label:before,
input[switch=bool]:checked+label:before,
input[switch=default]:checked+label:before {
  color: #fff;
}

input[switch=bool]:checked+label {
  background-color: #58db83;
}

input[switch=default]:checked+label {
  background-color: #a2a2a2;
}

input[switch=primary]:checked+label {
  background-color: var(--bs-primary);
}

input[switch=success]:checked+label {
  background-color: #58db83;
}

input[switch=info]:checked+label {
  background-color: #0dcaf0;
}

input[switch=warning]:checked+label {
  background-color: #f5b225;
}

input[switch=danger]:checked+label {
  background-color: #ec536c;
}

input[switch=dark]:checked+label {
  background-color: #eff2f7;
}

.square-switch {
  margin-left: 7px;
}

.square-switch input[switch]+label,
.square-switch input[switch]+label:after {
  border-radius: 4px;
}