/**
 * WC Request Pricing — Frontend styles
 *
 * Inherits the theme's own price typography so the label looks native.
 * The Block cart renders item prices inside elements that can inherit
 * link/anchor colors, so we explicitly reset to the body text color.
 */

.wcrp-request-pricing {
    display: inline;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

/*
 * WooCommerce Blocks: the item price under the product name sits inside
 * a context that inherits the theme's link color (blue). Force it to
 * use the same color as the totals column / body text instead.
 */
.wc-block-cart-item__prices .wcrp-request-pricing,
.wc-block-components-product-price .wcrp-request-pricing,
.wc-block-components-product-metadata .wcrp-request-pricing,
.wc-block-formatted-money-amount.wcrp-request-pricing {
    color: var(--wc--custom--color--text, var(--wp--preset--color--contrast, inherit));
}

/*
 * Fallback: if the theme doesn't define those CSS variables, match
 * whatever color the totals column uses — those elements don't have
 * the link-color problem.
 */
.wc-block-cart-item__prices .wc-block-components-product-price .wcrp-request-pricing {
    color: var(--wc--custom--color--text, var(--wp--preset--color--contrast, currentColor));
}
