/*
 * SWID Dynamic Pricing 1.0.0-rc.6: each item's discounts by name, on cart, checkout and order lines.
 * Colours are the site footer's own, as the comparison price (look C): gold #e5bd5b, text #d9d0bf,
 * cream #fff5dc, border rgba(218,174,73,.22).
 */
.swid-dp-lines {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	text-align: right;
	max-width: 100%;
}

.swid-dp-lines__price {
	white-space: nowrap;
}

.swid-dp-lines del {
	opacity: .55;
	font-weight: 400;
	margin-right: .3em;
	text-decoration-thickness: 1px;
}

.swid-dp-lines ins {
	text-decoration: none;
	font-weight: 600;
}

.swid-dp-lines__why {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: .78rem;
	line-height: 1.35;
	white-space: nowrap;
}

.swid-dp-lines__off .woocommerce-Price-amount {
	font-weight: 600;
}

/* Look "card": the causes in a small gold card, like the footer's contact cards. */
.swid-dp-lines--card .swid-dp-lines__why {
	padding: 3px 10px;
	border: 1px solid rgba(218, 174, 73, .22);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(229, 189, 91, .11), rgba(229, 189, 91, .025));
	color: #e5bd5b;
}

.swid-dp-lines--card .swid-dp-lines__off,
.swid-dp-lines--card .swid-dp-lines__off .woocommerce-Price-amount {
	color: #fff5dc;
}

/* Look "plain": quiet gold text under the price. */
.swid-dp-lines--plain .swid-dp-lines__why {
	color: #e5bd5b;
	opacity: .9;
}

.swid-dp-lines-saving th,
.swid-dp-lines-saving td {
	color: #e5bd5b;
	font-weight: 600;
}

.swid-dp-lines__off {
	white-space: nowrap;
}

/* The copy under the product's name: only in the theme's narrow cart layout (Blocksy hides the
   Subtotal column below 1000 px). */
.swid-dp-lines-mobile {
	display: none;
}

@media (max-width: 999.98px) {
	.swid-dp-lines-mobile {
		display: block;
		margin-top: 8px;
	}

	.swid-dp-lines-mobile .swid-dp-lines {
		align-items: flex-start;
		text-align: left;
	}
}

/* Phones: let a long cause wrap rather than push the page sideways. */
@media (max-width: 480px) {
	.swid-dp-lines__why {
		white-space: normal;
	}
}

/* Arabic: right to left, no letter spacing. */
.swid-dp-lines:lang(ar) {
	align-items: flex-start;
	text-align: left;
}
