.litcaptcha {
    font-size: 14px;
    line-height: 1.35;
    max-width: 440px;
}

.litcaptcha__box {
    position: relative;
    background: transparent;
}

.litcaptcha__status-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #6c757d;
    position: relative;
    margin-top: 1px;
}

.litcaptcha__status-icon-inner {
    position: relative;
    width: 36px;
    height: 36px;
}

.litcaptcha__icon,
.litcaptcha__spinner {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(.9);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.litcaptcha__icon {
    width: 36px;
    height: 36px;
    display: block;
}

.litcaptcha__spinner {
    display: block;
    width: 36px;
    height: 36px;
}

.litcaptcha__dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .15;
    animation: litcaptcha-ring-dot 1s linear infinite;
}

.litcaptcha__dot--1 { transform: translate(0, -14px);    animation-delay: 0s; }
.litcaptcha__dot--2 { transform: translate(10px, -10px); animation-delay: .125s; }
.litcaptcha__dot--3 { transform: translate(14px, 0);     animation-delay: .25s; }
.litcaptcha__dot--4 { transform: translate(10px, 10px);  animation-delay: .375s; }
.litcaptcha__dot--5 { transform: translate(0, 14px);     animation-delay: .5s; }
.litcaptcha__dot--6 { transform: translate(-10px, 10px); animation-delay: .625s; }
.litcaptcha__dot--7 { transform: translate(-14px, 0);    animation-delay: .75s; }
.litcaptcha__dot--8 { transform: translate(-10px, -10px);animation-delay: .875s; }

@keyframes litcaptcha-ring-dot {
    0%   { opacity: .15; }
    12%  { opacity: 1; }
    25%  { opacity: .35; }
    100% { opacity: .15; }
}

.litcaptcha__status-text {
    min-width: 0;
}

.litcaptcha__title,
.litcaptcha__desc {
    transition: opacity .18s ease, transform .18s ease;
    will-change: opacity, transform;
}

.litcaptcha.is-switching .litcaptcha__title,
.litcaptcha.is-switching .litcaptcha__desc {
    opacity: 0;
    transform: translateY(2px);
}

.litcaptcha__title {
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.litcaptcha__desc {
    line-height: 1.3;
}

.litcaptcha__countdown {
    display: block;
}

.litcaptcha__question {
    display: block;
}

.litcaptcha__image-wrap {
    width: 100%;
}

.litcaptcha__image-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.litcaptcha__image-skeleton {
    position: relative;
    width: 100%;
    height: 110px;
    background: #eef1f7;
    border: 1px solid #dee2e6;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.litcaptcha__image-skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.6) 40%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.6) 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: litcaptcha-shimmer 1.4s ease-in-out infinite;
}

.litcaptcha__image-skeleton-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #9aa5b8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    pointer-events: none;
    user-select: none;
}

.litcaptcha__image-skeleton-text svg {
    width: 28px;
    height: 28px;
    opacity: 0.55;
    animation: litcaptcha-pulse 1.4s ease-in-out infinite;
}

@keyframes litcaptcha-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes litcaptcha-pulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 0.75; }
}

.litcaptcha__actions .btn {
    white-space: nowrap;
}

.litcaptcha__notice {
    display: block;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 0;
    box-shadow: none;
}

.litcaptcha__trap-holder {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.litcaptcha[data-state="idle"] .litcaptcha__icon--idle,
.litcaptcha[data-state="challenge"] .litcaptcha__icon--warning,
.litcaptcha[data-state="blocked"] .litcaptcha__icon--warning,
.litcaptcha[data-state="success"] .litcaptcha__icon--success,
.litcaptcha[data-state="error"] .litcaptcha__icon--error,
.litcaptcha[data-state="loading"] .litcaptcha__spinner {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.litcaptcha[data-state="success"] .litcaptcha__status-icon {
    color: #28a745;
}

.litcaptcha[data-state="challenge"] .litcaptcha__status-icon,
.litcaptcha[data-state="blocked"] .litcaptcha__status-icon {
    color: #dc3545;
}

.litcaptcha[data-state="error"] .litcaptcha__status-icon {
    color: #fd7e14;
}

.litcaptcha[data-state="loading"] .litcaptcha__status-icon {
    color: #007bff;
}

.litcaptcha .litcaptcha__refresh[hidden],
.litcaptcha .litcaptcha__submit[hidden],
.litcaptcha .litcaptcha__retry[hidden],
.litcaptcha .litcaptcha__challenge[hidden],
.litcaptcha .litcaptcha__notice[hidden],
.litcaptcha .litcaptcha__question[hidden],
.litcaptcha .litcaptcha__countdown[hidden],
.litcaptcha .litcaptcha__image-wrap[hidden] {
    display: none !important;
}

.litcaptcha--theme-dark .litcaptcha__box {
    border-color: rgba(255,255,255,.18) !important;
}

.litcaptcha--theme-dark .litcaptcha__title {
    color: #f8f9fa;
}

.litcaptcha--theme-dark .litcaptcha__desc,
.litcaptcha--theme-dark .litcaptcha__question,
.litcaptcha--theme-dark .litcaptcha__countdown {
    color: rgba(255,255,255,.72) !important;
}

.litcaptcha--theme-dark .litcaptcha__notice {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.16);
    color: #f8f9fa;
}

.litcaptcha--size-compact {
    max-width: 300px;
    font-size: 13px;
}

.litcaptcha--size-compact .litcaptcha__title {
    font-size: 13px;
}

.litcaptcha--size-normal {
    max-width: 440px;
}

.litcaptcha--size-wide {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .litcaptcha__actions {
        display: flex;
        flex-wrap: nowrap;
    }

    .litcaptcha__actions .btn {
        flex: 0 0 auto;
    }
}
