$white: #FFFFFF;
$black: #111111;

$blue: #2C86CD;
$blue-hover: #2776B4;
$blue-pressed: #21659A;
$grey: #7F7F7F;
$grey-light: #BFBFBF;

.block {
  .title {
    font-weight: bold;
  }
  .options {
    padding-top: 10px;

    .option {
      margin-bottom: 10px;
      display: flex;
      column-gap: 12px;
      align-items: center;

      input {
        margin: 0;
      }

      input[type="checkbox"]:checked,
      input[type="checkbox"]:not(:checked){
        position: absolute;
        left: -9999px;

      }

      input[type="checkbox"]:checked + label,
      input[type="checkbox"]:not(:checked) + label {
        display: inline-block;
        position: relative;
        padding-left: 30px;
        line-height: 20px;
        cursor: pointer;

      }

      input[type="checkbox"]:checked + label:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 18px;
        height: 18px;
        border: 1px solid $blue;
        background-color: $blue;

      }

      input[type="checkbox"]:checked + label:hover:before {
        border-color: $blue-hover;
        background-color: $blue-hover;

      }

      input[type="checkbox"]:checked + label:active:before {
        border-color: $blue-pressed;
        background-color: $blue-pressed;

      }

      input[type="checkbox"]:disabled:checked + label:before,
      input[type="checkbox"]:disabled:checked + label:hover:before {
        border-color: $grey-light;
        background-color: $grey-light;

      }

      input[type="checkbox"]:not(:checked) + label:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 18px;
        height: 18px;
        border: 1px solid $grey;
        background-color: $white;

      }

      input[type="checkbox"]:disabled:not(:checked) + label:before,
      input[type="checkbox"]:disabled:not(:checked) + label:hover:before {
        border-color: $grey-light;

      }

      input[type="checkbox"]:not(:checked) + label:hover:before {
        border-color: $blue-hover;

      }

      input[type="checkbox"]:not(:checked) + label:active:before {
        border-color: $blue-pressed;

      }

      input[type="checkbox"]:checked + label:before,
      input[type="checkbox"]:not(:checked) + label:before {
        border-radius: 2px;

      }

      input[type="checkbox"]:checked + label:after,
      input[type="checkbox"]:not(:checked) + label:after {
        content: "";
        position: absolute;
        -webkit-transition: all 0.2s ease;
        -moz-transition: all 0.2s ease;
        -o-transition: all 0.2s ease;
        transition: all 0.2s ease;

      }

      input[type="checkbox"]:checked + label:after,
      input[type="checkbox"]:not(:checked) + label:after {
        left: 5px;
        top: 5px;
        width: 9px;
        height: 5px;
        border-left: 2.5px solid $white;
        border-bottom: 2.5px solid $white;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);

      }

      input[type="checkbox"]:not(:checked) + label:after {
        opacity: 0;

      }

      input[type="checkbox"]:checked + label:after {
        opacity: 1;

      }
    }
  }
}
