/**
 * vp-tier volume-pricing selector — ported from retailored.test.
 * Design tokens are scoped to the widget so they don't leak into Flatsome.
 * Values are retailored's light-mode tokens.
 */
.vp-tier-selector {
	--text-2xs: 11px;
	--text-xs: 12px;
	--text-sm: 13px;
	--text-base: 14px;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;
	--color-primary: #1C1D25;
	--color-green-dark: #065F46;
	--border-color: #E8E9EF;
	--bg-card: #ffffff;
	--bg-subtle: #F9FAFB;
	--text-primary: #1C1D25;
	--text-secondary: #5A5E7A;
	--text-muted: #6B6D84;
	--radius-pill: 20px;
	--radius-lg: 10px;
	--radius-md: 8px;
	--radius-sm: 6px;
	--transition-fast: 0.15s ease;

	margin: 16px 0 20px;
}

.vp-tier-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.vp-tier-header__label {
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-secondary);
}

.vp-tier-chosen-lbl {
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	color: var(--color-primary);
	background: rgba(59,130,246,.08);
	padding: 2px 9px;
	border-radius: var(--radius-pill);
}

.vp-tier-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.vp-tier-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 8px;
	align-items: center;
	padding: 10px 14px;
	background: var(--bg-card);
	cursor: pointer;
	font-size: var(--text-sm);
	transition: background var(--transition-fast);
	border-bottom: 1px solid var(--border-color);
}
.vp-tier-row:last-child { border-bottom: none; }
.vp-tier-row:hover { background: var(--bg-subtle); }
.vp-tier-row.is-selected {
	background: rgba(59,130,246,.06);
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
	border-radius: 0;
}
.vp-tier-list .vp-tier-row:first-child.is-selected { border-radius: 8px 8px 0 0; }
.vp-tier-list .vp-tier-row:last-child.is-selected  { border-radius: 0 0 8px 8px; }

.vp-tier-pieces {
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
}

.vp-tier-unit {
	color: var(--text-secondary);
}

.vp-tier-saves {
	font-size: var(--text-2xs);
	color: var(--text-muted);
	font-weight: var(--weight-medium);
}
.vp-tier-saves.is-active {
	color: var(--color-green-dark);
	background: rgba(22,163,74,.1);
	padding: 2px 7px;
	border-radius: var(--radius-pill);
}

.vp-tier-total {
	text-align: right;
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
}

/* Custom row — label + full-width qty input */
.vp-tier-row--custom { grid-template-columns: 1fr 3fr; }
.vp-tier-row--custom .vp-tier-pieces { color: var(--text-secondary); font-weight: var(--weight-medium); }
.vp-tier-row--custom .vp-tier-custom-check {
	display: none;
	color: var(--color-primary);
	font-weight: var(--weight-bold);
	font-size: var(--text-base);
}
.vp-tier-row--custom.is-selected .vp-tier-custom-check { display: block; }

.vp-custom-qty {
	width: 100%;
	padding: 5px 8px;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
	color: var(--text-primary);
	background: var(--bg-card);
	outline: none;
	box-sizing: border-box;
}
.vp-custom-qty:focus { border-color: var(--color-primary); }

/* Live summary bar */
.vp-tier-summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	padding: 10px 14px;
	margin-top: 6px;
	background: rgba(59,130,246,.06);
	border: 1.5px solid rgba(59,130,246,.2);
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
}
.vp-tier-sum-unit {
	font-weight: var(--weight-bold);
	color: var(--text-primary);
}
.vp-tier-sum-sep {
	color: var(--text-muted);
}
.vp-tier-sum-total {
	color: var(--text-secondary);
}
.vp-tier-sum-savings {
	font-weight: var(--weight-semibold);
	color: var(--color-green-dark);
	background: rgba(22,163,74,.1);
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
}
