.bsin-captcha {
    --bsin-captcha-image-background: #f7f7f5;
    --bsin-captcha-image-color: #111827;
    --bsin-captcha-border: rgba(0, 0, 0, .18);
    --bsin-captcha-error: #b00020;
    margin-bottom: 1rem;
}

.bsin-captcha__label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
}

.bsin-captcha__challenge {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.bsin-captcha__image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .45rem;
    color: var(--bsin-captcha-image-color);
    background: var(--bsin-captcha-image-background);
    border: 1px solid var(--bsin-captcha-border);
    border-radius: .25rem;
    line-height: 0;
}

.bsin-captcha__image svg {
    display: block;
    width: auto;
    height: 52px;
    max-width: 100%;
}

.bsin-captcha__refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 1px solid var(--bsin-captcha-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
}

.bsin-captcha__refresh:hover,
.bsin-captcha__refresh:focus-visible {
    background: rgba(0, 0, 0, .07);
}

.bsin-captcha__refresh:disabled {
    opacity: .5;
    cursor: wait;
}

.bsin-captcha__input {
    max-width: 14rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.bsin-captcha__error {
    margin: .35rem 0 0;
    color: var(--bsin-captcha-error);
    font-size: .9em;
}

/* Honeypot: removed from the visual flow, but still a normal text field for bots. */
.bsin-captcha__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bsin-captcha__hp label {
    display: none;
}
