/* CHECKBOX E RADIO */

input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;

    width: 16px;
    height: 16px;
    margin: 0 0px 0 0;

    display: inline-grid;
    place-content: center;
    vertical-align: middle;

    background: #fff;
    border: 1px solid #b8c0cc;
    cursor: pointer;

    transition: .18s ease;
}

/* CHECKBOX */

input[type="checkbox"] {
    border-radius: 3px;
}

/* RADIO */

input[type="radio"] {
    border-radius: 50%;
}

/* HOVER */

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    border-color: #6c7a89;
}

/* FOCUS */

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(80, 110, 150, .18);
}

/* CHECKBOX MARCADO */

input[type="checkbox"]::before {
    content: "";

    width: 5px;
    height: 9px;

    border: solid #fff;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg) scale(0);
    transition: .15s ease;
}

/* RADIO MARCADO */

input[type="radio"]::before {
    content: "";

    width: 8px;
    height: 8px;

    background: #fff;
    border-radius: 50%;

    transform: scale(0);
    transition: .15s ease;
}

/* ESTADO MARCADO */

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: #1ABC9C;
    border-color: #1ABC9C;
}

/* EXIBE A MARCA */

input[type="checkbox"]:checked::before {
    transform: rotate(45deg) scale(1);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

/* DESABILITADO */

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* ALINHAMENTO COM LABELS */

.checkbox label,
.radio label,
label > input[type="checkbox"],
label > input[type="radio"] {
    vertical-align: middle;
}

/* LOGIN */

body.function-login input[type="checkbox"],
body.function-login input[type="radio"] {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .75);
}

body.function-login input[type="checkbox"]:checked,
body.function-login input[type="radio"]:checked {
    background: #fff;
    border-color: #fff;
}

body.function-login input[type="checkbox"]:checked::before {
    border-color: #444;
}

body.function-login input[type="radio"]:checked::before {
    background: #444;
}

/* REMOVE MARCAS ANTERIORES */

body.function-login [data-itemid="remember_password"] input[type="checkbox"]::before,
body.function-login [data-itemid="remember_password"] input[type="checkbox"]::after {
    content: none !important;
}

/* CRIA APENAS UMA MARCA */

body.function-login [data-itemid="remember_password"] input[type="checkbox"]:checked::after {
    content: "" !important;

    display: block !important;

    width: 4px;
    height: 10px;

    border: solid #222;
    border-width: 0 3px 3px 0;

    transform: rotate(45deg);
}