/**
 * Modal correo Flow — portal cliente y pago express
 */
.flow-email-modal.modal {
    z-index: 1070 !important;
}

.flow-email-modal .modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.flow-email-modal__header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.flow-email-modal__header .modal-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.flow-email-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.flow-email-modal__icon--error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.flow-email-modal__body {
    padding: 1.25rem;
    background: #f8fafc;
}

.flow-email-modal__desc {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.flow-email-modal__field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.flow-email-modal__field .form-control {
    border-radius: 10px;
    border-color: #cbd5e1;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flow-email-modal__field .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.flow-email-modal__field .form-control.is-invalid {
    border-color: #dc2626;
}

.flow-email-modal__hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #1e40af;
}

.flow-email-modal__summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.flow-email-modal__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.flow-email-modal__summary-row strong {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.flow-email-modal__summary-row--total strong {
    font-size: 1.05rem;
    color: #1e3a8a;
}

.flow-email-modal__icon--confirm {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.flow-email-modal__footer {
    border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1.25rem;
    background: #fff;
    gap: 0.5rem;
}

.flow-email-modal__footer .btn {
    border-radius: 10px;
    font-weight: 600;
    min-width: 7rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.flow-email-modal__footer .btn-primary {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.flow-email-modal__footer .btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
}

@media (max-width: 576px) {
    .flow-email-modal__footer {
        flex-direction: column-reverse;
    }
    .flow-email-modal__footer .btn {
        width: 100%;
    }
}
