/* FluentForm – Cardnet Botón de Pago */

.ff-carnet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
}

.ff-carnet-modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Cardnet wordmark as inline SVG */
.ff-carnet-logo {
    width: 140px;
    height: 44px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 44'%3E%3Crect width='140' height='44' rx='6' fill='%23e30613'/%3E%3Ctext x='70' y='29' font-family='Arial' font-size='18' font-weight='700' fill='%23fff' text-anchor='middle'%3ECARDNET%3C/text%3E%3C/svg%3E") center/contain no-repeat;
}

/* CSS spinner */
.ff-carnet-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e30613;
    border-radius: 50%;
    animation: ff-carnet-spin 0.9s linear infinite;
}

@keyframes ff-carnet-spin {
    to { transform: rotate(360deg); }
}

.ff-carnet-redirecting-msg {
    font-size: 14px;
    color: #4b5563;
    text-align: center;
    margin: 0;
}

/* Inline error before the form */
.ff-carnet-page-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (max-width: 480px) {
    .ff-carnet-modal {
        padding: 28px 20px;
    }
}
