/*checkbox*/

input[type="checkbox"],
input[type="radio"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    display: block;
    /*float: left;*/
    /*margin-right: -2em;*/
    opacity: 0;
    width: 1em;
    z-index: -1;
    position: absolute;
}

input[type="checkbox"] + *,
input[type="radio"] + * {
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: normal;
    margin-left: 1.5em;
    position: relative;
    border-bottom: 1px dotted;
    line-height: 1.3em;
}

input[type="checkbox"] + *:empty, input[type="radio"] + *:empty {
    margin-left: 1em;
}

input[type="checkbox"] + *:before,
input[type="radio"] + *:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    border: solid 1px;
    content: '';
    height: 1.2em;
    margin-left: -1.5em;
    position: absolute;
    text-align: center;
    width: 1.2em;
    line-height: 1.15em;
    box-sizing: border-box;
}

input[type="checkbox"]:checked + *:before,
input[type="radio"]:checked + *:before {
    border-color: var(--a-color);
    background-color: var(--a-color);
    color: #fff;
    content: '\f00c';
}

input[type="checkbox"]:focus + *:before,
input[type="radio"]:focus + *:before {
    /*border-color: #333;*/
    /*box-shadow: none;*/
}

input[type="checkbox"]:disabled + *,
input[type="radio"]:disabled + * {
    opacity: 0.5;
    color: #999;
}

input[type="radio"] + *:before {
    border-radius: 100%;
}

input[type="checkbox"].warning + *,
input[type="radio"].warning + * {
    color: var(--color-warning);
}
