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

$blue: #0079C2;
$blue-hover: #005694;
$blue-pressed: #003366;
$blue-disabled: #9ECCE8;

$grey: #939393;
$grey-hover: #6C6C6C;
$grey-pressed: #707070;
$grey-disabled: #E0E0E0;

.options {
  padding-top: 10px;
  .option {
    margin-bottom: 8px;

    display: flex;
    column-gap: 10px;

    input {
      width: 18px;
      height: 18px;

    };

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

    }

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

    }

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

    }

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

    }

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

    }

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

    }

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

    }

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

    }

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

    }

    input[type="radio"]:checked + label:before,
    input[type="radio"]:not(:checked) + label:before {
      border-radius: 100%;

    }

    input[type="radio"]:checked + label:after,
    input[type="radio"]: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="radio"]:checked + label:after,
    input[type="radio"]:not(:checked) + label:after {
      left: 4px;
      top: 4px;
      width: 10px;
      height: 10px;
      border-radius: 100%;
      background-color: $white;

    }

    input[type="radio"]:checked + label:hover:after {
      background-color: $white;

    }

    input[type="radio"]:checked + label:active:after {
      background-color: $grey-disabled;

    }

    input[type="radio"]:disabled:checked + label:after,
    input[type="radio"]:disabled:checked + label:hover:after {
      background-color: $blue-disabled;

    }

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

    }

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

    }

    label {
      color: $black;
    }
  }
}
