/* One storefront price token for theme markup and WooCommerce HTML/Blocks.
 * Variation selection replaces the price HTML with a nested .price span;
 * enforce the same color on that span and monetary leaves, regardless of
 * plugin enqueue order. Do not apply this stylesheet in wp-admin.
 */
:root { --pinggo-price-color: #111111; }

body :is(
  .pinggo-article-product__price,
  .pinggo-summary__price,
  .pinggo-quick-add__price,
  .pinggo-bundle__content small,
  .pinggo-product-card__price,
  .pinggo-archive-card__price,
  .pinggo-search-item__price,
  .pinggo-quick-modal__price,
  .pinggo-mini-cart-item__price,
  .pinggo-cart-line__price,
  .pinggo-cart-line__subtotal,
  .woocommerce-Price-amount,
  .wc-block-components-formatted-money-amount,
  .wc-block-components-product-price,
  .wc-block-components-totals-item__value,
  .wc-block-grid__product-price,
  .wc-block-components-product-price__value,
  .wc-block-components-product-price__regular,
  .wc-block-components-product-price__ins,
  .wc-block-components-product-price__range,
  .woocommerce .price
) {
  color: var(--pinggo-price-color) !important;
}

/* Preserve inheritance through currency/bdi and sale markup. Original prices
 * remain struck through and subdued, but use the same price color everywhere. */
body :is(
  .pinggo-article-product__price,
  .pinggo-summary__price,
  .pinggo-quick-add__price,
  .pinggo-bundle__content small,
  .pinggo-product-card__price,
  .pinggo-archive-card__price,
  .pinggo-search-item__price,
  .pinggo-quick-modal__price,
  .woocommerce .price,
  .wc-block-grid__product-price
) :is(del, ins),
body .woocommerce-Price-amount :is(bdi, .woocommerce-Price-currencySymbol) {
  color: var(--pinggo-price-color) !important;
}

body :is(
  .pinggo-article-product__price,
  .pinggo-summary__price,
  .pinggo-quick-add__price,
  .pinggo-bundle__content small,
  .pinggo-product-card__price,
  .pinggo-archive-card__price,
  .pinggo-search-item__price,
  .pinggo-quick-modal__price,
  .woocommerce .price,
  .wc-block-grid__product-price,
  .wc-block-components-product-price
) del { opacity: .5; }
