/* ==========================================================================
   Solid Tiered Pricing — Frontend Styles
   Matches the Solid Packages design system: Charcoal #222325, Kraft Brown
   #A06533, Slate Grey #66686B, Off-White #F5F4F2, Safety Orange #E1622A,
   Warm Grey #D9D6D0. Oswald for headings/emphasis, Inter for body/UI text.
   Every color/font here is also editable per-widget in Elementor's Style
   tab — this file just sets sensible, already-on-brand defaults.
   ========================================================================== */

/* ---------- Tiered Pricing Table ---------- */

.stp-tier-table-wrap {
	padding: 4px;
	border: 1px solid #D9D6D0;
	border-radius: 10px;
	background-color: #FFFFFF;
	box-shadow: 0 2px 10px rgba(34, 35, 37, 0.05);
	overflow: hidden;
}

.stp-tier-table {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #222325;
}

.stp-tier-table thead tr {
	background-color: #F5F4F2;
}

.stp-tier-table th {
	text-align: left;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.4px;
	color: #66686B;
	padding: 12px 14px;
	border-bottom: 2px solid #A06533;
}

.stp-tier-table th.stp-col-discount,
.stp-tier-table td.stp-col-discount {
	text-align: center;
}

.stp-tier-table th.stp-col-shipping,
.stp-tier-table td.stp-col-shipping {
	text-align: right;
}

.stp-tier-table th.stp-col-price,
.stp-tier-table td.stp-col-price {
	text-align: right;
}

.stp-tier-table tbody tr {
	border-bottom: 1px solid #EFEDE9;
	transition: background-color 0.15s ease;
}

.stp-tier-table tbody tr:last-child {
	border-bottom: none;
}

.stp-tier-table tbody tr:hover {
	background-color: #FAF9F7;
}

.stp-tier-table td {
	padding: 12px 14px;
	border-left: 4px solid transparent;
	font-weight: 500;
	vertical-align: middle;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stp-tier-table td:first-child {
	padding-left: 14px;
}

/* Active tier — the row matching the customer's currently entered quantity */
.stp-tier-table tr.stp-tier-active {
	background-color: rgba(225, 98, 42, 0.06);
}

.stp-tier-table tr.stp-tier-active td {
	border-left-color: #E1622A;
	font-weight: 700;
	color: #222325;
}

.stp-tier-table tr.stp-tier-active td.stp-col-qty {
	color: #E1622A;
}

/* Discount pill */
.stp-discount-pill {
	display: inline-block;
	background-color: rgba(225, 98, 42, 0.12);
	color: #E1622A;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 100px;
	white-space: nowrap;
}

.stp-discount-none {
	color: #B8B6B1;
	font-weight: 400;
}

/* "Your Tier" badge — hidden by default, shown only on the active row */
.stp-tier-badge {
	display: none;
	margin-left: 8px;
	background-color: #E1622A;
	color: #F5F4F2;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 3px 8px;
	border-radius: 100px;
	vertical-align: middle;
	white-space: nowrap;
}

.stp-tier-row.stp-tier-active .stp-tier-badge {
	display: inline-block;
}

.stp-shipping-free {
	color: #66686B;
	font-weight: 400;
	font-size: 13px;
	font-style: italic;
}

.stp-shipping-free-explicit {
	color: #2E7D32;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* ---------- Live Price Widget (single product buy box) ---------- */

.stp-live-price {
	font-family: 'Inter', sans-serif;
}

.stp-live-price .stp-unit-price {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 26px;
	color: #222325;
	line-height: 1.2;
}

.stp-live-price .stp-unit-label {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #66686B;
	margin-left: 4px;
}

.stp-live-price .stp-total-row,
.stp-live-price .stp-shipping-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #66686B;
	padding: 8px 0;
	border-top: 1px solid #EFEDE9;
	margin-top: 8px;
}

.stp-live-price .stp-total-price {
	font-weight: 600;
	color: #222325;
}

.stp-live-price .stp-shipping-price {
	font-weight: 600;
	color: #66686B;
}

.stp-live-price .stp-shipping-price[data-has-tier-shipping="0"] {
	font-style: italic;
	font-weight: 400;
	font-size: 13px;
}

/* "You Save" — the highlighted savings callout */
.stp-live-price .stp-savings-row {
	display: flex;
	align-items: center;
	gap: 6px;
	background-color: rgba(225, 98, 42, 0.08);
	border: 1px dashed rgba(225, 98, 42, 0.35);
	border-radius: 6px;
	padding: 8px 12px;
	margin-top: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
}

.stp-live-price .stp-savings-label {
	font-weight: 600;
	color: #222325;
}

.stp-live-price .stp-savings-amount {
	font-weight: 700;
	color: #E1622A;
	font-size: 14px;
}

.stp-live-price .stp-savings-percent {
	font-weight: 600;
	color: #E1622A;
	font-size: 12px;
}

/* ---------- Loop / product card "From $X" price ---------- */

.stp-loop-price-prefix {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #66686B;
}

.stp-loop-price-amount {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #222325;
}

/* ---------- Shop/category archive "From $X" ---------- */

.stp-from-price {
	font-weight: 700;
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.stp-tier-table {
		font-size: 13px;
	}

	.stp-tier-table th,
	.stp-tier-table td {
		padding: 10px 8px;
	}

	.stp-tier-badge {
		display: none !important;
	}

	.stp-tier-row.stp-tier-active td.stp-col-qty::after {
		content: '✓';
		color: #E1622A;
		margin-left: 6px;
		font-weight: 700;
	}

	.stp-live-price .stp-unit-price {
		font-size: 22px;
	}
}
