﻿input[type=checkbox], input[type=radio] {
    border: 1px solid #CCC;
    border-radius: 3px;
    height: 18px;
    opacity: 0;
    position: absolute;
    width: 18px;
    z-index: 12;
}

    input[type=checkbox]:checked, input[type=radio]:checked, input[type=checkbox]:focus, input[type=radio]:focus {
        outline: none !important;
    }

    input[type=checkbox] + .lbl, input[type=radio] + .lbl {
        display: inline-block;
        font-weight: normal;
        margin: 0;
        position: relative;
        z-index: 11;
    }

        input[type=checkbox] + .lbl.padding-16::before, input[type=radio] + .lbl.padding-16::before {
            margin-right: 16px;
        }

        input[type=checkbox] + .lbl.padding-12::before, input[type=radio] + .lbl.padding-12::before {
            margin-right: 12px;
        }

        input[type=checkbox] + .lbl.padding-8::before, input[type=radio] + .lbl.padding-8::before {
            margin-right: 8px;
        }

        input[type=checkbox] + .lbl.padding-4::before, input[type=radio] + .lbl.padding-4::before {
            margin-right: 4px;
        }

        input[type=checkbox] + .lbl.padding-0::before, input[type=radio] + .lbl.padding-0::before {
            margin-right: 0px;
        }

        input[type=radio] + .lbl.padding-0::before, input[type=radio] + .lbl.padding-0::before {
            margin-right: 0px;
        }

        input[type=checkbox] + .lbl::before, input[type=radio] + .lbl::before {
            background-color: white;
            border: 1px solid #CCC;
            border-color: #428bca;
            border-radius: 3px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            color: #2091cf;
            content: "\a0";
            display: inline-block;
            font-family: fontAwesome;
            font-size: 14px;
            font-weight: normal;
            height: 18px;
            line-height: 18px;
            margin-right: 1px;
            margin-top: -5px;
            min-width: 18px;
            text-align: center;
            vertical-align: middle;
        }

    input[type=checkbox]:checked + .lbl::before, input[type=radio]:checked + .lbl::before {
        background-color: #428bca;
        border-color: #adb8c0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05),inset 15px 10px -12px rgba(255, 255, 255, 0.1);
        color: white;
        content: "\f00c";
        display: inline-block;
    }

    input[type=checkbox]:hover + .lbl::before, input[type=radio]:hover + .lbl::before, input[type=checkbox] + .lbl:hover::before, input[type=radio] + .lbl:hover::before {
        border-color: #1c7aad;
    }

    input[type=checkbox]:active + .lbl::before, input[type=radio]:active + .lbl::before, input[type=checkbox]:checked:active + .lbl::before, input[type=radio]:checked:active + .lbl::before {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),inset 0px 1px 3px rgba(0, 0, 0, 0.1);
    }

    input[type=checkbox]:disabled + .lbl::before, input[type=radio]:disabled + .lbl::before, input[type=checkbox][disabled] + .lbl::before, input[type=radio][disabled] + .lbl::before, input[type=checkbox].disabled + .lbl::before, input[type=radio].disabled + .lbl::before {
        background-color: #DDD !important;
        border-color: #CCC !important;
        box-shadow: none !important;
        color: #BBB;
    }

    input[type=radio] + .lbl::before {
        border-radius: 32px;
        font-family: Arial,Helvetica,sans-serif;
        font-size: 32px;
    }

    input[type=radio]:checked + .lbl::before {
        content: "\2022";
    }