.custom_checkbox_block
{
    margin-top:10px;
}
.custom_checkbox_block label
{
    padding-top: 2px;
}

.custom_checkbox_block [type="checkbox"]:not(:checked),
.custom_checkbox_block [type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}
.custom_checkbox_block [type="checkbox"]:not(:checked) + label,
.custom_checkbox_block [type="checkbox"]:checked + label {
    position: relative;
    padding-left: 2em;
    cursor: pointer;
    display: block;
}

/* checkbox aspect */
.custom_checkbox_block [type="checkbox"]:not(:checked) + label:before,
.custom_checkbox_block [type="checkbox"]:checked + label:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    top: 3px;
    left: 0;
    background-image: url('/resources/img/icons_i.png');
    background-repeat: no-repeat;
    background-position: -172px -36px;
}
/* checked mark aspect */
.custom_checkbox_block [type="checkbox"]:not(:checked) + label:after,
.custom_checkbox_block [type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    top: 3px;
    left: 0;
    background-image: url('/resources/img/icons_i.png');
    background-repeat: no-repeat;
    background-position: -216px -36px;
    transition: all .2s;
}
/* checked mark aspect changes */
.custom_checkbox_block [type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}
.custom_checkbox_block [type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}
/* disabled checkbox */
.custom_checkbox_block [type="checkbox"]:disabled:not(:checked) + label:before,
.custom_checkbox_block [type="checkbox"]:disabled:checked + label:before {
    box-shadow: none;
    border-color: #bbb;
    background-color: #ddd;

}
.custom_checkbox_block [type="checkbox"]:disabled:checked + label:after {
    color: #999;
}
.custom_checkbox_block [type="checkbox"]:disabled + label {
    color: #aaa;
}
.custom_checkbox_block [type="checkbox"]:checked + label:before {

}
.custom_checkbox_block.custom_checkbox_aligntop [type="checkbox"]:not(:checked) + label:before,
.custom_checkbox_block.custom_checkbox_aligntop [type="checkbox"]:checked + label:before {
    top: 0.2em;
}
/* checked mark aspect */
.custom_checkbox_block.custom_checkbox_aligntop [type="checkbox"]:not(:checked) + label:after,
.custom_checkbox_block.custom_checkbox_aligntop [type="checkbox"]:checked + label:after {
    top: 0.2em;
}
