/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

.shoptimizer-mini-cart-wrap .woocommerce-mini-cart__empty-message::before {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: -5px;
    margin-left: -10px;
    content: "";
    display: block;
    width: 70px;
    height: 70px;
    background: #e2e2e2;
    -webkit-mask-image: url(/wp-content/uploads/2024/04/vestaire-icon-empty-small.png) !important;
    mask-image: url(/wp-content/uploads/2024/04/vestaire-icon-empty-small.png) !important;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.woocommerce-mini-cart-item dl.variation,
#order_review .cart_item dl.variation {
    display: block !important;
}

.woocommerce-mini-cart-item dl.variation dt,
.woocommerce-mini-cart-item dl.variation dd,

#order_review .cart_item dl.variation dt,
#order_review .cart_item dl.variation dd {
    display: inline !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
}
.woocommerce-mini-cart-item dl.variation dt,
#order_review .cart_item dl.variation dt {
    font-weight: 600;
    margin-right: 4px !important;
}
.woocommerce-mini-cart-item dl.variation dd p,
#order_review .cart_item dl.variation dd p {
    display: inline !important;
    margin: 0 !important;
}
.mini_cart_item .variation dt > img,
.mini_cart_item .variation dd > img,

#order_review .cart_item dl.variation dt > img,
#order_review .cart_item dl.variation dd > img {
    display: none!important;
}
.woocommerce-mini-cart-item dl.variation dd::after,
#order_review .cart_item dl.variation dd::after {
    content: "";
    display: block;
}
html body.single-product .rightpress_product_price_live_update .woocommerce-Price-amount {
    color: #1d1d1d!important;
    font-weight: bold!important;
}
body.single-product .summary > p.price ins {
    color: #e92828!important;
}



/* ==========================================================
   SIMPLE PRODUCTS — CART LAYOUT COMPATIBILITY
   Products without WooCommerce variations / Taille selector
   ========================================================== */


/* ==========================================================
   DESKTOP / TABLET
   ========================================================== */

body.single-product
.product.product-type-simple
.summary.entry-summary
form.cart {

    display: flex !important;

    flex-wrap: wrap !important;
    align-items: stretch !important;

    gap: 8px !important;

    width: 100% !important;

    margin-top: 0 !important;

    box-sizing: border-box !important;
}


/* ----------------------------------------------------------
   WCCF OPTIONS / BADGES TAKE THEIR OWN ROW
   ---------------------------------------------------------- */

body.single-product
.product.product-type-simple
.summary.entry-summary
form.cart
> #wccf_product_field_master_container {

    flex: 0 0 100% !important;

    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;
}


/* Remove Woo/WCCF old clear element */

body.single-product
.product.product-type-simple
.summary.entry-summary
form.cart
> div[style*="clear"] {

    display: none !important;
}


/* ==========================================================
   QUANTITY
   Same dimensions as variable products
   ========================================================== */

body.single-product
.product.product-type-simple
.summary.entry-summary
form.cart
> .quantity {

    flex: 0 0 105px !important;

    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;

    height: 48px !important;

    margin: 0 !important;

    border: 1px solid #e0e0e5 !important;
    border-radius: 8px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}


/* ==========================================================
   ADD TO CART
   ========================================================== */

body.single-product
.product.product-type-simple
.summary.entry-summary
form.cart
> .single_add_to_cart_button {

    flex: 1 1 300px !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 390px !important;

    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   RIGHTPRESS TOTAL
   ========================================================== */

body.single-product
.product.product-type-simple
.summary.entry-summary
form.cart
> .rightpress_product_price_live_update.fps-live-price-visible {

    flex: 0 0 auto !important;

    min-width: 125px !important;

    height: 48px !important;

    margin: 0 !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   PAYMENTS
   Entire payment row BELOW cart controls
   ========================================================== */

body.single-product
.product.product-type-simple
.summary.entry-summary
form.cart
> .fps-payment-methods {

    display: flex !important;

    flex: 0 0 100% !important;

    align-items: center !important;

    gap: 6px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 7px 0 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   "TAILLE UNIQUE" SHORT DESCRIPTION
   Keep it compact
   ========================================================== */

body.single-product
.product.product-type-simple
.summary.entry-summary
> .woocommerce-product-details__short-description {

    margin: 5px 0 16px !important;
    padding: 0 !important;
}


body.single-product
.product.product-type-simple
.summary.entry-summary
> .woocommerce-product-details__short-description
p {

    margin: 0 !important;
    padding: 0 !important;

    font-size: 12px !important;
    line-height: 1.3 !important;

    color: #555 !important;
}



/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    body.single-product
    .product.product-type-simple
    .summary.entry-summary
    form.cart {

        display: flex !important;

        flex-wrap: wrap !important;
        align-items: stretch !important;

        gap: 6px !important;

        width: 100% !important;
    }


    /* WCCF full row */

    body.single-product
    .product.product-type-simple
    .summary.entry-summary
    form.cart
    > #wccf_product_field_master_container {

        flex: 0 0 100% !important;

        width: 100% !important;
    }


    /* Quantity */

    body.single-product
    .product.product-type-simple
    .summary.entry-summary
    form.cart
    > .quantity {

        flex: 0 0 74px !important;

        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;

        height: 46px !important;

        margin: 0 !important;
    }


    /* Add to cart */

    body.single-product
    .product.product-type-simple
    .summary.entry-summary
    form.cart
    > .single_add_to_cart_button {

        flex: 1 1 0 !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        height: 46px !important;
        min-height: 46px !important;

        margin: 0 !important;

        padding-left: 8px !important;
        padding-right: 8px !important;
    }


    /* Total */

    body.single-product
    .product.product-type-simple
    .summary.entry-summary
    form.cart
    > .rightpress_product_price_live_update.fps-live-price-visible {

        flex: 0 0 82px !important;

        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;

        height: 46px !important;

        margin: 0 !important;
        padding: 0 6px !important;
    }


    /* Payments:
       4 logos + secure on row 1
       delivery on row 2
    */

    body.single-product
    .product.product-type-simple
    .summary.entry-summary
    form.cart
    > .fps-payment-methods {

        display: grid !important;

        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;

        gap: 5px !important;
        row-gap: 15px !important;

        flex: 0 0 100% !important;

        width: 100% !important;

        margin: 0 !important;
    }


    body.single-product
    .product.product-type-simple
    .fps-payment-delivery {

        grid-column: 1 / -1 !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
    }

}