@charset "utf-8";
/* CSS Document */

.button-cover {
  background-color: #f2f5f7;
  border-radius: 4px;
}

.button-cover:before {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.button-cover,
.knobs,
.layer {
}

.button-cover .button {
  position: relative;
  width: 32px;
  height: 17px;
  overflow: hidden;
  background-color: #e6e6e6;
}

.button-cover .button.round,
.button-cover .button.round .layer {
  border-radius: 22px;
}

.button-cover .button.box {
  border-radius: 2px;
}

.button-cover .button .checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #ebf7fc;
  transition: 0.3s ease all;
  z-index: 1;
}

div.button .knobs:before,
div.button .knobs:after {
  content: "YES";
  position: absolute;
  top: 2px;
  left: -32px;
  width: 25px;
  height: 15px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3em;
  padding: 9px 3px;
  background-color: #30c586;
  border-radius: 50%;
  transition: 0.3s ease all;
}

div.button .knobs:before {
  content: "YES";
}

div.button .knobs:after {
  content: "NO";
}

div.button .knobs:after {
  right: 2px;
  left: auto;
  background-color: #f44336;
}

div.button .checkbox:checked + .knobs:before {
  left: 2px;
}

div.button .checkbox:checked + .knobs:after {
  right: -32px;
}

div.button .checkbox:checked ~ .layer {
  background-color: #fcebeb;
}
