/* checkboxes begin */
.custom-checkbox {
    margin: 0;
    display: block;
}

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

.custom-checkbox [type="checkbox"] + span,
.custom-checkbox [type="radio"] + span {
    display: inline-block;
    padding-left: 40px;
    position: relative;
}

.custom-checkbox [type="checkbox"]:not(:checked) + span,
.custom-checkbox [type="checkbox"]:checked + span,
.custom-checkbox [type="radio"]:not(:checked) + span,
.custom-checkbox [type="radio"]:checked + span {
    cursor: pointer;
    padding-top: 5px;
}

.custom-checkbox [type="checkbox"]:not(:checked) + span:before,
.custom-checkbox [type="checkbox"]:checked + span:before,
.custom-checkbox [type="radio"]:not(:checked) + span:before,
.custom-checkbox [type="radio"]:checked + span:before {
    width: 24px;
    height: 24px;
    border: 2px solid #d8d8d8;
    background: rgba(255, 255, 255, 0);
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0);
    transition: all 300ms ease;
    position: absolute;
    top: 2px;
    left: 0;
}

.custom-checkbox [type="checkbox"]:not(:checked) + span:before,
.custom-checkbox [type="checkbox"]:checked + span:before {
    content: "";
    border-radius: 5px;
}

.custom-checkbox [type="checkbox"]:not(:checked) + span:after,
.custom-checkbox [type="checkbox"]:checked + span:after,
.custom-checkbox [type="radio"]:not(:checked) + span:after,
.custom-checkbox [type="radio"]:checked + span:after {
    content: "";
    position: absolute;
    top: 8px;
    left: 6px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0);
    border-radius: 3px;
    transition: all 300ms ease;
}

.custom-checkbox [type="radio"]:not(:checked) + span:after,
.custom-checkbox [type="radio"]:checked + span:after {
    border-radius: 100%;
}

.custom-checkbox [type="radio"]:not(:checked) + span:before,
.custom-checkbox [type="radio"]:checked + span:before {
    content: "";
    border-radius: 100%;
}

.custom-checkbox [type="checkbox"]:checked + span:before,
.custom-checkbox [type="radio"]:checked + span:before {
    border-color: #f38230;
}

.custom-checkbox [type="checkbox"]:checked + span:after,
.custom-checkbox [type="radio"]:checked + span:after {
    background: #f38230;
}

.custom-checkbox [type="checkbox"]:disabled:not(:checked) + span:before,
.custom-checkbox [type="checkbox"]:disabled:checked + span:before,
.custom-checkbox [type="radio"]:disabled:not(:checked) + span:before,
.custom-checkbox [type="radio"]:disabled:checked + span:before {
    border-color: #bbb;
    background-color: #ddd;
}

.custom-checkbox [type="checkbox"]:disabled + span,
.custom-checkbox [type="radio"]:disabled + span {
    color: #aaa;
}

.custom-checkbox [type="checkbox"] + span a {
    font-weight: bold;
    color: inherit;
}

.custom-checkbox [type="checkbox"] + span a:hover {
    text-decoration: underline;
}

.custom-checkbox label {
    width: 100% !important;
    min-width: 100% !important;
}

.custom-checkbox.checkboxes-blocks .form-group {
    display: block !important;
}

.custom-checkbox.checkboxes-blocks .radio {
    min-width: 100%;
    margin: 15px 0;
}

.custom-checkbox.checkboxes-inline .form-group {
    display: block !important;
    margin: 0;
}

.custom-checkbox.checkboxes-inline .form-group .radio {
    display: inline-block;
    margin: 15px 15px 15px 0;
    font-weight: bold;
}

.custom-checkbox-switch label {
    position: relative;
    display: inline-block;
    padding-left: 70px;
}

.custom-checkbox-switch label input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
}

.custom-checkbox-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    width: 60px;
    height: 34px;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.custom-checkbox-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.custom-checkbox-switch input:checked + .slider {
    background-color: #f38230;
}

.custom-checkbox-switch input:focus + .slider {
    box-shadow: 0 0 1px #f38230;
}

.custom-checkbox-switch input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.custom-checkbox-switch .slider.round {
    border-radius: 34px;
}

.custom-checkbox-switch .slider.round:before {
    border-radius: 50%;
}

/* checkboxes end */
