.wcfx-pum{
	display:block !important;
	margin-top:2px;
	font-size:14px;
	line-height:1.2;
	opacity:0.85;
}

/* Catálogo: tu theme centra el precio; centramos PUM también y lo separamos de los botones */
.woocommerce ul.products li.product .wcfx-pum,
.product-block .caption .meta .infor .wcfx-pum{
	text-align:center;
	width:100%;
}

/* Tarjetas compactas: mantenerlo pegado al precio */
.product-block.grid .caption .meta .infor .wcfx-pum{
	margin-top:2px;
}

/* Single product: normalmente luce mejor alineado a la izquierda con el precio */
.single-product .summary .wcfx-pum{
	text-align:left;
}


/* Cabecera de categoría en detalles de pedido (frontend) */
.wcfx-order-cat-heading{display:block;}


/* =========================================================
   Checkout / Cart UX (solo escritorio)
========================================================= */
.wcfx-toggle-row td,
.wcfx-toggle-cell{
    text-align:center;
    background:#fff;
}

.wcfx-toggle-button.button,
.wcfx-toggle-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:10px 18px;
    border-radius:8px;
    border:1px solid rgba(28, 13, 110, 0.12);
    background:#f7f7fb;
    color:#1c0d6e;
    font-weight:600;
    text-decoration:none;
    box-shadow:none;
}

.wcfx-toggle-button.button:hover,
.wcfx-toggle-button:hover,
.wcfx-toggle-button.button:focus,
.wcfx-toggle-button:focus{
    background:#efeff8;
    color:#1c0d6e;
    box-shadow:none;
}


.wcfx-toggle-actions{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
}

.wcfx-back-top-button.button,
.wcfx-back-top-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:9px 18px;
    border-radius:8px;
    border:1px solid rgba(28, 13, 110, 0.12);
    background:#fff;
    color:#1c0d6e;
    font-weight:600;
    text-decoration:none;
    box-shadow:none;
}

.wcfx-back-top-button.button:hover,
.wcfx-back-top-button:hover,
.wcfx-back-top-button.button:focus,
.wcfx-back-top-button:focus{
    background:#f7f7fb;
    color:#1c0d6e;
    box-shadow:none;
}

@media (max-width: 991px){
    body.woocommerce-cart .wcfx-toggle-row,
    body.woocommerce-checkout:not(.woocommerce-order-received) .wcfx-toggle-row{
        display:none !important;
    }
}


/* =========================================================
   Checkout review UX hotfix v1.5.1
   - Centrado real del botón "Ver más productos"
   - Normalización visual de imagen + título + cantidad
========================================================= */
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tr.wcfx-toggle-row td.wcfx-toggle-cell,
body.woocommerce-cart table.shop_table.cart tr.wcfx-toggle-row td.wcfx-toggle-cell,
body.woocommerce-cart table.shop_table.shop_table_responsive.cart tr.wcfx-toggle-row td.wcfx-toggle-cell{
    text-align:center !important;
    padding:16px 0 20px !important;
}

body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table .wcfx-toggle-button.button,
body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table .wcfx-toggle-button,
body.woocommerce-cart table.shop_table.cart .wcfx-toggle-button.button,
body.woocommerce-cart table.shop_table.cart .wcfx-toggle-button,
body.woocommerce-cart table.shop_table.shop_table_responsive.cart .wcfx-toggle-button.button,
body.woocommerce-cart table.shop_table.shop_table_responsive.cart .wcfx-toggle-button{
    display:flex !important;
    width:max-content;
    max-width:100%;
    margin:0 auto !important;
    float:none !important;
}

@media (min-width: 992px){
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name{
        vertical-align:top !important;
    }

    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-layout{
        display:grid;
        grid-template-columns:56px minmax(0, 1fr);
        grid-template-areas:
            "thumb main"
            "thumb qty";
        column-gap:16px;
        row-gap:10px;
        align-items:start;
    }

    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-thumb{
        grid-area:thumb;
        width:56px;
        min-width:56px;
    }

    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-thumb img{
        display:block;
        width:48px !important;
        height:48px !important;
        max-width:48px !important;
        max-height:48px !important;
        object-fit:contain;
        margin:0 auto 0 0;
    }

    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-main{
        grid-area:main;
        min-height:3.2em;
        line-height:1.4;
    }

    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-main br + .quantity,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-main .quantity,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-main .product-quantity{
        display:none !important;
    }

    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty{
        grid-area:qty;
        display:flex;
        align-items:center;
        justify-content:flex-start;
        min-height:40px;
        margin-top:0;
    }

    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty .quantity,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty .product-quantity,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty .quantity-wrap,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty .quantity-wrapper,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty .qty-wrapper,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty .qty-wrap,
    body.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tbody > tr.cart_item td.product-name .wcfx-review-item-qty .ct-quantity{
        margin:0 !important;
    }
}


/* =========================================================
   Thank you / Mi cuenta > Ver pedido
   - Colapsado de productos también en móvil
========================================================= */
body.woocommerce-order-received table.woocommerce-table--order-details tr.wcfx-toggle-row td.wcfx-toggle-cell,
body.woocommerce-view-order table.woocommerce-table--order-details tr.wcfx-toggle-row td.wcfx-toggle-cell,
body.woocommerce-account table.shop_table.order_details tr.wcfx-toggle-row td.wcfx-toggle-cell{
    text-align:center !important;
    padding:16px 0 20px !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details .wcfx-toggle-button.button,
body.woocommerce-order-received table.woocommerce-table--order-details .wcfx-toggle-button,
body.woocommerce-view-order table.woocommerce-table--order-details .wcfx-toggle-button.button,
body.woocommerce-view-order table.woocommerce-table--order-details .wcfx-toggle-button,
body.woocommerce-account table.shop_table.order_details .wcfx-toggle-button.button,
body.woocommerce-account table.shop_table.order_details .wcfx-toggle-button{
    display:flex !important;
    width:max-content;
    max-width:100%;
    margin:0 auto !important;
    float:none !important;
}


/* =========================================================
   Checkout review UX hotfix v1.5.4
   - Volver arriba al final real de la lista expandida
========================================================= */
.wcfx-back-row td,
.wcfx-back-cell{
    text-align:center;
    background:#fff;
}

.wcfx-back-row .wcfx-toggle-actions,
.wcfx-back-row .wcfx-back-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
}

.wcfx-back-row .wcfx-back-top-button.button,
.wcfx-back-row .wcfx-back-top-button{
    margin:0 auto !important;
    float:none !important;
}
