/*
 * Simple Tiered Pricing 2.0.0 — front end.
 * Colours are custom properties so another site can restyle without editing:
 * .stp-tiers { --stp-head: #002032; --stp-accent: #2EC1EF; ... }
 */
.stp-tiers,
.stp-card-line {
	--stp-head: #002032;
	--stp-head-text: #FFFFFF;
	--stp-accent: #2EC1EF;
	--stp-row: #F0F8FA;
	--stp-line: #C7ECF5;
	--stp-text: #3D3D3D;
	--stp-price: #002032;
	--stp-muted: #898989;
}

.stp-tiers {
	margin: 1.25rem 0 1.5rem;
	font-family: Helvetica, Arial, sans-serif;
	color: var( --stp-text );
}
.stp-tiers .stp-tiers__title {
	margin: 0 0 0.5rem !important;
	font-weight: 700;
	font-size: 1.05rem;
	color: var( --stp-head );
}
.stp-tiers .stp-tiers__table {
	width: 100%;
	margin: 0 !important;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var( --stp-line );
	border-radius: 10px;
	overflow: hidden;
	font-size: 0.95rem;
}
.stp-tiers .stp-tiers__table th {
	padding: 0.6rem 0.75rem;
	background: var( --stp-head );
	color: var( --stp-head-text );
	font-weight: 700;
	font-size: 0.8rem;
	text-align: left;
	border-bottom: 2px solid var( --stp-accent );
}
.stp-tiers .stp-tiers__table td {
	padding: 0.55rem 0.75rem;
	border-top: 1px solid var( --stp-line );
	background: #FFFFFF;
}
.stp-tiers .stp-tiers__table tbody tr:nth-child( even ) td {
	background: var( --stp-row );
}
.stp-tiers .stp-tiers__table tbody tr:first-child td {
	border-top: 0;
}
.stp-tiers .stp-tiers__price {
	font-weight: 700;
	color: var( --stp-price );
}
.stp-tiers .stp-tiers__unit {
	color: var( --stp-muted );
	font-size: 0.88rem;
}
.stp-tiers .stp-tiers__note {
	margin: 0.5rem 0 0 !important;
	font-size: 0.85rem;
	color: var( --stp-muted );
}

/* Narrow screens: drop the per-roll column, keep per 1,000. */
@media ( max-width: 480px ) {
	.stp-tiers .stp-tiers__table th,
	.stp-tiers .stp-tiers__table td {
		padding: 0.5rem 0.45rem;
	}
	.stp-tiers .stp-tiers__table th:nth-child( 4 ),
	.stp-tiers .stp-tiers__table td:nth-child( 4 ) {
		display: none;
	}
}

/* Product cards */
.stp-card-line {
	margin: 0.25rem 0 0 !important;
	font-size: 0.85rem;
	color: var( --stp-muted );
}
.stp-card-line strong {
	color: #DB0047;
}

/* Keep "As low as £13.19 each for 21+" on one flowing line; some themes
 * display price spans as blocks inside product cards. */
.stp-card-line {
	display: block !important;
}
.stp-card-line *,
.stp-card-line .woocommerce-Price-amount,
.stp-card-line bdi {
	display: inline !important;
}

/* 2.1.0: per-variation tables are hidden until their option is chosen. */
.stp-tiers[hidden] { display: none !important; }
