/*
 * Bulk discount pricing for [ss_bulk_discount_pricing]. Every rule is scoped to the shortcode wrapper.
 * Desktop: plain list. Mobile (< 768px): the featured row (highest discount) becomes a card on top.
 */

.ss-bulk-pricing {
	--ssbp-text: #01333c;
	--ssbp-highlight: #e8ff96;
	--ssbp-divider: rgba(1, 51, 60, 0.12);

	width: 100%;
	box-sizing: border-box;
	background: transparent;
	color: var(--ssbp-text);
	font-family: "Barlow Semi Condensed", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
}

.ss-bulk-pricing *,
.ss-bulk-pricing *::before,
.ss-bulk-pricing *::after {
	box-sizing: border-box;
}

.ss-bulk-pricing__title {
	margin: 0 0 8px;
	color: inherit;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.ss-bulk-pricing__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ss-bulk-pricing__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 12px 0;
}

.ss-bulk-pricing__row + .ss-bulk-pricing__row {
	border-top: 1px solid var(--ssbp-divider);
}

.ss-bulk-pricing__label {
	min-width: 0;
}

.ss-bulk-pricing__price {
	flex-shrink: 0;
	text-align: right;
	white-space: nowrap;
}

/* WooCommerce price markup follows the component typography, not theme price styles. */
.ss-bulk-pricing__price .woocommerce-Price-amount,
.ss-bulk-pricing__price bdi {
	color: inherit;
	font: inherit;
}

.ss-bulk-pricing__lead,
.ss-bulk-pricing__label-short {
	display: none;
}

@media (max-width: 767px) {
	.ss-bulk-pricing__title {
		display: none;
	}

	.ss-bulk-pricing__row {
		margin: 0 24px;
		padding: 20px 8px;
		border-bottom: 1px solid var(--ssbp-divider);
		font-size: 13px;
	}

	.ss-bulk-pricing__row + .ss-bulk-pricing__row {
		border-top: 0;
	}

	.ss-bulk-pricing__row:not(.ss-bulk-pricing__row--featured) .ss-bulk-pricing__label-long {
		display: none;
	}

	.ss-bulk-pricing__row:not(.ss-bulk-pricing__row--featured) .ss-bulk-pricing__label-short {
		display: inline;
	}

	.ss-bulk-pricing__row--featured {
		order: -1;
		align-items: center;
		gap: 12px;
		height: 120px;
		margin: 0 0 4px;
		padding: 25px;
		border-bottom: 0;
		border-radius: 12px;
		background: var(--ssbp-highlight);
	}

	.ss-bulk-pricing__row--featured .ss-bulk-pricing__label {
		font-size: 15px;
		line-height: 1.2;
	}

	.ss-bulk-pricing__row--featured .ss-bulk-pricing__lead {
		display: inline;
	}

	.ss-bulk-pricing__row--featured .ss-bulk-pricing__price {
		font-size: 40px;
		font-weight: 700;
		line-height: 1;
	}

	.ss-bulk-pricing__row--featured .ss-bulk-pricing__unit {
		display: none;
	}
}
