/* ── Comment 2FA Plugin Styles ─────────────────────────────────── */

#c2fa-panel {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
    background: #f8f9fb;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Step containers */
.c2fa-step {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.c2fa-label {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Buttons */
.c2fa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, opacity 0.18s, transform 0.1s;
    border: none;
    line-height: 1;
    align-self: flex-start;
}

.c2fa-btn:active {
    transform: scale( 0.97 );
}

.c2fa-btn--primary {
    background: #2563eb;
    color: #fff;
}

.c2fa-btn--primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.c2fa-btn--primary:disabled {
    background: #93afd9;
    cursor: not-allowed;
    opacity: 0.75;
}

.c2fa-btn--link {
    background: none;
    color: #2563eb;
    padding: 0.25rem 0;
    text-decoration: underline;
    font-weight: 400;
    font-size: 0.8rem;
}

.c2fa-btn--link:hover {
    color: #1d4ed8;
}

/* Code input + Authorize row */
.c2fa-verify-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.c2fa-code-input {
    width: 160px;
    padding: 0.55rem 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-align: center;
    border: 2px solid #b0bec5;
    border-radius: 6px;
    background: #fff;
    color: #1a202c;
    transition: border-color 0.18s;
    outline: none;
}

.c2fa-code-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.15 );
}

/* Status messages */
.c2fa-msg {
    margin: 0;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    display: none;
}

.c2fa-msg--ok {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.c2fa-msg--err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Verified banner */
.c2fa-verified {
    margin: 0;
    font-weight: 600;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media ( max-width: 480px ) {
    .c2fa-verify-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .c2fa-code-input {
        width: 100%;
    }
}
