.custom-captcha {
    position: relative;
    box-sizing: border-box;
    width: 304px;
    max-width: 100%;
    margin: 12px 0;
    padding: 13px 12px 10px;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
}
.custom-captcha [hidden] {
    display: none !important;
}
.custom-captcha-image[hidden],
.custom-captcha-text[hidden],
.custom-captcha-loading[hidden],
.custom-captcha-challenge[hidden] {
    display: none !important;
}
.custom-captcha:focus { outline: 2px solid #537eac; outline-offset: 2px; }
.custom-captcha-checkbox {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
    text-align: left;
}
.custom-captcha-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    border: 2px solid #777;
    background: #fff;
    font-size: 20px;
    line-height: 1;
}
.custom-captcha-label { font-size: 15px; }
.custom-captcha-branding,
.custom-captcha-legal { margin-left: 35px; color: #777; font-size: 10px; }
.custom-captcha-branding { margin-top: 8px; font-weight: bold; letter-spacing: .5px; }
.custom-captcha-legal { margin-top: 2px; }
.custom-captcha-challenge { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e5e5e5; }
.custom-captcha-image {
    display: block;
    width: 190px;
    max-width: 100%;
    height: 64px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
}
.custom-captcha-text {
    display: block;
    width: 190px;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 15px 8px;
    background: #f3f3f3;
    border: 1px solid #ccc;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
}
.custom-captcha-answer {
    display: block;
    box-sizing: border-box;
    width: 190px;
    max-width: 100%;
    margin-top: 5px;
    padding: 7px;
    border: 1px solid #bbb;
}
.custom-captcha-actions { margin-top: 8px; }
.custom-captcha-verify,
.custom-captcha-refresh {
    margin-right: 6px;
    padding: 6px 10px;
    border: 1px solid #537eac;
    border-radius: 3px;
    background: #537eac;
    color: #fff;
    cursor: pointer;
}
.custom-captcha-refresh { background: #fff; color: #537eac; }
.custom-captcha-error {
    display: none;
    box-sizing: border-box;
    width: 100%;
    margin-top: 10px;
    padding: 8px 10px;
    background: #fce8e6;
    border: 1px solid #e6aaa5;
    border-radius: 3px;
    color: #a12620;
    font-size: 12px;
    line-height: 18px;
}
.custom-captcha-error:not(:empty) { display: block; }
.custom-captcha-success .custom-captcha-error {
    background: #e6f4ea;
    border-color: #a8d5b5;
    color: #237a3b;
}
.custom-captcha-loading { margin-bottom: 8px; color: #666; }
.custom-captcha-loading:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid #ccc;
    border-top-color: #537eac;
    border-radius: 50%;
    animation: custom-captcha-spin .8s linear infinite;
}
@keyframes custom-captcha-spin { to { transform: rotate(360deg); } }
.custom-captcha-success .custom-captcha-check:before { content: '\2713'; color: #238636; }
.custom-captcha-success .custom-captcha-checkbox { cursor: default; }
@media screen and (max-width: 520px) { .custom-captcha { width: 100%; } }
