.checkbox {
    padding-left: 20px
}

.checkbox label {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    padding-left: 5px
}

.checkbox label::after,
.checkbox label::before {
    position: absolute;
    margin-left: -20px;
    display: inline-block;
    left: 0
}

.checkbox label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    -webkit-transition: border .15s ease-in-out, color .15s ease-in-out;
    -o-transition: border .15s ease-in-out, color .15s ease-in-out;
    transition: border .15s ease-in-out, color .15s ease-in-out
}

.checkbox label::after {
    width: 16px;
    height: 16px;
    top: 3px;
    padding-left: 3px;
    padding-top: 1px;
    font-size: 11px;
    color: #555
}

.checkbox-info input[type=checkbox]:checked+label::after,
.checkbox-info input[type=radio]:checked+label::after,
input[type=checkbox] .styled:checked+label::after,
input[type=checkbox] .styled:checked+label::before,
input[type=radio] .styled:checked+label::after,
input[type=radio] .styled:checked+label::before {
    color: #fff
}

.checkbox input[type=checkbox],
.checkbox input[type=radio] {
    opacity: 0;
    z-index: 1;
    display: none;
}

.checkbox input[type=checkbox]:focus+label::before,
.checkbox input[type=radio]:focus+label::before {
    outline-offset: -2px
}

.checkbox input[type=checkbox]:checked+label::after,
.checkbox input[type=radio]:checked+label::after {
    content: url(https://storage.naiin.com/system/application/bookstore/resource/img/global/ic_check.svg) !important;
}

.checkbox input[type=checkbox]:indeterminate+label::after,
.checkbox input[type=radio]:indeterminate+label::after {
    display: block;
    content: "";
    width: 10px;
    height: 3px;
    background-color: #555;
    border-radius: 2px;
    margin-left: -16.5px;
    margin-top: 7px
}

.checkbox.checkbox-inline,
.radio.radio-inline {
    margin-top: 0
}

.checkbox input[type=checkbox]:disabled+label,
.checkbox input[type=radio]:disabled+label {
    opacity: .65
}

.checkbox input[type=checkbox]:disabled+label::before,
.checkbox input[type=radio]:disabled+label::before {
    background-color: #eee;
    cursor: not-allowed
}

.checkbox.checkbox-circle label::before {
    border-radius: 50%
}

.checkbox-info input[type=checkbox]:checked+label::before,
.checkbox-info input[type=radio]:checked+label::before {
    background-color: #5bc0de;
    border-color: #5bc0de
}

.checkbox-info input[type=checkbox]:indeterminate+label::before,
.checkbox-info input[type=radio]:indeterminate+label::before {
    background-color: #5bc0de;
    border-color: #5bc0de
}

.checkbox-info input[type=checkbox]:indeterminate+label::after,
.checkbox-info input[type=radio]:indeterminate+label::after {
    background-color: #fff
}

.radio label::before {
    background-color: #fff
}

.radio {
    padding-left: 20px
}

.radio label {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    padding-left: 5px
}

.radio label::after,
.radio label::before {
    display: inline-block;
    position: absolute;
    margin-left: -20px
}

.radio label::before {
    content: "";
    width: 17px;
    height: 17px;
    left: 0;
    border: 1px solid #ccc;
    border-radius: 50%;
    -webkit-transition: border .15s ease-in-out;
    -o-transition: border .15s ease-in-out;
    transition: border .15s ease-in-out
}

.radio label::after {
    content: " ";
    width: 11px;
    height: 11px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background-color: #555;
    -webkit-transform: scale(0, 0);
    -ms-transform: scale(0, 0);
    -o-transform: scale(0, 0);
    transform: scale(0, 0);
    -webkit-transition: -webkit-transform .1s cubic-bezier(.8, -.33, .2, 1.33);
    -moz-transition: -moz-transform .1s cubic-bezier(.8, -.33, .2, 1.33);
    -o-transition: -o-transform .1s cubic-bezier(.8, -.33, .2, 1.33);
    transition: transform .1s cubic-bezier(.8, -.33, .2, 1.33)
}

.radio input[type=radio] {
    opacity: 0;
    z-index: 1
}

.radio input[type=radio]:focus+label::before {
    outline: dotted thin;
    outline: -webkit-focus-ring-color auto 5px;
    outline-offset: -2px
}

.radio input[type=radio]:checked+label::after {
    -webkit-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    transform: scale(1, 1)
}

.radio input[type=radio]:disabled+label {
    opacity: .65
}

.radio input[type=radio]:disabled+label::before {
    cursor: not-allowed
}

.radio-info input[type=radio]+label::after,
.radio-info input[type=radio]:checked+label::after {
    background-color: #5bc0de
}

.radio-info input[type=radio]:checked+label::before {
    border-color: #5bc0de
}

input[type=checkbox].styled:checked+label:after,
input[type=radio].styled:checked+label:after {
    content: url(https://storage.naiin.com/system/application/bookstore/resource/img/global/ic_check.svg) !important;
}