/* Zelle QR Payment Gateway Styles - Version 2.8.0 Optimized */
.zelle-payment-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px !important;
    margin: 10px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.zelle-single-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.zelle-payment-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.zelle-title {
    color: #6d2077;
    margin: 0 0 5px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.zelle-description {
    color: #666;
    margin: 0;
    line-height: 1.4;
    font-size: 0.95em;
}

.zelle-config-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.95em;
}

.zelle-instructions-section h4,
.zelle-account-section h4,
.zelle-qr-section h4,
.zelle-mobile-section h4 {
    color: #333;
    margin: 0 0 8px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.step-number {
    background: #6d2077;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: bold;
    flex-shrink: 0;
}

.zelle-steps {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    counter-reset: step-counter;
}

.zelle-steps li {
    padding: 5px 0 5px 30px !important;
    position: relative;
    line-height: 1.4;
    counter-increment: step-counter;
    color: #555;
    font-size: 0.95em;
}

.zelle-steps li:before {
    content: counter(step-counter) ".";
    position: absolute;
    left: 0;
    color: #6d2077;
    font-weight: bold;
    font-size: 1em;
    width: 22px;
    text-align: center;
}

.account-details {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.account-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0 !important;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    font-size: 0.95em;
}

.account-row:last-child {
    border-bottom: none;
}

.account-row strong {
    color: #333;
    font-weight: 600;
    min-width: 70px;
}

.account-row span {
    color: #6d2077;
    font-weight: 500;
    word-break: break-all;
    text-align: right;
}

.zelle-qr-container {
    text-align: center;
    padding: 15px !important;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.zelle-qr-code {
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px !important;
    display: block;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
    background: white;
}

.qr-instructions {
    color: #666;
    font-style: italic;
    margin: 5px 0 0;
    font-size: 0.9em;
}

.zelle-alternative-section {
    text-align: center;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px dashed #e0e0e0;
}

.zelle-alternative-section p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.zelle-direct-link {
    background: #6d2077;
    color: white !important;
    border: none;
    padding: 8px 16px !important;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin: 5px 0;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.zelle-mobile-button-container {
    text-align: center;
    padding: 15px !important;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.zelle-mobile-deep-link {
    background: linear-gradient(135deg, #6d2077, #8a2be2);
    color: white !important;
    border: none;
    padding: 12px 24px !important;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    font-weight: 600;
    margin: 5px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
    box-shadow: 0 3px 5px rgba(109, 32, 119, 0.15);
}

.mobile-button-instructions {
    color: #666;
    font-size: 0.8em;
    margin: 8px 0 0;
    font-style: italic;
    line-height: 1.3;
}

.zelle-legal-section {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.75em;
    color: #666;
    line-height: 1.4;
    border: 1px solid #e8e8e8;
}

/* Thank you page styles (optimizados) */
.zelle-thankyou-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    max-width: 1200px;
}

.thankyou-logo {
    max-height: 50px;
    margin-bottom: 15px;
}

.order-status-banner {
    padding: 20px;
    margin: 15px auto;
}

.status-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.order-status-banner h2 {
    font-size: 1.5em;
}

/* Responsive optimizado */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .zelle-payment-container {
        padding: 10px !important;
    }
    
    .zelle-steps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .zelle-step-card {
        padding: 20px;
    }
    
    .zelle-step-card .step-number {
        width: 35px;
        height: 35px;
        top: -12px;
        left: -12px;
    }
    
    .order-status-banner {
        padding: 15px;
    }
    
    .order-status-banner h2 {
        font-size: 1.3em;
    }
    
    .account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .account-row span {
        text-align: left;
    }
    
    .details-container p {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .zelle-mobile-deep-link {
        width: 100%;
        max-width: 250px;
        padding: 10px 20px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .zelle-step-card,
    .zelle-direct-link,
    .zelle-mobile-deep-link,
    #submit-zelle-confirmation {
        transition: none;
        transform: none !important;
    }
}

/* === CORRECCIÓN DE VISIBILIDAD MÓVIL/DESKTOP === */
@media (min-width: 769px) {
    .mobile-only,
    .zelle-mobile-section.mobile-only {
        display: none !important;
    }
    .desktop-only,
    .zelle-qr-section.desktop-only {
        display: block !important;
    }
}

/* Asegurar que en móvil se oculte desktop y se muestre móvil */
@media (max-width: 768px) {
    .desktop-only,
    .zelle-qr-section.desktop-only {
        display: none !important;
    }
    .mobile-only,
    .zelle-mobile-section.mobile-only {
        display: block !important;
    }
}

/* Reglas adicionales de garantía */
.zelle-mobile-section.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .zelle-mobile-section.mobile-only {
        display: block;
    }
}

.zelle-qr-section.desktop-only {
    display: block;
}
@media (max-width: 768px) {
    .zelle-qr-section.desktop-only {
        display: none;
    }
}