.material-checkbox-wrapper {
    display: block;
}

.material-checkbox-wrapper .errors {
    display: none;
    margin: 0 20px;
    color: red;
    font-size: 16px;
    font-weight: normal;
}

.material-checkbox {
    z-index: 0;
    position: relative;
    margin: 20px;
    display: inline-block;
    color: rgba(0, 0, 0, 0.87);
    font-size: 16px;
    line-height: 1.5;
}

/* Input */
.material-checkbox > input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    z-index: -1;
    position: absolute;
    left: -10px;
    top: -8px;
    display: block;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: rgba(0, 0, 0, 0.6);
    box-shadow: none;
    outline: none;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
}

/* Span */
.material-checkbox > span {
    display: inline-block;
    width: 100%;
    cursor: pointer;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently */
}

/* Box */
.material-checkbox > span::before {
    content: "";
    display: inline-block;
    box-sizing: border-box;
    margin: 3px 11px 3px 1px;
    border: solid 2px; /* Safari */
    color: rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    width: 18px;
    height: 18px;
    vertical-align: top;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Checkmark */
.material-checkbox > span::after {
    content: "";
    display: block;
    position: absolute;
    top: 4px;
    left: 2px;
    width: 10px;
    height: 5px;
    border: solid 2px transparent;
    border-right: none;
    border-top: none;
    transform: translate(3px, 4px) rotate(-45deg);
}

/* Checked, Indeterminate */
.material-checkbox > input:checked,
.material-checkbox > input:indeterminate {
    background-color: rgb(33, 150, 243);
}

.material-checkbox > input:checked + span::before,
.material-checkbox > input:indeterminate + span::before {
    border-color: rgb(33, 150, 243);
    background-color: rgb(33, 150, 243);
}

.material-checkbox > input:checked + span::after,
.material-checkbox > input:indeterminate + span::after {
    border-color: rgb(255, 255, 255);
}

.material-checkbox > input:indeterminate + span::after {
    border-left: none;
    transform: translate(4px, 3px);
}

/* Hover, Focus */
.material-checkbox:hover > input {
    opacity: 0;
}

.material-checkbox > input:focus {
    opacity: 0;
    outline: none !important;
}

.material-checkbox:hover > input:focus {
    opacity: 0;
}

/* Active */
.material-checkbox > input:active {
    opacity: 1;
    transform: scale(0);
    transition: transform 0s, opacity 0s;
}

.material-checkbox > input:active + span::before {
    border-color: rgb(33, 150, 243);
}

.material-checkbox > input:checked:active + span::before {
    border-color: transparent;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Disabled */
.material-checkbox > input:disabled {
    opacity: 0;
}

.material-checkbox > input:disabled + span {
    color: rgba(0, 0, 0, 0.38);
    cursor: initial;
}

.material-checkbox > input:disabled + span::before {
    border-color: currentColor;
}

.material-checkbox > input:checked:disabled + span::before,
.material-checkbox > input:indeterminate:disabled + span::before {
    border-color: transparent;
    background-color: currentColor;
}

@media screen and (max-width: 767px) {
    .material-checkbox {
        margin: 10px 0;
        font-size: 14px;
    }

    .material-checkbox-wrapper .errors {
        margin: 0;
        font-size: 14px;
    }
}
