.human-check {
    --human-check-color: var(--human-check-accent, #15663f);
    position: relative;
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #d5dde3;
    border-radius: 10px;
}

/* Off the screen and not hidden, because a robot skips a box it can tell is hidden. */
.human-check-extra {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.human-check-label {
    margin-bottom: 10px;
    font-size: 0.875rem;
}

.human-check-track {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
}

.human-check-target {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 2px dashed var(--human-check-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.human-check-solved .human-check-target {
    border-style: solid;
}

/* The centre of a thumb 28px wide travels from 14px to 14px short of the end. */
.human-check-at-15 { left: calc(14px + (100% - 28px) * 0.15); }
.human-check-at-20 { left: calc(14px + (100% - 28px) * 0.20); }
.human-check-at-25 { left: calc(14px + (100% - 28px) * 0.25); }
.human-check-at-30 { left: calc(14px + (100% - 28px) * 0.30); }
.human-check-at-35 { left: calc(14px + (100% - 28px) * 0.35); }
.human-check-at-40 { left: calc(14px + (100% - 28px) * 0.40); }
.human-check-at-45 { left: calc(14px + (100% - 28px) * 0.45); }
.human-check-at-50 { left: calc(14px + (100% - 28px) * 0.50); }
.human-check-at-55 { left: calc(14px + (100% - 28px) * 0.55); }
.human-check-at-60 { left: calc(14px + (100% - 28px) * 0.60); }
.human-check-at-65 { left: calc(14px + (100% - 28px) * 0.65); }
.human-check-at-70 { left: calc(14px + (100% - 28px) * 0.70); }
.human-check-at-75 { left: calc(14px + (100% - 28px) * 0.75); }
.human-check-at-80 { left: calc(14px + (100% - 28px) * 0.80); }
.human-check-at-85 { left: calc(14px + (100% - 28px) * 0.85); }
.human-check-at-90 { left: calc(14px + (100% - 28px) * 0.90); }

.human-check .human-check-range {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    cursor: pointer;
}

/* A site's general input styles must not draw a box around the slider. The focus outline is below. */
.human-check .human-check-range:focus {
    border: 0;
    box-shadow: none;
}

.human-check .human-check-range:focus-visible {
    border-radius: 6px;
    outline: 2px solid var(--human-check-color);
    outline-offset: 2px;
}

.human-check .human-check-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: #8fa3b0;
}

.human-check .human-check-range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #8fa3b0;
}

.human-check .human-check-range::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -11px;
    border: 2px solid var(--human-check-color);
    border-radius: 50%;
    background: #fff;
    appearance: none;
    cursor: grab;
}

.human-check .human-check-range::-moz-range-thumb {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    border: 2px solid var(--human-check-color);
    border-radius: 50%;
    background: #fff;
    cursor: grab;
}

.human-check-solved.human-check .human-check-range::-webkit-slider-thumb {
    background: var(--human-check-color);
}

.human-check-solved.human-check .human-check-range::-moz-range-thumb {
    background: var(--human-check-color);
}

.human-check-status {
    margin-top: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.human-check-problem {
    margin: 8px 0 0;
    color: #b3261e;
    font-size: 0.875rem;
}
