/*
 * sp-b2b-pricing — storefront price markup (0.1.5).
 * Discount layout for Hebrew/RTL: «ההנחה שלך: 20%» pill, the final price, «במקום ₪83.17».
 * Colors fall back to neutral values when the theme has no tokens.
 */
.sp-b2b-price__now {
	font-weight: 800;
	direction: ltr;
	unicode-bidi: isolate;
}
.sp-b2b-price__deal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	direction: rtl;
	font-weight: 400;
}
.sp-b2b-price__badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--success-tint, #e6f4ec);
	color: var(--success-text, #157a42);
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}
.sp-b2b-price__badge--sale {
	background: var(--error-tint, #fbe7e5);
	color: var(--error-text, #bf2a1e);
}
.sp-b2b-price__was {
	color: var(--text-soft, #5f6a6b);
	white-space: nowrap;
}
.sp-b2b-price__was del {
	direction: ltr;
	unicode-bidi: isolate;
}

/* Product page (Komet template .sp-priceblock, RTL), one column:
 *   [ההנחה שלך: 20%]
 *   ₪66.54   במקום ₪83.17          ← price and old price on one baseline
 *   ליחידה · לא כולל מע״מ          ← the template's own note (so no «ללא מע״מ» here)
 * Selectors start with .sp-priceblock-w .sp-priceblock: the page template's <style> (in the
 * body, later) and sp-komet-effects style the same nodes at up to (0,3,0). */
.sp-priceblock-w .sp-priceblock .komet-price__now .sp-b2b-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	column-gap: 14px;
	row-gap: 0;
	direction: rtl;
	text-align: right;
	line-height: 1.15;
}
.sp-priceblock-w .sp-priceblock .komet-price__now .sp-b2b-price .sp-b2b-price__vat {
	display: none;
}
.sp-priceblock-w .sp-priceblock .komet-price__now .sp-b2b-price .sp-b2b-price__deal {
	display: contents;
}
.sp-priceblock-w .sp-priceblock .komet-price__now .sp-b2b-price .sp-b2b-price__badge {
	order: -2;
	margin: 0 0 10px;
	padding: 3px 12px;
	font-size: .95rem;
	line-height: 1.5;
}
.sp-priceblock-w .sp-priceblock .komet-price__now .sp-b2b-price--deal::before {
	content: "";
	order: -1;
	flex-basis: 100%;
	height: 0;
}
.sp-priceblock-w .sp-priceblock .komet-price__now .sp-b2b-price .sp-b2b-price__was {
	order: 1;
	font-size: 1.05rem;
	font-weight: 400;
}
.sp-priceblock-w .sp-priceblock .komet-price__now .sp-b2b-price .sp-b2b-price__was del {
	margin: 0;
	font-size: inherit;
	color: inherit;
}
.sp-priceblock-w .sp-priceblock .komet-price__vat {
	margin-top: 10px;
	font-size: .95rem;
	color: var(--text-soft, #5f6a6b);
}

/* Catalog cards: compact, still RTL. */
.komet-card__price:has(.sp-b2b-price__now) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	direction: rtl;
	font-size: inherit;
	font-weight: 400;
}
.komet-card__price .sp-b2b-price__now {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ink, #173557);
}
.komet-card__price .sp-b2b-price__deal {
	flex-basis: 100%;
	gap: 2px 8px;
}
.komet-card__price .sp-b2b-price__deal .sp-b2b-price__badge {
	padding: 1px 8px;
	font-size: .72rem;
	background: var(--success-tint, #e6f4ec);
	color: var(--success-text, #157a42);
	border-radius: 999px;
}
.komet-card__price .sp-b2b-price__deal .sp-b2b-price__badge--sale {
	background: var(--error-tint, #fbe7e5);
	color: var(--error-text, #bf2a1e);
}
.komet-card__price .sp-b2b-price__was {
	font-size: .78rem;
}
