mark.im-caret {
    animation: 1s blink step-end infinite !important;
    background: transparent;
    padding: 0;
}

mark.im-caret-select {
    background-color: rgba(0, 0, 0, 0.25);
}

@keyframes blink {
    from, to {
        border-right-color: black;
    }
    50% {
        border-right-color: transparent;
    }
}

span.im-static {
    color: #717171;
    font-style: italic;
    font-weight: 300;
}

div.im-colormask {
    display: inline-block;
    cursor: text;
    padding: 0.63rem 0.75rem;
    max-width: 100%;
    color: #242424;
    border: 1px solid transparent;
    font-weight: 400;
    font-size: .85rem;
    padding: 0.63rem 0.75rem;
    border-radius: .25rem;
    max-height: 38px;
}

div.im-colormask > input, div.im-colormask > input:-webkit-autofill {
    position: absolute !important;
    display: inline-block;
    background-color: transparent;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: transparent;
    text-shadow: none;
    appearance: caret;
    border-style: none;
    left: 0; /*calculated*/
    padding: 0.63rem 0.75rem;
    border: 1px solid #d7d7d7;
    margin: -0.63rem -0.75rem;
}

div.im-colormask > input:focus {
    outline: none;
}

div.im-colormask > input::selection {
    background: none;
}

div.im-colormask > input::-moz-selection {
    background: none;
}

div.im-colormask > input:-webkit-autofill ~ div {
    background-color: rgba(33,180,255,0.25);
}

div.im-colormask > div {
    color: #242424;
    display: inline-block;
    width: 100px; /*calculated*/
}

[im-insert="false"] {
    caret-color: black;
    caret-shape: block;
}