/**
 * BWM — cart "You may be interested in…" cross-sell price restyle.
 *
 * Mirrors the listing/homepage card price (assets/woo/css/woocommerce.css `.price:has(.save)`):
 * line 1 grey struck "Was $X", line 2 yellow "SAVE $Y" badge, line 3 big red now-price.
 * The WooCommerce Blocks cross-sells are React-rendered, so assets/js/cart-crosssell-price.js
 * injects the .bwm-was / .save markers this stylesheet keys off. Scoped to each cross-sell card
 * (.cross-sells-product).
 *
 * Uses a block (not flex) layout so it doesn't fight WC's own flex rules on
 * .wc-block-components-product-price (which otherwise keep everything on one line).
 */

.cross-sells-product .wc-block-components-product-price.bwm-xsell-price {
    display: block;
    text-align: center;
    color: #626967;
    line-height: 1.2;
}

/* Line 1: "Was $399.00" — label + struck regular price, inline together. */
.cross-sells-product .bwm-xsell-price .bwm-was {
    display: inline;
    margin-right: 4px;
    font-size: 16px;
    color: #626967;
}

.cross-sells-product .bwm-xsell-price del,
.cross-sells-product .bwm-xsell-price .wc-block-components-product-price__regular {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #626967;
}

/* Line 2: yellow "SAVE $200" pill, on its own row, sized to content and centred. */
.cross-sells-product .bwm-xsell-price .save {
    display: block;
    width: fit-content;
    margin: 6px auto;
    background-color: #ffe000;
    padding: 4px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.1;
    color: #010101;
    font-weight: 800;
    white-space: nowrap;
}

/* Line 3: big red now-price, on its own row. */
.cross-sells-product .bwm-xsell-price ins,
.cross-sells-product .bwm-xsell-price .wc-block-components-product-price__value {
    display: block;
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: #f12;
    text-decoration: none;
    background: none;
}
