/* כל הצבעים כמשתנים — קל להתאים לפלטה של כל אתר. */

.tp-qp-block {
	--tp-qp-bg: #ffffff;
	--tp-qp-border: #e7e3da;
	--tp-qp-text: #3a3a38;
	--tp-qp-muted: #8a8780;
	--tp-qp-accent: #4a7a63;
	--tp-qp-accent-soft: #eef4f0;
	--tp-qp-accent-line: #cfe0d6;
	--tp-qp-hint-bg: #faf8f4;

	margin: 0 0 1.75em;
	font-size: 15px;
}

.tp-qp-inner {
	background: var(--tp-qp-bg);
	border: 1px solid var(--tp-qp-border);
	border-radius: 10px;
	overflow: hidden;
}

/* כותרת המבצע */

.tp-qp-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	background: var(--tp-qp-accent-soft);
	border-bottom: 1px solid var(--tp-qp-accent-line);
}

.tp-qp-head-icon {
	display: flex;
	flex: 0 0 auto;
	color: var(--tp-qp-accent);
}

.tp-qp-head-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tp-qp-headline {
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.35;
	color: var(--tp-qp-accent);
}

.tp-qp-subline {
	font-size: 0.85em;
	line-height: 1.4;
	color: var(--tp-qp-accent);
	opacity: 0.85;
}

/* שורות המדרגות */

ul.tp-qp-list {
	margin: 0;
	padding: 4px 0;
	list-style: none;
}

ul.tp-qp-list li.tp-qp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 11px 16px;
	list-style: none;
	border-inline-start: 3px solid transparent;
	transition: background-color 0.15s ease;
}

.tp-qp-row-qty {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tp-qp-row-label {
	font-size: 0.9em;
	color: var(--tp-qp-text);
}

.tp-qp-row-unit {
	font-size: 0.78em;
	color: var(--tp-qp-muted);
}

.tp-qp-row-prices {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
}

.tp-qp-row-total {
	font-size: 0.95em;
	color: var(--tp-qp-text);
	white-space: nowrap;
}

.tp-qp-row-total .woocommerce-Price-amount {
	font-weight: inherit;
}

.tp-qp-saving {
	font-size: 0.75em;
	line-height: 1;
	padding: 4px 9px;
	border-radius: 20px;
	background: var(--tp-qp-hint-bg);
	color: var(--tp-qp-muted);
	white-space: nowrap;
}

/* המדרגה המשתלמת + המדרגה הפעילה לפי הכמות שנבחרה */

.tp-qp-row--best,
.tp-qp-row.is-active {
	background: var(--tp-qp-accent-soft);
	border-inline-start-color: var(--tp-qp-accent);
}

.tp-qp-row--best .tp-qp-row-label,
.tp-qp-row--best .tp-qp-row-total,
.tp-qp-row.is-active .tp-qp-row-label,
.tp-qp-row.is-active .tp-qp-row-total {
	color: var(--tp-qp-accent);
	font-weight: 600;
}

.tp-qp-row--best .tp-qp-row-unit,
.tp-qp-row.is-active .tp-qp-row-unit {
	color: var(--tp-qp-accent);
	opacity: 0.8;
}

.tp-qp-row--best .tp-qp-saving,
.tp-qp-row.is-active .tp-qp-saving {
	background: var(--tp-qp-bg);
	color: var(--tp-qp-accent);
}

/* הערות ורמז */

.tp-qp-note {
	margin: 0;
	padding: 10px 16px;
	font-size: 0.8em;
	line-height: 1.5;
	color: var(--tp-qp-muted);
	background: var(--tp-qp-hint-bg);
	border-top: 1px solid var(--tp-qp-border);
}

.tp-qp-hint {
	padding: 10px 16px;
	font-size: 0.83em;
	color: var(--tp-qp-accent);
	background: var(--tp-qp-hint-bg);
	border-top: 1px solid var(--tp-qp-border);
}

.tp-qp-hint[hidden] {
	display: none;
}

.tp-qp-cart-hint {
	margin-top: 6px;
	font-size: 0.85em;
	color: #4a7a63;
}

@media (max-width: 480px) {
	ul.tp-qp-list li.tp-qp-row {
		padding: 10px 12px;
	}

	.tp-qp-head {
		padding: 12px;
	}
}
