﻿.chkbox-container {
    display: block;
    position: relative;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .chkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    .chkbox-container .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 20px;
        width: 20px;
        background-color: #eee;
    }

    .chkbox-container .marked {
        position: absolute;
        top: 0;
        left: 0;
        height: 20px;
        width: 20px;
        background-color: #eee;
    }

.chkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.chkbox-container:hover input ~ .marked {
    background-color: #ccc;
}

.chkbox-container input:checked ~ .checkmark {
    background-color: #47b707;
}

.chkbox-container input:checked ~ .marked {
    background-color: #0058e6;
}

.chkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.chkbox-container .marked:after {
    content: "";
    position: absolute;
    display: none;
}

.chkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.chkbox-container input:checked ~ .marked:after {
    display: block;
}

    .chkbox-container .checkmark:after {
        left: 7px;
        top: 3px;
        width: 6px;
        height: 10px;
        border: solid white;
        border-width: 0 3px 3px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .chkbox-container .marked:after {
        left: 7px;
        top: 3px;
        width: 6px;
        height: 10px;
        border: solid white;
        border-width: 0 3px 3px 0;
        -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
    }
