/**
 * Per-product tax & duty rows in the classic cart / checkout.
 *
 * The totals already list each tax and duty once, so the per-product rows
 * stay hidden until the shopper asks for them with the "Show tax and duty
 * per product" button (body.epal-show-line-taxes). Rows are found by the
 * epal-tax-details marker on their value, not by their translated label.
 *
 * Loaded on every cart/checkout page, whatever the address was when the page
 * loaded: the rows can arrive later in a checkout refresh.
 */

body dl.variation dt:has(+ dd .epal-tax-details),
body dl.variation dd:has(.epal-tax-details) {
	display: none !important;
}

body.epal-show-line-taxes dl.variation dt:has(+ dd .epal-tax-details),
body.epal-show-line-taxes dl.variation dd:has(.epal-tax-details) {
	display: block !important;
	float: none !important;
	margin: 0 !important;
}

body.epal-show-line-taxes dl.variation dd:has(.epal-tax-details) p {
	margin: 0 0 0.25em;
}

.epal-line-taxes-toggle {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.875em;
	text-decoration: underline;
	cursor: pointer;
}

.epal-line-taxes-toggle-row td {
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}
