/* Shared checkbox styles: registered by their PHP consumers, not the site header. */

.checkbox {
    display: block;
    cursor: pointer;
}

.checkbox input[type='checkbox'] {
    display: none;
}

.checkbox input[type='checkbox']:checked + span:after {
    opacity: 1;
}

.checkbox span {
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    display: block;
    padding: 0 0 0 25px;
}

.checkbox span:before {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 16px;
    height: 16px;
    margin: -9px 0 0 0;
    content: '';
    border: 1px solid #dedede;
    background: #fff;
}

.checkbox span:after {
    position: absolute;
    top: 50%;
    left: 5px;
    display: block;
    width: 7px;
    height: 10px;
    margin: -8px 0 0 0;
    content: '';
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    opacity: 0;
    border-right: 3px solid #599c28;
    border-bottom: 3px solid #599c28;
}

@media (max-width: 767px) {
    .checkbox span {
        padding: 0 0 0 31px;
    }

    .checkbox span:before {
        top: 0;
        width: 24px;
        height: 24px;
        margin: 2px 0 0;
    }

    .checkbox span:after {
        top: 0;
        left: 7px;
        display: block;
        width: 8px;
        height: 14px;
        margin: 5px 0 0;
    }
}
