.magic-radio,.magic-checkbox {
    position: absolute;
    display: none;
}

.magic-radio[disabled],.magic-checkbox[disabled] {
    cursor: not-allowed;
}

.magic-radio+label,.magic-checkbox+label {
    position: relative;
    display: block;
    padding-left: 29px;
    cursor: pointer;
    vertical-align: middle;
    margin-bottom: 5px;
}

.magic-radio+label:hover:before,
.magic-checkbox+label:hover:before {
    animation-duration: .4s;
    animation-fill-mode: both;
    animation-name: hover-color;
}

.magic-radio+label:after,
.magic-checkbox+label:after {
    position: absolute;
    display: none;
    content: '';
}

.magic-radio[disabled]+label,
.magic-checkbox[disabled]+label {
    cursor: not-allowed;
    color: #e4e4e4;
}

.magic-radio[disabled]+label:hover,
.magic-radio[disabled]+label:before,
.magic-radio[disabled]+label:after,
.magic-checkbox[disabled]+label:hover,
.magic-checkbox[disabled]+label:before,
.magic-checkbox[disabled]+label:after {
    cursor: not-allowed
}

.magic-radio[disabled]+label:hover:before,
.magic-checkbox[disabled]+label:hover:before {
    border: 1px solid #e4e4e4;
    animation-name: none
}

.magic-radio[disabled]+label:before,
.magic-checkbox[disabled]+label:before {
    border-color: #e4e4e4
}

.magic-radio:checked+label:before,
.magic-checkbox:checked+label:before {
    animation-name: none;
}

.magic-radio:checked+label:after,
.magic-checkbox:checked+label:after {
    display: block
}

/* RADIO */

.magic-radio+label:before {
    position: absolute;
    top: 2px;
    left: 2px;
    display: inline-block;
    width: 25px;
    height: 25px;
    content: '';
    border: 1px solid silver!important
}

.magic-radio+label:before {
    border-radius: 50%
}

.magic-radio+label:after {
    top: 7px;
    left: 7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #792024
}

.magic-radio:checked+label:before {
    border: 2px solid #792024
}

.magic-radio:checked[disabled]+label:before {
    border: 1px solid #c9e2f9
}

.magic-radio:checked[disabled]+label:after {
    background: #c9e2f9
}


/* CHECHKBOX */

.magic-checkbox+label:before {
    position: absolute;
    top: -1px;
    left: -1px;
    display: inline-block;
    width: 20px;
    height: 20px;
    content: '';
    border: none;
    /* background-color: #A76178; */
    background: #c4c4c4;
}

.magic-checkbox:hover+label:before {
    position: absolute;
    top: -1px;
    left: -1px;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: none;
    background: #c43535;
}

.magic-checkbox+label:before {
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
}

.magic-checkbox+label:after {
    top: 2px;
    left: 6px;
    box-sizing: border-box;
    width: 6px;
    height: 11px;
    transform: rotate(45deg);
    border-width: 2px;
    border-style: solid;
    border-color: #fff;
    border-top: 0;
    border-left: 0;
}

.magic-checkbox:checked+label:before {
    border: #DE134B;
    background: #DE134B;    
}

.magic-checkbox:checked[disabled]+label:before {
    border: #c9e2f9;
    background: #c9e2f9;
}