﻿/* =========================================================
   RECIBO FINAL - PASARELA DE PAGOS
   ========================================================= */

.payment-result-page {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 50px 20px 70px;
    box-sizing: border-box;
    background: radial-gradient(circle at 10% 20%, rgba(230, 235, 242, 0.45), transparent 30%), radial-gradient(circle at 90% 80%, rgba(230, 235, 242, 0.45), transparent 30%), #f7f8fa;
}


.payment-result-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   TARJETA
   ========================================================= */

.payment-receipt-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 42px 48px 35px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf0f3;
    box-sizing: border-box;
}


/* =========================================================
   CABECERA
   ========================================================= */

.payment-status-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9edf2;
}


.payment-status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf7ef;
    color: #16834a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    font-weight: bold;
}


.payment-title {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #17253d;
}


.payment-status-message {
    margin-top: 10px;
    color: #667085;
    font-size: 15px;
}


/* =========================================================
   DETALLES
   ========================================================= */

.payment-details {
    margin-top: 10px;
}


.payment-detail-row {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 58px;
    align-items: center;
    border-bottom: 1px solid #edf0f3;
}


.payment-detail-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-size: 15px;
}


.payment-detail-value {
    color: #1f2937;
    font-size: 15px;
    word-break: break-word;
}


.detail-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f1f4f8;
    color: #42526b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}


/* =========================================================
   TOTAL
   ========================================================= */

.payment-total-row {
    background: #fafbfc;
    margin: 4px 0;
    border-radius: 8px;
    border-bottom: none;
    padding: 4px 12px;
}


.payment-total-value {
    color: #17253d;
    font-size: 22px;
    font-weight: 700;
}


/* =========================================================
   REFERENCIA
   ========================================================= */

.payment-reference {
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* =========================================================
   MENSAJE FACTURACIÓN
   ========================================================= */

.payment-billing-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: 10px;
    background: #f1f7ff;
    border: 1px solid #cfe2ff;
    color: #24558c;
    font-size: 14px;
    line-height: 1.5;
}


.billing-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #2878d8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}


.billing-text {
    padding-top: 3px;
}


/* =========================================================
   ERROR
   ========================================================= */

.payment-error-message {
    text-align: center;
    margin-top: 20px;
}


/* =========================================================
   BOTÓN IMPRIMIR
   ========================================================= */

.payment-actions {
    text-align: center;
    margin-top: 30px;
}


.btn-print {
    border: 1px solid #17253d;
    background: #17253d;
    color: white;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}


    .btn-print:hover {
        background: #263955;
    }


/* =========================================================
   ELEMENTOS INTERNOS
   ========================================================= */

.payment-internal {
    display: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .payment-result-page {
        padding: 25px 12px 40px;
    }

    .payment-receipt-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .payment-title {
        font-size: 23px;
    }

    .payment-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px 0;
    }

    .payment-detail-value {
        padding-left: 42px;
    }

    .payment-total-value {
        padding-left: 0;
    }
}


/* =========================================================
   IMPRESIÓN
   ========================================================= */

@media print {

    body {
        background: white !important;
    }

    .payment-result-page {
        padding: 0;
        background: white !important;
        min-height: auto;
    }

    .payment-result-container {
        max-width: 100%;
    }

    .payment-receipt-card {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 20px;
    }

    .payment-actions {
        display: none !important;
    }

    .payment-billing-message {
        break-inside: avoid;
    }

    .payment-detail-row {
        break-inside: avoid;
    }
}
