/* /compliance/ cursor: a seal with a check in it, trailing hash-chain links
   (js/compliance-cursor.js). Nothing here applies until the script has added
   .cp-cursor-on, so a page without the script keeps its native pointer. */

.cp-cursor-on,
.cp-cursor-on a,
.cp-cursor-on button,
.cp-cursor-on select,
.cp-cursor-on label,
.cp-cursor-on summary {
    cursor: none;
}

/* Text fields keep the caret: you need to see where you are typing. */
.cp-cursor-on input,
.cp-cursor-on textarea {
    cursor: text;
}

.cp-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 1.5px solid var(--cp-pass, #3ddc97);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease-out, width 0.15s ease-out, height 0.15s ease-out,
        margin 0.15s ease-out, background-color 0.15s ease-out;
    will-change: transform;
}

.cp-cursor-visible {
    opacity: 1;
}

/* The check. */
.cp-cursor::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 5px;
    height: 9px;
    border: solid var(--cp-pass, #3ddc97);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* Over something you can run, the seal presses down. */
.cp-cursor-press {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    background-color: rgba(61, 220, 151, 0.14);
}

.cp-cursor-press::after {
    left: 11px;
    top: 7px;
}

.cp-cursor-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
    width: 10px;
    height: 5px;
    margin: -2.5px 0 0 -5px;
    border: 1px solid var(--cp-accent, #4fb3ff);
    border-radius: 3px;
    opacity: 0;
    will-change: transform, opacity;
}
