/* Estilos para la página de agradecimiento de ePayco - Estilo Carrito de Compras */

.epayco-thankyou-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    min-height: 100vh;
}

/* Loading */
.epayco-loading {
    text-align: center;
    padding: 80px 20px;
}

.epayco-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f4dbe1;
    border-top: 3px solid #f58ea3;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.epayco-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Header estilo carrito */
.epayco-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.epayco-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.epayco-header h2 {
    font-size: 28px;
    margin: 0;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.epayco-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.epayco-status-badge.success {
    background: #f58ea3;
    color: white;
}

.epayco-status-badge.pending {
    background: #fff9e9;
    color: #a5762f;
    border: 1px solid #f5cad4;
}

.epayco-status-badge.error {
    background: #ffd2d2;
    color: #a5762f;
    border: 1px solid #f5cad4;
}

/* Tarjeta de resumen de transacción */
.epayco-summary-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.epayco-summary-header {
    background: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.epayco-summary-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.epayco-amount-display {
    font-size: 32px;
    font-weight: 700;
    color: #f58ea3;
    letter-spacing: -0.5px;
}

/* Información de la transacción */
.epayco-transaction-info {
    padding: 0;
}

.epayco-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.epayco-info-item:last-child {
    border-bottom: none;
}

.epayco-info-item:nth-child(even) {
    background: #fafafa;
}

.epayco-info-item:hover {
    background: #f8f9fa;
}

.epayco-info-item .info-label {
    font-weight: 600;
    color: #666;
    font-size: 15px;
    min-width: 140px;
}

.epayco-info-item .info-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    max-width: 300px;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.4;
}

/* Indicadores de estado */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success {
    background: #f58ea3;
}

.status-pending {
    background: #a5762f;
}

.status-error {
    background: #ff6b6b;
}

/* Mensaje de confirmación */
.epayco-confirmation-message {
    margin-bottom: 40px;
}

.epayco-success, .epayco-pending, .epayco-error {
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.epayco-success {
    background: #f8f9fa;
    border: 2px solid #f58ea3;
}

.epayco-pending {
    background: #fff9e9;
    border: 2px solid #f5cad4;
}

.epayco-error {
    background: #fff5f5;
    border: 2px solid #ffd2d2;
}

.epayco-success h3, .epayco-pending h3, .epayco-error h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.epayco-success p, .epayco-pending p, .epayco-error p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
}

/* Pasos siguientes */
.epayco-next-steps {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #f0f0f0;
    text-align: left;
    width: 100%;
    max-width: 600px;
}

.epayco-next-steps h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.epayco-next-steps ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.epayco-next-steps li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.epayco-next-steps li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f58ea3;
    font-weight: bold;
    font-size: 18px;
}

.epayco-next-steps li:last-child {
    margin-bottom: 0;
}

/* Mensaje de soporte */
.epayco-support-message {
    margin-top: 20px;
    padding: 20px;
    background: rgba(245, 142, 163, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(245, 142, 163, 0.2);
    width: 100%;
    max-width: 600px;
}

.epayco-support-message p {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

/* Enlace de WhatsApp */
.whatsapp-link {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-link:hover {
    color: #128c7e;
    text-decoration: underline;
}

.whatsapp-icon {
    font-size: 16px;
    display: inline-block;
}

/* Iconos de estado */
.success-icon, .pending-icon, .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.success-icon {
    color: #f58ea3;
}

.pending-icon {
    color: #a5762f;
}

.error-icon {
    color: #ff6b6b;
}

/* Contenedor de error */
.epayco-error-container {
    text-align: center;
    padding: 60px 20px;
}

.epayco-error-container .epayco-error {
    background: #fff5f5;
    border: 2px solid #ffd2d2;
    color: #333;
    padding: 40px;
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .epayco-thankyou-container {
        padding: 20px 15px;
    }
    
    .epayco-header {
        padding: 20px 15px;
        margin-bottom: 30px;
    }
    
    .epayco-header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .epayco-header h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .epayco-summary-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 20px;
    }
    
    .epayco-amount-display {
        font-size: 28px;
    }
    
    .epayco-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 20px;
    }
    
    .epayco-info-item .info-label {
        min-width: auto;
        font-size: 14px;
    }
    
    .epayco-info-item .info-value {
        text-align: left;
        max-width: none;
        font-size: 14px;
    }
    
    .epayco-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .epayco-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 28px;
    }
    
    .epayco-success, .epayco-pending, .epayco-error {
        padding: 25px 20px;
    }
    
    .epayco-success h3, .epayco-pending h3, .epayco-error h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .epayco-thankyou-container {
        padding: 15px 10px;
    }
    
    .epayco-header h2 {
        font-size: 22px;
    }
    
    .epayco-summary-header h3 {
        font-size: 18px;
    }
    
    .epayco-amount-display {
        font-size: 24px;
    }
    
    .epayco-info-item {
        padding: 18px 15px;
    }
    
    .epayco-info-item .info-label {
        font-size: 13px;
    }
    
    .epayco-info-item .info-value {
        font-size: 13px;
    }
}

/* Animaciones */
.epayco-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.epayco-info-item {
    animation: slideInLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.epayco-info-item:nth-child(1) { animation-delay: 0.1s; }
.epayco-info-item:nth-child(2) { animation-delay: 0.2s; }
.epayco-info-item:nth-child(3) { animation-delay: 0.4s; }
.epayco-info-item:nth-child(4) { animation-delay: 0.5s; }
.epayco-info-item:nth-child(5) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estados de transacción específicos */
.transaction-success .epayco-status-badge {
    background: #f58ea3;
    color: white;
}

.transaction-pending .epayco-status-badge {
    background: #fff9e9;
    color: #a5762f;
    border: 1px solid #f5cad4;
}

.transaction-error .epayco-status-badge {
    background: #ffd2d2;
    color: #a5762f;
    border: 1px solid #f5cad4;
}

/* Mejoras visuales adicionales */
.epayco-summary-card:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

/* Scrollbar personalizado */
.epayco-thankyou-container::-webkit-scrollbar {
    width: 6px;
}

.epayco-thankyou-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.epayco-thankyou-container::-webkit-scrollbar-thumb {
    background: #f58ea3;
    border-radius: 3px;
}

.epayco-thankyou-container::-webkit-scrollbar-thumb:hover {
    background: #f7b3c2;
}
