/* ================================================
   ESTILOS PARA INTEGRAÇÃO MERCADO PAGO
   ================================================ */

/* Garantir que o modal do Mercado Pago apareça sobre tudo */
#mercadopago-checkout-frame,
.mercadopago-overlay,
.mercadopago-modal {
    z-index: 99999 !important;
}

/* Loading Overlay */
.payment-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loading-content .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Payment Result Messages */
.payment-result {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 60px auto;
}

.payment-result svg {
    margin-bottom: 30px;
}

.payment-result h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.payment-result p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.payment-result.success h2 {
    color: #4caf50;
}

.payment-result.pending h2 {
    color: #ff9800;
}

.payment-result.error h2 {
    color: #f44336;
}

/* Order Info Box */
.order-info {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.order-info p {
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}

.order-info strong {
    color: #000;
    font-weight: 600;
}

/* Action Buttons */
.payment-result .actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.payment-result .actions .btn {
    min-width: 180px;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-result {
        padding: 40px 20px;
        margin: 30px 20px;
    }

    .payment-result h2 {
        font-size: 1.5rem;
    }

    .payment-result .actions {
        flex-direction: column;
    }

    .payment-result .actions .btn {
        width: 100%;
    }
}

/* Checkout Button Enhancement */
.btn-large svg {
    margin-right: 8px;
    vertical-align: middle;
}

.btn-large:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Payment Processing Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.processing {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #2e7d32;
}

.security-badge svg {
    width: 20px;
    height: 20px;
}

/* Mercado Pago Logo */
.mp-logo {
    width: 120px;
    margin: 20px 0;
    opacity: 0.7;
}

/* Payment Methods Icons */
.payment-methods-display {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.payment-method-icon {
    width: 50px;
    height: 35px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid #e0e0e0;
}

.payment-method-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.approved {
    background: #4caf50;
    color: white;
}

.status-badge.pending {
    background: #ff9800;
    color: white;
}

.status-badge.rejected {
    background: #f44336;
    color: white;
}

/* Checkout Modal Override (se necessário) */
.cho-container {
    z-index: 9999 !important;
}

/* Success Animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.payment-result.success {
    animation: successPulse 0.6s ease-out;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: #4caf50;
}

@media (max-width: 640px) {
    .trust-indicators {
        flex-direction: column;
        gap: 15px;
    }
}
