/* ==========================================================
   APM Gracias PRO V1.0
========================================================== */

.apmgp-wrapper{
    position:relative;
    max-width:900px;
    margin:40px auto 60px;
    padding:0 20px;
    z-index:2;
}

#apmgp-confetti{
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    pointer-events:none;
    z-index:9999;
    display:block;
}

.apmgp-card{
    background:#ffffff;
    border-radius:18px;
    border:1px solid #ececec;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
    padding:45px;
    text-align:center;
    overflow:hidden;
}

.apmgp-check{
    margin-bottom:20px;
}

.apmgp-check svg{
    width:95px;
    height:95px;
}

.apmgp-title{
    font-size:36px;
    line-height:1.2;
    font-weight:700;
    color:#222;
    margin:0 0 15px;
}

.apmgp-subtitle{
    max-width:650px;
    margin:0 auto 35px;
    font-size:16px;
    color:#666;
    line-height:1.7;
}

.apmgp-summary{
    border:1px solid #ececec;
    border-radius:10px;
    overflow:hidden;
    margin:35px 0;
}

.apmgp-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 22px;
    border-bottom:1px solid #efefef;
}

.apmgp-row:last-child{
    border-bottom:none;
}

.apmgp-row span{
    color:#666;
    font-weight:500;
}

.apmgp-row strong{
    color:#222;
    font-weight:700;
}

.apmgp-products-title{
    margin:40px 0 20px;
    font-size:28px;
    font-weight:700;
    color:#222;
}

.apmgp-table{
    width:100%;
    border-collapse:collapse;
    margin-bottom:35px;
}

.apmgp-table th{
    background:#f7f7f7;
    padding:15px;
    font-size:14px;
    text-transform:uppercase;
    border-bottom:1px solid #ececec;
}

.apmgp-table td{
    padding:16px;
    border-bottom:1px solid #f1f1f1;
}

.apmgp-table th:nth-child(2),
.apmgp-table td:nth-child(2),
.apmgp-table th:nth-child(3),
.apmgp-table td:nth-child(3){
    text-align:center;
}

.apmgp-shipping-row td{
    background:#fafafa;
    border-top:1px solid #ececec;
    border-bottom:none;
    font-weight:600;
    color:#555;
}

.apmgp-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f8f8f8;
    padding:20px 25px;
    border-radius:10px;
    font-size:24px;
    font-weight:700;
    margin-bottom:35px;
}

.apmgp-buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
    margin-top:25px;
}

.apmgp-buttons a,
.apmgp-buttons a:visited{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width:210px;
    height:48px;
    padding:0 24px;
    border-radius:8px;
    text-decoration:none !important;
    font-size:15px;
    font-weight:600;
    transition:all .25s ease;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

/* =====================================
   Ver Pedido
===================================== */

.apmgp-primary,
.apmgp-primary:visited{
    background:var(--fs-color-primary,#446084);
    color:#fff !important;
}

.apmgp-primary:hover{
    filter:brightness(.92);
    color:#fff !important;
    transform:translateY(-2px);
}

/* =====================================
   Volver a la Tienda
===================================== */

.apmgp-secondary,
.apmgp-secondary:visited{
    background:#d9534f;
    color:#fff !important;
}

.apmgp-secondary:hover{
    background:#c94440;
    color:#fff !important;
    transform:translateY(-2px);
}

/* =====================================
   WhatsApp
===================================== */

.apmgp-whatsapp,
.apmgp-whatsapp:visited{
    background:#25D366;
    color:#fff !important;
}

.apmgp-whatsapp:hover{
    background:#1fb65a;
    color:#fff !important;
    transform:translateY(-2px);
}

@media(max-width:768px){

    .apmgp-wrapper{
        margin:20px auto 40px;
        padding:0 15px;
    }

    .apmgp-card{
        padding:25px;
    }

    .apmgp-title{
        font-size:28px;
    }

    .apmgp-subtitle{
        font-size:15px;
    }

    .apmgp-row{
        flex-direction:column;
        text-align:center;
        gap:8px;
    }

    .apmgp-total{
        flex-direction:column;
        gap:10px;
        text-align:center;
        font-size:20px;
    }

    .apmgp-buttons{
        flex-direction:column;
    }

    .apmgp-buttons a{
        width:100%;
        max-width:100%;
    }

    .apmgp-table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

}