/**
 * E-Transfer Instructions Styling
 * Estilos completos para el sistema de pago E-Transfer
 */

/* Contenedor principal de instrucciones */
.mcy-etransfer-instructions {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Grid de 2 columnas: Instrucciones | Imagen */
.mcy-etransfer-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Columna izquierda */
.mcy-etransfer-left {
    display: flex;
    flex-direction: column;
}

/* Columna derecha - Sticky */
.mcy-etransfer-right {
    position: sticky;
    top: 20px;
}

/* Responsive: 1 columna en mobile */
@media (max-width: 1024px) {
    .mcy-etransfer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mcy-etransfer-right {
        position: static;
        order: -1; /* Imagen primero en mobile */
    }
}

/* Header de instrucciones */
.mcy-instruction-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    order: 0;
}

.mcy-instruction-header h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.mcy-instruction-header p {
    color: #666;
    font-size: 16px;
}

/* Imagen de instrucciones - Desktop */
.mcy-thankyou-image-instructions {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mcy-thankyou-image-instructions h3 {
    color: #28a745;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.mcy-thankyou-image-instructions img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff;
}

/* Imagen de instrucciones - Mobile (dentro del shortcode) */
.mcy-thankyou-image-instructions-mobile {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff; /* Fondo blanco para contraste */
    border-radius: 8px;
    border: 2px solid #28a745; /* Borde verde */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    order: 1; /* Desktop: después del header */
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.mcy-thankyou-image-instructions-mobile h3 {
    color: #1f2937 !important; /* Negro/gris oscuro */
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.mcy-thankyou-image-instructions-mobile img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 5px;
    background-color: #ffffff;
    display: block;
    margin: 0 auto;
}

/* Pasos individuales - Diseño Premium */
.mcy-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mcy-step:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
}

.mcy-step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    margin-right: 25px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.mcy-step-content {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.mcy-step-content h4 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.2em;
    font-weight: 800;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Items copiables - Premium */
.mcy-copy-item {
    margin-bottom: 20px;
    width: 100%;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.mcy-copy-item label {
    display: block;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 10px;
    font-size: 13px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcy-copy-data {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.mcy-copy-data span {
    flex: 1;
    min-width: 150px;
    padding: 12px 18px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    color: #1f2937;
    font-weight: 700;
    box-sizing: border-box;
    word-break: break-word;
    transition: all 0.2s ease;
}

.mcy-copy-data span:hover {
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

/* Email ofuscado */
.mcy-obfuscated-email::after {
    content: '@gmail.com'; /* Default, se sobreescribe con inline styles */
}

/* Botones de copiar - Premium Design */
.mcy-copy-button {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3) !important;
}

.mcy-copy-button:hover {
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4) !important;
}

.mcy-copy-button:active {
    background: linear-gradient(135deg, #15803d 0%, #047857 100%) !important;
    transform: translateY(0);
}

.mcy-copy-button.mcy-copy-success {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%) !important;
    transition: all 0.2s !important;
}

.mcy-copy-button.mcy-copy-success:hover {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%) !important;
}

.mcy-copy-button.mcy-copy-error {
    background: #dc3545 !important;
    transition: all 0.2s !important;
}

.mcy-copy-button.mcy-copy-error:hover {
    background: #dc3545 !important;
}

/* Instrucciones post-pago - Premium */
.mcy-post-instructions {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.mcy-post-instructions h4 {
    color: #1e40af;
    margin-top: 0;
    font-size: 1.3em;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcy-post-instructions ul {
    margin: 20px 0;
    padding-left: 25px;
}

.mcy-post-instructions li {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 15px;
    color: #1f2937;
}

.mcy-post-instructions li::marker {
    color: #3b82f6;
    font-weight: bold;
}

.mcy-thank-you {
    font-weight: 600;
    color: #333;
    margin-top: 15px;
}

/* Pago alternativo con tarjeta */
.mcy-alternative-payment {
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    border: 2px dashed #ddd;
}

.mcy-alternative-payment h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.mcy-alternative-payment p {
    color: #666;
    margin-bottom: 20px;
}

.mcy-card-payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35), 
                0 2px 6px rgba(59, 130, 246, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 56px;
}

.mcy-card-payment-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.mcy-card-payment-button:hover::before {
    left: 100%;
}

.mcy-card-payment-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.mcy-card-payment-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 14px 20px rgba(59, 130, 246, 0.45), 
                0 6px 10px rgba(59, 130, 246, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

.mcy-card-payment-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.35), 
                0 3px 7px rgba(59, 130, 246, 0.25);
}

.mcy-card-payment-button:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.mcy-card-payment-button span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.mcy-card-icon {
    height: 32px;
    width: auto;
    max-width: 80px;
    position: relative;
    z-index: 1;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mcy-card-payment-button:hover .mcy-card-icon {
    transform: scale(1.12) translateY(-1px);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

/* ========================================
   RESPONSIVE: MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Contenedor principal */
    .mcy-etransfer-instructions {
        padding: 15px;
        margin: 10px;
    }
    
    /* Header */
    .mcy-instruction-header h3 {
        font-size: 20px;
    }
    
    .mcy-instruction-header p {
        font-size: 14px;
    }
    
    /* ORDEN MOBILE: Imagen primero */
    .mcy-etransfer-instructions {
        display: flex;
        flex-direction: column;
    }
    
    .mcy-thankyou-image-instructions-mobile {
        order: -1 !important; /* Forzar que aparezca primero en mobile */
        margin-bottom: 20px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mcy-instruction-header {
        order: 0;
        margin-bottom: 20px;
    }
    
    .mcy-step {
        order: 2;
        margin-bottom: 20px;
    }
    
    .mcy-post-instructions {
        order: 3;
    }
    
    .mcy-alternative-payment {
        order: 4;
    }
    
    /* Pasos */
    .mcy-step {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .mcy-step-number {
        margin: 0 auto 15px auto;
    }
    
    .mcy-step-content h4 {
        font-size: 16px;
    }
    
    /* Items copiables en mobile */
    .mcy-copy-data {
        flex-direction: column;
        gap: 8px;
    }
    
    .mcy-copy-data span {
        width: 100%;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .mcy-copy-button {
        align-self: center;
        width: fit-content;
        padding: 10px 20px !important;
    }
    
    /* Post instrucciones */
    .mcy-post-instructions {
        padding: 15px;
    }
    
    .mcy-post-instructions h4 {
        font-size: 16px;
    }
    
    .mcy-post-instructions li {
        font-size: 14px;
    }
    
    /* Pago alternativo */
    .mcy-alternative-payment {
        padding: 20px 15px;
    }
    
    .mcy-alternative-payment h4 {
        font-size: 18px;
    }
    
    .mcy-card-payment-button {
        width: 100%;
        justify-content: center;
        padding: 20px 28px;
        font-size: 16px;
        min-height: 60px;
    }
    
    .mcy-card-icon {
        height: 30px;
        max-width: 70px;
    }
}

/* ========================================
   MOBILE EXTRA SMALL (< 480px)
   ======================================== */

@media (max-width: 480px) {
    .mcy-etransfer-instructions {
        padding: 10px;
        margin: 5px;
    }
    
    .mcy-instruction-header h3 {
        font-size: 18px;
    }
    
    .mcy-step {
        padding: 12px;
    }
    
    .mcy-step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .mcy-copy-data span {
        font-size: 12px;
    }
}

/* ========================================
   PRINT STYLES (para imprimir instrucciones)
   ======================================== */

@media print {
    .mcy-copy-button {
        display: none !important;
    }
    
    .mcy-alternative-payment {
        display: none !important;
    }
    
    .mcy-etransfer-instructions {
        box-shadow: none;
    }
}


