/* 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;
}

/* checkboxes end */
