@font-face {
    font-family: 'CarbonMatePasswordIcons';
    src: url('/resource/assets/theme_4/layout1_global_assets/css/icons/font-awesome47/fonts/fontawesome-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.cm-password-host {
    position: relative;
}

input.cm-password-input {
    padding-right: 2.75rem !important;
}

input.cm-password-input::-ms-reveal {
    display: none;
}

.cm-password-toggle {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #555;
    cursor: pointer;
    transform: translateY(-50%);
}

.cm-password-toggle[hidden] {
    display: none;
}

.cm-password-toggle:hover {
    color: #222;
}

.cm-password-toggle:focus-visible {
    outline: 2px solid #2196f3;
    outline-offset: -3px;
}

.cm-password-toggle:disabled {
    cursor: default;
    opacity: .5;
}

.cm-password-toggle > .fa {
    margin: 0;
    padding: 0;
    font: normal normal normal 16px/1 'CarbonMatePasswordIcons';
    pointer-events: none;
}

.cm-password-toggle > .fa-eye::before {
    content: '\f06e';
}

.cm-password-toggle > .fa-eye-slash::before {
    content: '\f070';
}

.was-validated input.cm-password-input:invalid,
.was-validated input.cm-password-input:valid,
input.cm-password-input.is-invalid,
input.cm-password-input.is-valid {
    background-position: right 2.75rem center;
    padding-right: 4.5rem !important;
}
