/* Estilos Base para Escritorio */
#carrito-seccion {
    max-width: 1000px;
    margin: 20px auto;
    padding: 15px;
    font-family: sans-serif;
}

.carrito-tabla {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.carrito-tabla th, .carrito-tabla td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.resumen-carrito {
    text-align: right;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.btn-pagar {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- MODO MÓVIL (Media Query) --- */
@media screen and (max-width: 600px) {
    /* Ocultamos el encabezado de la tabla */
    .carrito-tabla thead {
        display: none;
    }

    .carrito-tabla, .carrito-tabla tbody, .carrito-tabla tr, .carrito-tabla td {
        display: block;
        width: 100%;
    }

    .carrito-tabla tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .carrito-tabla td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f1f1f1;
    }

    /* Creamos etiquetas usando el contenido antes de cada celda */
    .carrito-tabla td::before {
        content: attr(data-label); /* Necesitaremos agregar este atributo al HTML */
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        text-align: left;
    }

    .carrito-tabla td:last-child {
        border-bottom: none;
    }

    /* Ajuste para la imagen en móvil */
    .carrito-tabla td:first-child {
        text-align: center;
        padding-left: 12px;
    }
    
    .carrito-tabla td:first-child::before {
        content: ""; /* Quitamos la etiqueta para la imagen */
    }
}


/* ============================================ pago estado */
/* Estilos generales de la sección */
.payment-status-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    border-top: 8px solid #ccc;
}

/* Variaciones de colores */
.status-4 { border-top-color: #28a745; background-color: #f8fff9; } /* Verde - Aprobada */
.status-6 { border-top-color: #dc3545; background-color: #fff8f8; } /* Rojo - Rechazada */
.status-5 { border-top-color: #ffc107; background-color: #fffdf5; } /* Amarillo - Expirada */

.status-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Colores de títulos según el código */
.title-4 { color: #28a745; }
.title-6 { color: #dc3545; }
.title-5 { color: #856404; } /* Un amarillo más oscuro para que sea legible */

.payment-details {
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
}

.detail-row b { color: #555; }

.footer-msg {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

