/* =========================================================
   APHAREL — ORDER RECEIVED / THANK YOU
   Página de pedido recibido
========================================================= */


/* =========================================================
   1. OCULTAR TÍTULO "CHECKOUT"
========================================================= */

body.woocommerce-order-received .entry-title {

    display: none !important;

}


/* =========================================================
   2. CONTENEDOR PRINCIPAL
========================================================= */

body.woocommerce-order-received .woocommerce-order {

    width: min(920px, calc(100% - 40px));

    max-width: 920px;

    margin: 65px auto 90px;

    padding: 0;

}


/* =========================================================
   3. MENSAJE DE ÉXITO
========================================================= */

body.woocommerce-order-received
.woocommerce-thankyou-order-received {

    display: flex;

    align-items: center;

    gap: 18px;

    margin: 0 0 28px;

    padding: 26px 30px;

    background: #f7f7f7;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 20px;

    font-weight: 600;

    line-height: 1.4;

}


/* =========================================================
   CHECK DE ÉXITO
========================================================= */

body.woocommerce-order-received
.woocommerce-thankyou-order-received::before {

    content: "✓";

    display: flex;

    align-items: center;

    justify-content: center;

    width: 46px;

    height: 46px;

    min-width: 46px;

    background: #111;

    color: #fff;

    border-radius: 50%;

    font-family: var(--apharel-font-body);

    font-size: 21px;

    font-weight: 500;

    line-height: 1;

}


/* =========================================================
   4. INFORMACIÓN PRINCIPAL DEL PEDIDO
========================================================= */

body.woocommerce-order-received ul.order_details {

    display: grid !important;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1fr)
        minmax(0, 1.8fr)
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    width: 100%;

    margin: 0 0 30px !important;

    padding: 0 !important;

    list-style: none !important;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 18px;

    overflow: hidden;

    box-sizing: border-box;

}


/* =========================================================
   5. CADA DATO DEL PEDIDO
========================================================= */

body.woocommerce-order-received
ul.order_details li {

    float: none !important;

    display: block !important;

    width: auto !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 22px 20px !important;

    background: #fff;

    border: 0 !important;

    border-right: 1px solid #eeeeee !important;

    color: #777;

    font-family: var(--apharel-font-body);

    font-size: 10px;

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 1px;

    text-transform: uppercase;

    box-sizing: border-box;

    overflow: hidden;

}


body.woocommerce-order-received
ul.order_details li:last-child {

    border-right: 0 !important;

}


/* =========================================================
   VALOR DEL DATO
========================================================= */

body.woocommerce-order-received
ul.order_details li strong {

    display: block;

    margin-top: 8px;

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 15px;

    font-weight: 600;

    line-height: 1.35;

    letter-spacing: 0;

    text-transform: none;

    overflow-wrap: anywhere;

}


/* =========================================================
   EMAIL
========================================================= */

body.woocommerce-order-received
ul.order_details li.woocommerce-order-overview__email strong {

    font-size: 14px;

    overflow-wrap: anywhere;

}


/* =========================================================
   MÉTODO DE PAGO
========================================================= */

body.woocommerce-order-received
ul.order_details li.woocommerce-order-overview__payment-method strong {

    font-size: 14px;

    overflow-wrap: break-word;

}


/* =========================================================
   ELIMINAR DECORACIONES DE WOOCOMMERCE
========================================================= */

body.woocommerce-order-received
ul.order_details li::before,
body.woocommerce-order-received
ul.order_details li::after {

    display: none !important;

}


/* =========================================================
   6. DESCRIPCIÓN DEL MÉTODO DE PAGO
========================================================= */

body.woocommerce-order-received
.woocommerce-order-overview + p {

    margin: 0 0 12px;

    color: #555;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    line-height: 1.7;

}


/* =========================================================
   7. CONFIRMACIÓN DE YAPE
========================================================= */

body.woocommerce-order-received
.apharel-yape-confirmation {

    margin: 28px 0;

    padding: 25px 28px;

    background: #f7f7f7;

    border: 1px solid #eeeeee;

    border-radius: 16px;

}


/* 🔴 CAMBIO
   Título → Bebas Neue Cyrillic Bold.
   Peso 700 para igualar el estilo visual del logo.
*/

body.woocommerce-order-received
.apharel-yape-confirmation h2 {

    margin: 0 0 8px;

    color: #111;

    font-family: var(--apharel-font-title);

    font-size: 22px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.5px;

}


body.woocommerce-order-received
.apharel-yape-confirmation p {

    margin: 7px 0;

    color: #666;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    line-height: 1.6;

}


body.woocommerce-order-received
.apharel-yape-confirmation strong {

    display: inline-block;

    margin: 5px 0 10px;

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 18px;

    font-weight: 600;

}


/* =========================================================
   8. DETALLES DEL PEDIDO
========================================================= */

body.woocommerce-order-received
.woocommerce-order-details {

    margin: 38px 0 28px !important;

    padding: 28px !important;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 18px;

    box-sizing: border-box;

}


/* =========================================================
   TÍTULO — DETALLES DEL PEDIDO
========================================================= */

/* 🔴 CAMBIO
   Título → Bebas Neue Cyrillic Bold.
*/

body.woocommerce-order-received
.woocommerce-order-details__title {

    margin: 0 0 22px !important;

    color: #111;

    font-family: var(--apharel-font-title);

    font-size: 25px !important;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.5px;

}


/* =========================================================
   9. TABLA DE PRODUCTOS
========================================================= */

body.woocommerce-order-received
.woocommerce-table--order-details {

    width: 100% !important;

    margin: 0 !important;

    border: 0 !important;

    border-collapse: collapse !important;

    table-layout: auto;

}


/* =========================================================
   CABECERA
========================================================= */

body.woocommerce-order-received
.woocommerce-table--order-details thead th {

    padding: 13px 12px;

    background: #f7f7f7;

    border: 0;

    color: #777;

    font-family: var(--apharel-font-body);

    font-size: 10px;

    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 1px;

    text-transform: uppercase;

}


/* =========================================================
   PRODUCTOS
========================================================= */

body.woocommerce-order-received
.woocommerce-table--order-details tbody td {

    padding: 18px 12px;

    border-bottom: 1px solid #eeeeee;

    color: #222;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    line-height: 1.5;

    vertical-align: middle;

}


/* =========================================================
   NOMBRE DEL PRODUCTO
========================================================= */

body.woocommerce-order-received
.woocommerce-table--order-details .product-name {

    font-family: var(--apharel-font-body);

    font-weight: 500;

}


/* =========================================================
   PRECIO
========================================================= */

body.woocommerce-order-received
.woocommerce-table--order-details .product-total {

    color: #111;

    font-family: var(--apharel-font-body);

    font-weight: 600;

    text-align: right;

    white-space: nowrap;

}


/* =========================================================
   10. TOTALES
========================================================= */

body.woocommerce-order-received
.woocommerce-table--order-details tfoot th {

    padding: 13px 12px;

    background: #fff;

    border: 0;

    color: #777;

    font-family: var(--apharel-font-body);

    font-size: 13px;

    font-weight: 500;

    line-height: 1.4;

    text-align: left;

    letter-spacing: 0;

    text-transform: none;

}


body.woocommerce-order-received
.woocommerce-table--order-details tfoot td {

    padding: 13px 12px;

    background: #fff;

    border: 0;

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    font-weight: 600;

    text-align: right;

}


/* =========================================================
   TOTAL FINAL
========================================================= */

body.woocommerce-order-received
.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received
.woocommerce-table--order-details tfoot tr:last-child td {

    padding-top: 18px;

    padding-bottom: 18px;

    background: #f7f7f7;

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 16px;

    font-weight: 700;

}


/* =========================================================
   11. DATOS DEL CLIENTE / DIRECCIONES
========================================================= */

body.woocommerce-order-received
.woocommerce-customer-details {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 28px;

}


/* =========================================================
   TARJETAS DE DIRECCIÓN
========================================================= */

body.woocommerce-order-received
.woocommerce-column--billing-address,
body.woocommerce-order-received
.woocommerce-column--shipping-address {

    padding: 24px;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 16px;

    box-sizing: border-box;

}


/* =========================================================
   TÍTULO DE DIRECCIÓN
========================================================= */

/* 🔴 CAMBIO
   Título → Bebas Neue Cyrillic Bold.
*/

body.woocommerce-order-received
.woocommerce-column__title {

    margin: 0 0 14px !important;

    color: #111;

    font-family: var(--apharel-font-title);

    font-size: 22px !important;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.5px;

}


/* =========================================================
   DIRECCIÓN
========================================================= */

body.woocommerce-order-received
.woocommerce-customer-details address {

    padding: 0 !important;

    margin: 0 !important;

    border: 0 !important;

    color: #555;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    font-style: normal;

    line-height: 1.8;

}


/* =========================================================
   12. BOTONES
========================================================= */

body.woocommerce-order-received
.apharel-thankyou-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    margin-top: 28px;

}


body.woocommerce-order-received
.apharel-thankyou-actions a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 0 25px;

    border-radius: 10px;

    text-decoration: none;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;

}


/* =========================================================
   BOTÓN — SEGUIR COMPRANDO
========================================================= */

body.woocommerce-order-received
.apharel-thankyou-shop {

    background: #111;

    color: #fff !important;

    border: 1px solid #111;

}


body.woocommerce-order-received
.apharel-thankyou-shop:hover {

    background: #333;

    border-color: #333;

}


/* =========================================================
   BOTÓN — VER PEDIDO
========================================================= */

body.woocommerce-order-received
.apharel-thankyou-view-order {

    background: #fff;

    color: #111 !important;

    border: 1px solid #111;

}


body.woocommerce-order-received
.apharel-thankyou-view-order:hover {

    background: #111;

    color: #fff !important;

}


/* =========================================================
   13. SEPARADOR DE MARCA
========================================================= */

body.woocommerce-order-received
.apharel-thankyou-brand {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 45px;

    color: #999;

    font-family: var(--apharel-font-body);

    font-size: 9px;

    font-weight: 500;

    line-height: 1;

    letter-spacing: 3px;

    text-align: center;

    text-transform: uppercase;

}


body.woocommerce-order-received
.apharel-thankyou-brand::before,
body.woocommerce-order-received
.apharel-thankyou-brand::after {

    content: "";

    flex: 1;

    height: 1px;

    background: #e5e5e5;

}


/* =========================================================
   14. PRODUCTO — IMAGEN EN DETALLES
========================================================= */

body.woocommerce-order-received
.apharel-thankyou-product {

    display: flex;

    align-items: center;

    gap: 16px;

    min-width: 0;

}


body.woocommerce-order-received
.apharel-thankyou-product-image-wrap {

    width: 64px;

    height: 78px;

    flex: 0 0 64px;

    overflow: hidden;

    border-radius: 10px;

    background: #f5f5f5;

}


body.woocommerce-order-received
.apharel-thankyou-product-image-wrap img {

    display: block;

    width: 100% !important;

    height: 100% !important;

    margin: 0 !important;

    padding: 0 !important;

    object-fit: cover;

}


body.woocommerce-order-received
.apharel-thankyou-product-info {

    min-width: 0;

}


body.woocommerce-order-received
.apharel-thankyou-product-name {

    display: block;

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    font-weight: 500;

    line-height: 1.4;

}


/* =========================================================
   15. TABLET
========================================================= */

@media (max-width: 900px) {

    body.woocommerce-order-received
    .woocommerce-order {

        width: calc(100% - 32px);

        margin-top: 45px;

    }


    body.woocommerce-order-received
    ul.order_details {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }


    body.woocommerce-order-received
    ul.order_details li {

        border-bottom: 1px solid #eeeeee !important;

    }


    body.woocommerce-order-received
    ul.order_details li:nth-child(3n) {

        border-right: 0 !important;

    }


    body.woocommerce-order-received
    ul.order_details li:last-child {

        border-bottom: 0 !important;

    }

}


/* =========================================================
   16. CELULAR
========================================================= */

@media (max-width: 767px) {

    body.woocommerce-order-received
    .woocommerce-order {

        width: calc(100% - 24px);

        margin: 30px auto 55px;

    }


    /* =====================================================
       MENSAJE
    ===================================================== */

    body.woocommerce-order-received
    .woocommerce-thankyou-order-received {

        gap: 14px;

        margin-bottom: 20px;

        padding: 20px;

        border-radius: 14px;

        font-size: 17px;

    }


    body.woocommerce-order-received
    .woocommerce-thankyou-order-received::before {

        width: 38px;

        height: 38px;

        min-width: 38px;

        font-size: 18px;

    }


    /* =====================================================
       INFORMACIÓN
    ===================================================== */

    body.woocommerce-order-received
    ul.order_details {

        grid-template-columns:
            1fr 1fr !important;

        margin-bottom: 22px !important;

        border-radius: 14px;

    }


    body.woocommerce-order-received
    ul.order_details li {

        padding: 17px 15px !important;

        border-right: 1px solid #eeeeee !important;

        border-bottom: 1px solid #eeeeee !important;

        font-size: 9px;

    }


    body.woocommerce-order-received
    ul.order_details li:nth-child(2n) {

        border-right: 0 !important;

    }


    body.woocommerce-order-received
    ul.order_details li:last-child {

        border-bottom: 0 !important;

    }


    body.woocommerce-order-received
    ul.order_details li strong {

        font-size: 13px;

    }


    /* =====================================================
       DETALLES
    ===================================================== */

    body.woocommerce-order-received
    .woocommerce-order-details {

        margin-top: 28px !important;

        padding: 17px !important;

        border-radius: 14px;

    }


    body.woocommerce-order-received
    .woocommerce-order-details__title {

        margin-bottom: 17px !important;

        font-size: 21px !important;

        letter-spacing: 1px;

    }


    /* =====================================================
       TABLA
    ===================================================== */

    body.woocommerce-order-received
    .woocommerce-table--order-details thead th {

        padding: 10px 7px;

        font-size: 9px;

    }


    body.woocommerce-order-received
    .woocommerce-table--order-details tbody td {

        padding: 13px 7px;

        font-size: 12px;

    }


    body.woocommerce-order-received
    .woocommerce-table--order-details tfoot th,
    body.woocommerce-order-received
    .woocommerce-table--order-details tfoot td {

        padding: 11px 7px;

        font-size: 12px;

    }


    /* =====================================================
       DIRECCIONES
    ===================================================== */

    body.woocommerce-order-received
    .woocommerce-customer-details {

        grid-template-columns: 1fr;

        gap: 14px;

        margin-top: 20px;

    }


    body.woocommerce-order-received
    .woocommerce-column--billing-address,
    body.woocommerce-order-received
    .woocommerce-column--shipping-address {

        padding: 20px;

        border-radius: 14px;

    }


    /* =====================================================
       BOTONES
    ===================================================== */

    body.woocommerce-order-received
    .apharel-thankyou-actions {

        flex-direction: column;

        gap: 10px;

        margin-top: 22px;

    }


    body.woocommerce-order-received
    .apharel-thankyou-actions a {

        width: 100%;

        min-height: 46px;

    }


    /* =====================================================
       MARCA
    ===================================================== */

    body.woocommerce-order-received
    .apharel-thankyou-brand {

        margin-top: 35px;

        font-size: 8px;

        letter-spacing: 2px;

    }


    /* =====================================================
       PRODUCTO
    ===================================================== */

    body.woocommerce-order-received
    .apharel-thankyou-product {

        gap: 10px;

    }


    body.woocommerce-order-received
    .apharel-thankyou-product-image-wrap {

        width: 52px;

        height: 64px;

        flex-basis: 52px;

        border-radius: 8px;

    }


    body.woocommerce-order-received
    .apharel-thankyou-product-name {

        font-size: 13px;

    }

}


/* =========================================================
   17. ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    body.woocommerce-order-received
    .apharel-thankyou-actions a {

        transition: none;

    }

}