/*
 * HS WooCommerce Sale Savings
 * Cart / checkout presentation only. No price calculations are changed here.
 */

/* Module-specific sale price markup. */
.hs-wc-sale-price,
.hs-wc-sale-price del,
.hs-wc-sale-price ins,
.hs-wc-sale-price .woocommerce-Price-amount,
.hs-wc-block-price,
.hs-wc-block-price .wc-block-components-product-price__value,
.hs-wc-block-regular-price,
.hs-wc-block-sale-savings__value {
	color: #272727 !important;
}

/*
 * Force every monetary amount shown in classic Cart / Checkout to the requested
 * colour. This includes product prices, coupons, shipping, taxes and totals.
 */
body.woocommerce-cart .woocommerce-Price-amount,
body.woocommerce-cart .woocommerce-Price-amount bdi,
body.woocommerce-cart .amount,
body.woocommerce-cart .amount bdi,
body.woocommerce-cart .cart_totals .shop_table td,
body.woocommerce-cart .cart_totals .shop_table td strong,
body.woocommerce-checkout .woocommerce-Price-amount,
body.woocommerce-checkout .woocommerce-Price-amount bdi,
body.woocommerce-checkout .amount,
body.woocommerce-checkout .amount bdi,
body.woocommerce-checkout #order_review .shop_table td,
body.woocommerce-checkout #order_review .shop_table td strong,
.woocommerce-cart-form .woocommerce-Price-amount,
.woocommerce-cart-form .woocommerce-Price-amount bdi,
.woocommerce-checkout-review-order .woocommerce-Price-amount,
.woocommerce-checkout-review-order .woocommerce-Price-amount bdi,
.woocommerce-checkout-review-order-table .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table .woocommerce-Price-amount bdi {
	color: #272727 !important;
}

/* WooCommerce Cart / Checkout Blocks monetary values. */
.wp-block-woocommerce-cart .wc-block-components-formatted-money-amount,
.wp-block-woocommerce-cart .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-components-product-price__value,
.wp-block-woocommerce-cart .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart .wc-block-components-order-summary-item__total-price,
.wp-block-woocommerce-cart .wc-block-components-order-summary-item__individual-price,
.wp-block-woocommerce-checkout .wc-block-components-formatted-money-amount,
.wp-block-woocommerce-checkout .wc-block-components-product-price,
.wp-block-woocommerce-checkout .wc-block-components-product-price__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__individual-price,
.wc-block-cart .wc-block-components-formatted-money-amount,
.wc-block-checkout .wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__value .wc-block-components-formatted-money-amount {
	color: #272727 !important;
}

.hs-wc-sale-price del {
	position: relative;
	display: inline-block;
	opacity: 0.62;
	margin-inline-end: 0.45em;
	text-decoration: none;
}

.hs-wc-sale-price del::after {
	content: '';
	position: absolute;
	z-index: 2;
	left: -4%;
	top: 50%;
	width: 108%;
	height: 1px;
	background: #e00000;
	border-radius: 999px;
	transform: rotate(-12deg);
	transform-origin: center;
	pointer-events: none;
}

.hs-wc-sale-price ins {
	font-weight: 700;
	text-decoration: none;
}

.hs-wc-sale-savings-row th,
.hs-wc-sale-savings-row td,
.hs-wc-block-sale-savings {
	font-weight: 600;
}

.hs-wc-block-sale-savings .wc-block-components-totals-item {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
}

.hs-wc-block-sale-savings__value {
	font-weight: 700;
}

.hs-wc-block-regular-price {
	position: relative;
	display: inline-block;
	opacity: 0.62;
}

.hs-wc-block-regular-price::after {
	content: '';
	position: absolute;
	z-index: 2;
	left: -4%;
	top: 50%;
	width: 108%;
	height: 1px;
	background: #e00000;
	border-radius: 999px;
	transform: rotate(-12deg);
	transform-origin: center;
	pointer-events: none;
}

/*
 * Simplify only the classic cart products table.
 * Quantity and line subtotal remain in WooCommerce data/calculations; only
 * their customer-facing table columns are hidden.
 */
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart th.product-quantity,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart th.product-subtotal,
body.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-subtotal,
.woocommerce-cart-form table.shop_table.cart th.product-quantity,
.woocommerce-cart-form table.shop_table.cart td.product-quantity,
.woocommerce-cart-form table.shop_table.cart th.product-subtotal,
.woocommerce-cart-form table.shop_table.cart td.product-subtotal {
	display: none !important;
}

/*
 * Classic checkout: remove only the product line subtotal column.
 * Multiple selectors are intentional because some themes alter WooCommerce's
 * standard wrappers/classes. tfoot is NOT targeted, so shipping/tax/order total
 * and the savings row remain visible.
 */
body.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th.product-total,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td.product-total,
.woocommerce-checkout-review-order table.shop_table thead th.product-total,
.woocommerce-checkout-review-order table.shop_table tbody td.product-total,
#order_review table.shop_table thead th.product-total,
#order_review table.shop_table tbody td.product-total,
#order_review table.woocommerce-checkout-review-order-table thead tr > th:nth-child(2),
#order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item > td:nth-child(2),
.woocommerce-checkout-review-order-table thead tr > th:nth-child(2),
.woocommerce-checkout-review-order-table tbody tr.cart_item > td:nth-child(2) {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	max-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td.product-name,
.woocommerce-checkout-review-order-table thead th.product-name,
.woocommerce-checkout-review-order-table tbody td.product-name,
#order_review table.woocommerce-checkout-review-order-table thead tr > th:first-child,
#order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item > td:first-child {
	width: 100% !important;
}

/* Checkout Block: hide only each product line total inside the order summary. */
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary-item__total-price,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__total-price,
.wc-block-checkout .wc-block-components-order-summary-item__total-price {
	display: none !important;
}
