/* ── CF7 Math Captcha Styles ── */

.cf7mc-widget {
    margin: 14px 0 10px;
    padding: 12px 16px;
    border: 1px solid #d5d9e0;
    border-radius: 8px;
    background: #f8f9fb;
    max-width: 420px;
    transition: border-color .2s;
}

.cf7mc-widget.cf7mc-solved {
    border-color: #4caf50;
    background: #f3fbf3;
}

.cf7mc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cf7mc-question {
    font-weight: 700;
    font-size: 1.1em;
    color: #1a1a2e;
    min-width: 70px;
    letter-spacing: .5px;
}

.cf7mc-question.cf7mc-loading {
    color: #888;
    font-weight: 400;
    font-style: italic;
}

.cf7mc-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #c0c6d0;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.cf7mc-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.18);
}

.cf7mc-input:disabled {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #388e3c;
    cursor: not-allowed;
}

/* Refresh button */
.cf7mc-refresh {
    background: none;
    border: 1px solid #c0c6d0;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    font-size: 1em;
    padding: 5px 9px;
    line-height: 1;
    transition: color .2s, border-color .2s;
}

.cf7mc-refresh:hover {
    color: #2271b1;
    border-color: #2271b1;
}

/* Feedback messages */
.cf7mc-feedback {
    margin-top: 6px;
    font-size: .88em;
    font-weight: 600;
    min-height: 16px;
}

.cf7mc-feedback.cf7mc-ok  { color: #2e7d32; }
.cf7mc-feedback.cf7mc-err { color: #c62828; }

/* RTL support */
.rtl .cf7mc-row { flex-direction: row-reverse; }
