/* Catalog prices stay hidden even after a coupon unlocks the cart. */
body.ltcc-active .summary .price,
body.ltcc-active .woocommerce-variation-price,
body.ltcc-active ul.products li.product .price,
body.ltcc-active .wc-block-grid__product-price,
body.ltcc-active .wp-block-woocommerce-product-price,
body.ltcc-active .wc-block-components-product-price,
body.ltcc-active .wc-block-grid__product-onsale,
body.ltcc-active .wp-block-woocommerce-product-sale-badge,
body.ltcc-active .wc-block-components-product-sale-badge { display: none !important; }

/* Blocks still receive native numeric data. Hide its original price nodes before JS paints. */
body.ltcc-active .wc-block-cart-item__prices > :not(.ltcc-net),
body.ltcc-active .wc-block-cart-item__total > :not(.ltcc-net),
body.ltcc-active .wc-block-components-order-summary-item__individual-prices > :not(.ltcc-net),
body.ltcc-active .wc-block-components-order-summary-item__individual-price,
body.ltcc-active .wc-block-components-order-summary-item__regular-individual-price,
body.ltcc-active .wc-block-components-order-summary-item__total-price > :not(.ltcc-net),
body.ltcc-active .wc-block-components-order-summary-item > .screen-reader-text,
body.ltcc-active .wc-block-components-checkout-order-summary__title-price,
body.ltcc-active .wc-block-mini-cart__amount,
body.ltcc-active .wc-block-mini-cart__button > .screen-reader-text,
body.ltcc-active .wc-block-mini-cart__footer-subtotal > .wc-block-components-totals-item__value,
body.ltcc-active .wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__value,
body.ltcc-active .wp-block-woocommerce-checkout-order-summary-subtotal-block .wc-block-components-totals-item__value,
body.ltcc-active .wc-block-cart .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value,
body.ltcc-active .wc-block-checkout .wc-block-components-totals-footer-item > .wc-block-components-totals-item__value,
body.ltcc-active .wc-block-components-totals-discount > .wc-block-components-totals-item__value,
body.ltcc-active .wc-block-components-totals-discount > .wc-block-components-totals-item__label { display: none !important; }

/* Keep coupon chips and native removal controls, without a misleading discount row label. */
body.ltcc-active .wc-block-components-totals-discount__coupon-list { margin-top: 0; }
body.ltcc-active .ltcc-net { font: inherit; color: inherit; }
body.ltcc-active .ltcc-net-unit,
body.ltcc-active .ltcc-net-line { display: inline-block; }
body.ltcc-active .ltcc-net-subtotal,
body.ltcc-active .ltcc-net-total { margin-left: auto; text-align: right; }
body.ltcc-active .ltcc-net-total { font-weight: 700; }
body.ltcc-active .ltcc-net-mini { margin-left: .4em; }
/* A cached older script may still insert this duplicate beside the checkout heading. */
body.ltcc-active .ltcc-net-title { display: none !important; }
body.ltcc-active .ltcc-gate-message { padding: .75em 0; margin: 0 0 1em; line-height: 1.5; }
body.ltcc-active .ltcc-gate-message[hidden] { display: none !important; }
/* Scoped legacy notice cleanup must also override theme display rules. */
body.ltcc-active [data-ltcc-cleared="true"][hidden] { display: none !important; }
body.ltcc-active .ltcc-retry { margin-left: .5em; cursor: pointer; }
body.ltcc-active:not(.ltcc-display-unlocked) .ltcc-net:not(:is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) .ltcc-net) { display: none !important; }

/* Unknown/materially changing prices stay hidden; ordinary customer updates retain verified net display. */
body.ltcc-active:not(.ltcc-display-unlocked) :is(.wc-block-cart, .wc-block-checkout, .wc-block-mini-cart__drawer) :is(.wc-block-formatted-money-amount, .wc-block-components-formatted-money-amount, .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item-tax, .wc-block-components-shipping-rates-control__package__description--free):not(:is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) *),
body.ltcc-active:not(.ltcc-display-unlocked) :is(.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order-table, .widget_shopping_cart, .mfn-cart-holder) .woocommerce-Price-amount,
body.ltcc-active:not(.ltcc-display-unlocked) .header-cart-total,
body.ltcc-active:not(.ltcc-display-unlocked) .wc-block-components-checkout-order-summary__title-price { display: none !important; }

/* Checkout reserves the amount cells even before the first verified response.
   Native original/subtotal/discount nodes above remain permanently suppressed. */
body.ltcc-active :is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) :is(.wc-block-cart-item__prices, .wc-block-components-order-summary-item__total-price, .ltcc-net-unit, .ltcc-net-line, .ltcc-net-subtotal, .ltcc-net-total) {
    min-block-size: 1em;
    min-block-size: 1lh;
}
body.ltcc-active :is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) :is(.wc-block-components-order-summary-item__total-price, .ltcc-net-subtotal, .ltcc-net-total) { min-inline-size: 8ch; }
/* Net values share the native label line; descriptions follow both, even when JS appends a net span. */
body.ltcc-active :is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) :is(.ltcc-net-subtotal, .ltcc-net-total) { order: 1; }
body.ltcc-active :is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) .wc-block-components-totals-item__description { order: 2; }
body.ltcc-active:is(.ltcc-summary-masked, .ltcc-locked, :not(.ltcc-ready)) :is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) :is(.ltcc-net, .wc-block-formatted-money-amount, .wc-block-components-formatted-money-amount, .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item-tax-value, .wc-block-components-shipping-placeholder__value, .wc-block-components-shipping-rates-control__package__description--free),
body.ltcc-active:is(.ltcc-summary-masked, .ltcc-locked, :not(.ltcc-ready)) :is(.wc-block-checkout__sidebar, .wc-block-components-checkout-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-totals-block) :is(.ltcc-net, .wc-block-formatted-money-amount, .wc-block-components-formatted-money-amount, .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item-tax-value, .wc-block-components-shipping-placeholder__value, .wc-block-components-shipping-rates-control__package__description--free) * {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* These selectors deliberately exclude order-pay and order-received action containers. */
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) .wc-block-cart__submit,
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) .wc-block-checkout__actions,
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) .wc-block-components-express-payment:not(body.ltcc-express-reserved .wc-block-checkout .wc-block-components-express-payment),
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) .wc-block-mini-cart__footer-checkout,
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) .wc-proceed-to-checkout,
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) .widget_shopping_cart .checkout,
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) form.checkout #place_order,
body.ltcc-active.woocommerce-cart:is(.ltcc-locked, :not(.ltcc-ready)) #wc-stripe-payment-request-wrapper,
body.ltcc-active.woocommerce-cart:is(.ltcc-locked, :not(.ltcc-ready)) #wc-stripe-express-checkout-element,
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) form.checkout #wc-stripe-payment-request-wrapper,
body.ltcc-active:is(.ltcc-locked, :not(.ltcc-ready)) form.checkout #wc-stripe-express-checkout-element { display: none !important; }

/* Coupon verification hides wallets while preserving the previously verified frame. */
body.ltcc-active.ltcc-express-reserved:is(.ltcc-locked, :not(.ltcc-ready)) .wc-block-checkout .wc-block-components-express-payment__event-buttons,
body.ltcc-active.ltcc-express-reserved:is(.ltcc-locked, :not(.ltcc-ready)) .wc-block-checkout .wc-block-components-express-payment__event-buttons * {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* No product-page wallet path can bypass applying a coupon in the cart. */
body.ltcc-active.single-product #wc-stripe-payment-request-wrapper,
body.ltcc-active.single-product #wc-stripe-payment-request-button-separator,
body.ltcc-active.single-product #wc-stripe-express-checkout-element,
body.ltcc-active.single-product #wc-stripe-express-checkout-element-separator { display: none !important; }
