<!-- sm-title -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="width: 100%; max-width: 100%;">
    <tr>
        <td class="sm-title" valign="top" align="left" style="text-transform:uppercase;font-family:'Montserrat', serif !important; line-height: 24px; font-style: normal;  font-weight: 600; font-size: 18px; letter-spacing: 0.03em; color: #353535; padding: 0 8px 8px;border-bottom: 1px dashed #dddddd;">

            Données de pré-inscription

        </td>
    </tr>
</table>
<!-- sm-title -->

<!-- space -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" style="width:100%;max-width:100%;">
    <tr>
        <td valign="middle" align="center" height="12" style="font-size: 12px; line-height: 12px;">&nbsp;</td>
    </tr>
</table>
<!-- space -->

<!-- CONDICIONAL PARA EL ID DE PEDIDO -->
<?php if ($compra['id_pedido'] != 0) { ?>

    <!-- title -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="width:100%; max-width:100%;">
        <tr>
            <td class="title desplazar-derecha" valign="middle" align="left" style="font-family: 'Montserrat', sans-serif; font-size: 12px; line-height: 20px; font-style: normal; color: #473d37; text-decoration: none; letter-spacing: 1px;  padding: 5px 8px 0;">

                <span style="font-weight: 500; text-transform: uppercase;">Numéro de commande</span> <br />

                <span style="font-size: 12px;font-family: 'Inter', sans-serif;color: #222222;font-weight: 500;letter-spacing: 0.03em;">
                    <!-- ID DE PEDIDO -->
                    <?php echo $compra['id_pedido']; ?>
                </span>

            </td>
        </tr>
    </table>
    <!-- title -->

<?php } ?>

<!-- space -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" style="width:100%;max-width:100%;">
    <tr>
        <td valign="middle" align="center" height="10" style="font-size:10px;line-height:10px;">&nbsp;</td>
    </tr>
</table>
<!-- space -->

<!-- title -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="width:100%; max-width:100%;">
    <tr>
        <td class="title desplazar-derecha" valign="middle" align="left" style="font-family: 'Montserrat', sans-serif; font-size: 12px; line-height: 20px; font-style: normal; color: #473d37; text-decoration: none; letter-spacing: 1px;  padding: 5px 8px 0;">

            <span style="font-weight: 500; text-transform: uppercase;">SERVICE</span> <br />

            <span style="font-size: 12px;font-family: 'Inter', sans-serif;color: #222222;font-weight: 500;letter-spacing: 0.03em;">
                <!-- SERVICIO -->
                <?php echo $compra['servicio']; ?>
            </span>

        </td>
    </tr>
</table>
<!-- title -->

<!-- space -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" style="width:100%;max-width:100%;">
    <tr>
        <td valign="middle" align="center" height="10" style="font-size:10px;line-height:10px;">&nbsp;</td>
    </tr>
</table>
<!-- space -->

<!-- title -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="width:100%; max-width:100%;">
    <tr>
        <td class="title desplazar-derecha" valign="middle" align="left" style="font-family: 'Montserrat', sans-serif; font-size: 12px; line-height: 20px; font-style: normal; color: #473d37; text-decoration: none; letter-spacing: 1px;  padding: 5px 8px 0;">

            <span style="font-weight: 500; text-transform: uppercase;">DATE D'ACHAT</span> <br />

            <span style="font-size: 12px;font-family: 'Inter', sans-serif;color: #222222;font-weight: 500;letter-spacing: 0.03em;">
                <!-- FECHA DE COMPRA -->
                <?php echo $compra['fecha_compra']; ?>
            </span>
        </td>
    </tr>
</table>
<!-- title -->

<?php if ($compra['creditos'] == 1) { ?>

    <!-- space -->
    <table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" style="width:100%;max-width:100%;">
        <tr>
            <td valign="middle" align="center" height="10" style="font-size:10px;line-height:10px;">&nbsp;</td>
        </tr>
    </table>
    <!-- space -->

    <!-- title -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="width:100%; max-width:100%;">
        <tr>
            <td class="title desplazar-derecha" valign="middle" align="left" style="font-family: 'Inter', sans-serif; font-size: 12px; line-height: 20px; font-style: normal; color: #473d37; text-decoration: none; letter-spacing: 1px;  padding: 5px 8px 0;">

                <span style="font-weight: 500; text-transform: uppercase;">Crédits totaux</span> <br />

                <span style="font-size: 14px;color: #222222;font-weight: 500;letter-spacing: 0.03em;">
                    <!-- CRÉDITOS TOTALES -->
                    <?php echo $compra['creditos_totales'] . ' crédits'; ?>
                </span>

            </td>
        </tr>
    </table>
    <!-- title -->

    <!-- space -->
    <table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" style="width:100%;max-width:100%;">
        <tr>
            <td valign="middle" align="center" height="10" style="font-size:10px;line-height:10px;">&nbsp;</td>
        </tr>
    </table>
    <!-- space -->

    <!-- title -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="width:100%; max-width:100%;">
        <tr>
            <td class="title desplazar-derecha" valign="middle" align="left" style="font-family: 'Inter', sans-serif; font-size: 12px; line-height: 20px; font-style: normal; color: #473d37; text-decoration: none; letter-spacing: 1px;  padding: 5px 8px 0;">


                <span style="font-weight: 500; text-transform: uppercase;">Crédits restants:</span> <br />

                <span style="font-size: 14px;color: #222222;font-weight: 500;letter-spacing: 0.03em;">
                    <!-- CRÉDITOS RESTANTES -->
                    <?php echo $compra['creditos_restantes'] . ' créditos'; ?>
                </span>

            </td>
        </tr>
    </table>
    <!-- title -->

<?php } ?>

<!-- space -->
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" style="width:100%;max-width:100%;">
    <tr>
        <td valign="middle" align="center" height="10" style="font-size:10px;line-height:10px;">&nbsp;</td>
    </tr>
</table>
<!-- space -->

<!-- title -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="width:100%; max-width:100%;">
    <tr>
        <td class="title desplazar-derecha" valign="middle" align="left" style="font-family: 'Montserrat', sans-serif; font-size: 12px; line-height: 20px; font-style: normal; color: #473d37; text-decoration: none; letter-spacing: 1px;  padding: 5px 8px 0;">

            <span style="font-weight: 500; text-transform: uppercase;">DATE DE L'ÉVÉNEMENT</span> <br />

            <span style="font-size: 12px;font-family: 'Inter', sans-serif;color: #222222;font-weight: 500;letter-spacing: 0.03em;">
                <?php echo $compra['fecha_reserva']; ?>
            </span>

        </td>
    </tr>
</table>
<!-- title -->