@charset "UTF-8";

.antispam_captcha {
    display: block;
    width: 100%;
    margin-top: 28px;
    position: relative;
}

.antispam_captcha--inner {
    max-width: 408px;
    background-color: var(--white);
    padding: 12px;
    padding-bottom: 8px;
    border-radius: 12px;
    border: 1px solid var(--grayBorder);
}

.antispam_captcha--inner p {
    margin: 0;
    font-size: 14px !important;
    line-height: 1.4;
    white-space: nowrap;
}

.captcha_cubes {
    display: flex;
    justify-content: flex-end;
}

.captcha_cube {
    margin-right: 18px;
    position: relative;
}

.captcha_cube:last-child {
    margin-right: 0;
}

.captcha_cube img {
    border: 2px solid transparent;
    border-radius: 14px;
    pointer-events: none;
}

.captcha_cube input {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
}

.captcha_cube input:checked + img {
    border-color: var(--gray);
}

.captcha_cube input.success-input + img {
    border-color: #37cc6a;
}

.captcha_cube input.error-input + img {
    border-color: var(--red);
}

.captcha-error-text {
    font-size: 12px;
    line-height: var(--lineheight-title);
    color: var(--red);
    position: relative;
    margin-top: 4px;
    width: 100%;
    display: none;
}

.captcha-error-text.active {
    display: block;
}

@media (max-width: 768px) {
    .antispam_captcha {
        margin-top: 24px;
    }

    .antispam_captcha--inner {
        border-radius: 8px;
        padding: 4px 12px 8px;
    }

    .antispam_captcha--inner p {
        white-space: normal;
    }

    .captcha_cubes {
        justify-content: flex-start;
        margin-top: 3px;
    }
}

@media screen and (max-width: 375px) {
    .captcha_cubes {
        justify-content: space-between;
    }
}
