.switch {
  display: flex;
  align-items: center;
}


.sliderlabelplacementtop
{
  align-self:flex-end;
}
.labelplacementleft
{
  flex-direction:row-reverse;
}
.labelplacementtop
{
  flex-direction:column-reverse;
  align-items: flex-start;
}
.labelplacementbottom
{
  flex-direction:column;
  align-items: flex-start;
}
.small {
  width: 24px;
  height: 12px;
}
.medium {
  width: 30px;
  height: 15px;
}
.large {
  width: 38px;
  height: 18px;
}
.small.slider:before {
  height: 10px;
  width: 10px;
}
.medium.slider:before {
  height: 13px;
  width: 13px;
}
.large.slider:before {
  height: 16px;
  width: 16px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  display:inline-flex;
  cursor: pointer;
  /*background-color: #ccc;*/
  background-color:var(--lib_primary_text_color_gray);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  margin: 0 10px ;
}
.labelplacementbottom .slider,.labelplacementtop .slider{
  margin: 0;
}
.labelplacementtop .slider{
  margin-top: 10px;
}
.labelplacementbottom .slider{
  margin-bottom: 10px;
  margin-top: 2px;
}

.slider:before {
  /*align-self: flex-end; */
  content: "";
  /*background-color: #fff; */
  background-color:var(--lib_primary_text_color_whiteness);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  padding:2px;
  margin-top:-1px;
  box-shadow: 0 1px 4px 0 #777;
}

input:checked + .primary.slider {
  /*background-color: #2196f3;*/
  background-color: var(--lib_primary_text_color_info);
}
input:checked + .secondary.slider {
 /* background-color: green; */
  background-color: var(--lib_primary_text_color_success);
}

input:focus + .slider {
  /*box-shadow: 0 0 1px #2196f3; */
  box-shadow: 0 0 1px var(--lib_primary_text_color_success);

}
input:checked + .small.slider:before {
  -webkit-transform: translateX(12px);
  -ms-transform: translateX(12px);
  transform: translateX(12px);
}
input:checked + .medium.slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}
input:checked + .large.slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
.disabled{
  opacity: 0.5;
  cursor: default;
}
