.wd-dynamic-discounts:empty,
.wd-dynamic-discounts[hidden] {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Nur eigene Tabellen: native Woodmart-Tabellen außerhalb dieses Moduls behalten ihr Layout. */
.wd-dynamic-discounts table.ah-wdvpt-table {
	width: 100%;
	table-layout: fixed;
	border: 1px solid var(--color-gray-800, #242424);
	border-collapse: collapse;
	font-family: var(--wd-text-font, inherit);
}

.wd-dynamic-discounts table.ah-wdvpt-table th,
.wd-dynamic-discounts table.ah-wdvpt-table td {
	padding: 6px 10px;
	border: 1px solid var(--color-gray-800, #242424);
	background: transparent;
	vertical-align: middle;
}

.wd-dynamic-discounts table.ah-wdvpt-table thead th {
	color: var(--color-gray-600, #595f5b);
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	white-space: normal;
	overflow-wrap: anywhere;
}

.wd-dynamic-discounts table.ah-wdvpt-table thead th:first-child {
	width: 27%;
	text-align: start;
}

.wd-dynamic-discounts table.ah-wdvpt-table thead th:nth-child(2) { width: 35%; }
.wd-dynamic-discounts table.ah-wdvpt-table thead th:nth-child(3) { width: 38%; }

.wd-dynamic-discounts table.ah-wdvpt-table th:not(:first-child),
.wd-dynamic-discounts table.ah-wdvpt-table td:not(:first-child) {
	text-align: end;
}

.wd-dynamic-discounts table.ah-wdvpt-table td.wd-dd-price {
	color: var(--color-gray-900, #181b19);
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.wd-dynamic-discounts table.ah-wdvpt-table td.wd-dd-discount {
	color: var(--color-gray-600, #595f5b);
	font-size: 15px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.wd-dynamic-discounts table.ah-wdvpt-table .wd-dd-price .amount,
.wd-dynamic-discounts table.ah-wdvpt-table .wd-dd-discount .amount,
.wd-dynamic-discounts .ah-wdvpt-reference .amount {
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-tier {
	min-width: 44px;
	min-height: 32px;
	margin: -4px 0;
	padding: 4px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-transform: none;
	text-align: start;
	cursor: pointer;
}

.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-tier:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wd-dynamic-discounts table.ah-wdvpt-table tr.wd-active td {
	background: #eefbf1;
}

.wd-dynamic-discounts table.ah-wdvpt-table tr.wd-active td.wd-dd-quantity {
	color: #181b19;
}

.wd-dynamic-discounts table.ah-wdvpt-table tr.wd-active td.wd-dd-price { color: #181b19; }
.wd-dynamic-discounts table.ah-wdvpt-table tr.wd-active td.wd-dd-discount { color: #595f5b; }

.wd-dynamic-discounts table.ah-wdvpt-table tfoot th,
.wd-dynamic-discounts table.ah-wdvpt-table tfoot td {
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	overflow-wrap: anywhere;
	color: var(--color-gray-900, #181b19);
}

.wd-dynamic-discounts table.ah-wdvpt-table tfoot th,
.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-notes td {
	text-align: start;
}

.wd-dynamic-discounts table.ah-wdvpt-table tfoot tr > :not(:last-child) {
	border-inline-end: 0;
}

.wd-dynamic-discounts table.ah-wdvpt-table tfoot tr > :not(:first-child) {
	border-inline-start: 0;
}

.wd-dynamic-discounts .ah-wdvpt-summary[hidden],
.wd-dynamic-discounts .ah-wdvpt-saving-line[hidden],
.wd-dynamic-discounts .ah-wdvpt-notes[hidden] { display: none !important; }

.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-total-line th,
.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-total-line td {
	background: #fff;
}

.wd-dynamic-discounts .ah-wdvpt-total {
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-saving-line th,
.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-saving-line td {
	color: #087532;
	border-bottom: 0;
}

.wd-dynamic-discounts table.ah-wdvpt-table .ah-wdvpt-notes td {
	border-top: 0;
}

.wd-dynamic-discounts .ah-wdvpt-saving-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.wd-dynamic-discounts .ah-wdvpt-calculation,
.wd-dynamic-discounts .ah-wdvpt-reference {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	color: var(--color-gray-600, #595f5b);
}

@media (max-width: 420px) {
	.wd-dynamic-discounts table.ah-wdvpt-table th,
	.wd-dynamic-discounts table.ah-wdvpt-table td { padding: 6px; }
	.wd-dynamic-discounts table.ah-wdvpt-table thead th { font-size: 12px; }
	.wd-dynamic-discounts table.ah-wdvpt-table td.wd-dd-price { font-size: 18px; }
	.wd-dynamic-discounts table.ah-wdvpt-table td.wd-dd-discount { font-size: 14px; }
	.wd-dynamic-discounts .ah-wdvpt-total { font-size: 18px; }
}
