.label-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-container {
  position: relative;
  width: 74px;
  height: 36px;
  border-radius: $input-border-radius;

  .knobs, .layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .layer {
    border-radius: 100px;
    width: 100%;
    transition: 0.3s ease all;
    z-index: 1;
    background-color: $color-1;
  }

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

  .knobs {
    z-index: 2;
  }

  .knobs:before {
    content: 'OFF';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 10px;
    color: $color-1;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 9px 4px;
    background-color: $color-2;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
  }

  .checkbox:checked + .knobs:before {
    content: 'ON';
    left: 42px;
    background-color: $color-1;
    color: $color-2;
  }

  .checkbox:checked ~ .layer {
    background-color: $color-2;
  }

  .knobs, .knobs:before, .layer {
    transition: 0.3s ease all;
  }
}
