/**
 * BXMax SmartCaptcha — публичные стили для виджета и сообщений.
 * Минимально достаточный, нейтральный CSS, легко перебивается темой сайта.
 */

.bxmax-captcha-slot {
    position: relative;
    display: block;
    margin: 12px 0;
    font-family: inherit;
}

.bxmax-captcha-slot[data-bxmax-mode="invisible"] .bxmax-captcha-widget {
    display: none;
}

.bxmax-captcha-widget {
    min-height: 0;
}

.bxmax-captcha-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffe9ec 0%, #ffeded 100%);
    border-left: 3px solid #d63333;
    color: #7a1f1f;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.bxmax-captcha-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #1a72ff;
    border-radius: 50%;
    animation: bxmax-captcha-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes bxmax-captcha-spin {
    to { transform: rotate(360deg); }
}

/* Honeypot — гарантированно невидим для людей, но "виден" наивным ботам */
.bxmax-captcha-slot input[name="bxmax_hp"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Тёмная тема */
.bxmax-captcha-slot[data-theme="dark"] .bxmax-captcha-error {
    background: #2a1414;
    color: #ffb6b6;
    border-color: #ff5252;
}
