/* Основной контейнер капчи */
.smart-captcha {
    width: 300px;
}

/* Скрытые поля для данных */
[data-smart-captcha-captcha-container] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Сообщение об ошибке */
[data-smart-captcha-error] {
    color: #d32f2f !important;
    padding: 10px !important;
    margin: 10px 0 !important;
    border: 1px solid #d32f2f !important;
    border-radius: 4px !important;
    background-color: #ffebee !important;
    font-size: 14px !important;
    line-height: 1.4;
}

/* Обёртка слайдера */
.smart-captcha-slider {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

/* Область слайдера (фон) */
.smart-captcha-slider-area {
    background: #0000000d;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 3px 3px;
    position: relative;
    z-index: 2;
}

/* принудительно создать отдельный слой композиции в GPU*/
.smart-captcha-slider-track,
.smart-captcha-slider-button {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Трек — полоса, по которой движется кнопка */
.smart-captcha-slider-track {
    align-items: center;
    display: flex;
    height: 45px;
    justify-content: center;
    position: relative;
    width: 100%;
    border-radius: 14px;
    /*background-color: #f5f5f5;*/
    user-select: none;
}

/* Надпись на треке */
.smart-captcha-slider-label {
    font-size: 15px;
    color: #333;
    user-select: none;
    cursor: default;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

/* Кнопка слайдера */
.smart-captcha-slider-button {
    align-items: center;
    background-color: #5282ff;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    /*height: calc(100% - 6px);*/
    height: calc(100%);
    justify-content: center;
    outline: none;
    position: absolute;
    left: 0;
    top: 50%;
    /*transform: translateY(-50%) translateX(0);*/
    transform: translate3d(0, -50%, 0);
    width: 65px;
    z-index: 1;
    touch-action: none;
    box-shadow: 0 2px 8px rgba(82, 130, 255, 0.3);
    user-select: none;
    /* Производительность */
    will-change: transform;
    backface-visibility: hidden;
    /* Анимация при завершении */
    /*transition: transform 0.3s ease;*/
    transition: none; /* Убрать переходы во время движения */
}

/* Иконка внутри кнопки */
.smart-captcha-slider-button span {
    color: white;
    font-size: 18px;
    font-weight: bold;
    user-select: none;
}

/* Состояние "нажато" */
.smart-captcha-slider-button:active {
    transform: translateY(-50%) scale(0.98);
    transition: transform 0.1s ease;
}

/* При успешном прохождении */
.smart-captcha-slider-button[style*="pointer-events: none"] {
    cursor: default;
}