.ebrander-smart-price {
	--ebrander-smart-price-regular-color: #8a8f95;
	--ebrander-smart-price-current-color: #172633;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
	width: 100%;
	margin: 14px 0 20px;
	font-family: inherit;
	box-sizing: border-box;
}
.ebrander-smart-price *,
.ebrander-smart-price *::before,
.ebrander-smart-price *::after { box-sizing: border-box; }
.ebrander-smart-price__main {
	display: flex;
	align-items: center;
	gap: 26px;
	min-width: 0;
	flex: 0 1 auto;
}
.ebrander-smart-price__regular,
.ebrander-smart-price__current { min-width: 0; }
.ebrander-smart-price__regular { color: var(--ebrander-smart-price-regular-color); }
.ebrander-smart-price__label {
	display: block;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
	margin-bottom: 6px;
}
.ebrander-smart-price__regular-value {
	display: block;
	position: relative;
	width: fit-content;
	max-width: 100%;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.05;
	font-weight: 400;
	white-space: nowrap;
	text-decoration: none !important;
}
.ebrander-smart-price__regular-value::after {
	content: "";
	position: absolute;
	left: 0;
	top: 67%;
	width: 100%;
	border-top: 2px solid var(--ebrander-smart-price-regular-strike-color, #ef4545);
	transform: rotate(-8deg);
	transform-origin: left center;
	pointer-events: none;
	z-index: 5;
}
.ebrander-smart-price__regular-value .ebrander-smart-price__amount,
.ebrander-smart-price__regular-value .ebrander-smart-price__amount bdi {
	display: inline-block;
	position: static;
	font-size: 1em;
	line-height: inherit;
	font-weight: inherit;
	vertical-align: baseline;
	text-decoration: none !important;
}
.ebrander-smart-price__separator {
	display: block;
	flex: 0 0 1px;
	width: 1px;
	height: 48px;
	background: #aeb3b8;
}
.ebrander-smart-price__current-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ebrander-smart-price-current-color);
}
.ebrander-smart-price__current-label .ebrander-smart-price__label { margin: 0; }
.ebrander-smart-price__current-value {
	color: var(--ebrander-smart-price-current-color);
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.035em;
	white-space: nowrap;
}
.ebrander-smart-price__amount {
	display: inline-block !important;
	white-space: nowrap !important;
	font-variant-numeric: lining-nums;
}
.ebrander-smart-price__amount bdi {
	display: inline-flex !important;
	align-items: baseline !important;
	white-space: nowrap !important;
	line-height: 1 !important;
	font: inherit;
	gap: 0 !important;
}
.ebrander-smart-price__amount .woocommerce-Price-currencySymbol {
	display: inline !important;
	font-size: .62em !important;
	font-weight: inherit !important;
	letter-spacing: -.04em !important;
	margin: 0 .015em 0 0 !important;
	padding: 0 !important;
	white-space: nowrap !important;
}
.ebrander-smart-price__number {
	display: inline-block !important;
	position: relative !important;
	white-space: nowrap !important;
	line-height: .9 !important;
	vertical-align: baseline !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
}
.ebrander-smart-price__integer {
	display: inline !important;
	position: static !important;
	font: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit;
	white-space: nowrap !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
}
.ebrander-smart-price__decimals {
	display: inline-block !important;
	position: relative !important;
	left: auto !important;
	top: 3px !important;
	vertical-align: super !important;
	transform: none !important;
	font-size: .34em !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: -.025em !important;
	margin: 0 0 0 -.04em !important;
	padding: 0 !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* Independent sizing and vertical placement for each price role. */

.ebrander-smart-price__regular-amount .woocommerce-Price-currencySymbol { font-size: .62em !important; }
.ebrander-smart-price__regular-amount .ebrander-smart-price__decimals {
	font-size: .38em !important;
	top: -2px !important;
	font-weight: 600 !important;

	margin: 0 0 0 1.5px !important;
}
.ebrander-smart-price__current-amount .woocommerce-Price-currencySymbol { font-size: .62em !important; }
.ebrander-smart-price__current-amount .ebrander-smart-price__decimals {
	font-size: .32em !important;
	top: -4px !important;
	font-weight: 800 !important;

	margin: 0 0 0 1.5px !important;
}
.ebrander-smart-price__savings-amount .woocommerce-Price-currencySymbol { font-size: .72em !important; }
.ebrander-smart-price__savings-amount .ebrander-smart-price__decimals {
	font-size: .42em !important;
	top: .02em !important;
	font-weight: 800 !important;
}
.ebrander-smart-price__savings {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	margin-left: 0;
	padding: 14px 18px;
	border-radius: 11px;
	background: var(--ebrander-smart-price-savings-bg, #eaf5d9);
	color: var(--ebrander-smart-price-savings-color, #17852d);
}
.ebrander-smart-price__savings-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ebrander-smart-price__savings-label {
	font-size: 13px;
	line-height: 1.15;
	white-space: nowrap;
}
.ebrander-smart-price__savings-value {
	display: block;
	font-size: 20px;
	line-height: 1.1;
	font-weight: 800;
	white-space: nowrap;
}
.ebrander-smart-price__icon,
.ebrander-smart-price__icon-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	color: inherit;
}
.ebrander-smart-price__icon svg { display: block; width: 100%; height: 100%; max-width: 100%; }
.ebrander-smart-price__icon svg [fill="currentColor"] { fill: currentColor; }
.ebrander-smart-price__icon svg [stroke="currentColor"] { stroke: currentColor; }
.ebrander-smart-price [hidden] { display: none !important; }

/* Compact presentation for WooCommerce catalog cards. */
.ebrander-smart-price--catalog {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 7px;
	width: 100%;
	margin: 7px 0 10px;
	line-height: 1.15;
}
.ebrander-smart-price--catalog .ebrander-smart-price__main {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	gap: 10px;
	min-width: 0;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular,
.ebrander-smart-price--catalog .ebrander-smart-price__current {
	min-width: 0;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular-value {
	font-size: clamp(16px, 1.6vw, 22px);
	line-height: 1.1;
}
.ebrander-smart-price--catalog .ebrander-smart-price__current-value {
	font-size: clamp(18px, 1.8vw, 24px);
	line-height: 1.1;
}
.ebrander-smart-price--catalog .ebrander-smart-price__separator {
	height: 22px;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular-amount .woocommerce-Price-currencySymbol,
.ebrander-smart-price--catalog .ebrander-smart-price__current-amount .woocommerce-Price-currencySymbol {
	font-size: .68em !important;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular-amount .ebrander-smart-price__decimals {
	font-size: .42em !important;
	top: -2px !important;

	margin: 0 0 0 1.5px !important;
}
.ebrander-smart-price--catalog .ebrander-smart-price__current-amount .ebrander-smart-price__decimals {
	font-size: .38em !important;
	top: -3px !important;

	margin: 0 0 0 1.5px !important;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular-value::after {
	top: 62%;
	border-top-width: 1.5px;
	transform: rotate(-8deg);
}
.ebrander-smart-price__catalog-savings {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 4px 7px;
	border-radius: 6px;
	background: var(--ebrander-smart-price-savings-bg, #eaf5d9);
	color: var(--ebrander-smart-price-savings-color, #17852d);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
}
.ebrander-smart-price--catalog .ebrander-smart-price__savings-amount .woocommerce-Price-currencySymbol {
	font-size: .8em !important;
}
.ebrander-smart-price--catalog .ebrander-smart-price__savings-amount .ebrander-smart-price__decimals {
	font-size: .48em !important;
	top: 0 !important;
}
@media (max-width: 767px) {
	.ebrander-smart-price--catalog {
		gap: 5px;
		margin: 6px 0 9px;
	}
	.ebrander-smart-price--catalog .ebrander-smart-price__main {
		gap: 7px;
	}
	.ebrander-smart-price--catalog .ebrander-smart-price__regular-value {
		font-size: clamp(15px, 4.2vw, 20px);
	}
	.ebrander-smart-price--catalog .ebrander-smart-price__current-value {
		font-size: clamp(17px, 4.6vw, 22px);
	}
	.ebrander-smart-price--catalog .ebrander-smart-price__separator {
		height: 19px;
	}
	.ebrander-smart-price__catalog-savings {
		font-size: 11px;
		padding: 3px 6px;
	}
}

@media (max-width: 767px) {
	/* Keep the savings card close to the sale price and improve legibility. */
	.ebrander-smart-price {
		align-items: center;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 7px;
		width: 100%;
	}
	.ebrander-smart-price__main {
		width: auto;
		flex: 0 1 auto;
		gap: 9px;
		min-width: 0;
	}
	.ebrander-smart-price__regular,
	.ebrander-smart-price__current { min-width: 0; }
	.ebrander-smart-price__label { font-size: 13px; margin-bottom: 4px; }
	.ebrander-smart-price__regular-value { font-size: clamp(23px, 6vw, 34px); line-height: 1.05; }
	.ebrander-smart-price__current-value { font-size: clamp(23px, 6vw, 34px); }
	.ebrander-smart-price__separator { height: 38px; }
	.ebrander-smart-price__savings {
		align-self: center;
		flex: 0 0 auto;
		gap: 5px;
		margin-left: 0;
		padding: 8px 9px;
		border-radius: 10px;
	}
	.ebrander-smart-price__savings-copy { gap: 2px; }
	.ebrander-smart-price__savings-label { font-size: 11px; }
	.ebrander-smart-price__savings-value { font-size: 18px; }
	.ebrander-smart-price__savings .ebrander-smart-price__icon,
	.ebrander-smart-price__savings .ebrander-smart-price__icon-slot {
		width: 16px;
		height: 16px;
		flex-basis: 16px;
	}
}


/* EBSP 1.3.2: catalog savings always sits below prices and spans the product card width. */
.ebrander-smart-price.ebrander-smart-price--catalog {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 7px;
	width: 100%;
	box-sizing: border-box;
}
.ebrander-smart-price.ebrander-smart-price--catalog .ebrander-smart-price__main {
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	box-sizing: border-box;
}
.ebrander-smart-price.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	white-space: normal;
}
@media (max-width: 767px) {
	.ebrander-smart-price.ebrander-smart-price--catalog {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}
	.ebrander-smart-price.ebrander-smart-price--catalog .ebrander-smart-price__main {
		width: 100%;
	}
	.ebrander-smart-price.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings {
		width: 100%;
		padding: 5px 8px;
		font-size: 11px;
	}
}


/* EBSP 1.3.5: catalog savings aligns under the offer price and sizes to its content. */
.ebrander-smart-price.ebrander-smart-price--catalog {
	display: block;
	width: 100%;
	box-sizing: border-box;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-pricing {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
}
.ebrander-smart-price--catalog .ebrander-smart-price__main {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular,
.ebrander-smart-price--catalog .ebrander-smart-price__current {
	flex: 0 0 auto;
	min-width: 0;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-row {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	min-width: 0;
	margin-top: 5px;
	padding-left: 0;
	box-sizing: border-box;
}
/* The left offset is measured from the start of the offer price, including the full regular-price column and separator. */
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-row:has(+ *) {
	margin-top: 5px;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	min-width: 0;
	padding: 4px 8px;
	box-sizing: border-box;
	white-space: nowrap;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-label {
	display: inline;
}
@media (max-width: 767px) {
	.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-row {
		margin-top: 5px;
	}
	.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings {
		width: auto;
		max-width: 100%;
		padding: 4px 7px;
		font-size: 11px;
	}
}

/* Catalog price layout uses grid columns so the savings row begins exactly under the offer price. */
.ebrander-smart-price--catalog .ebrander-smart-price__main {
	display: grid;
	grid-template-columns: max-content 1px max-content;
	column-gap: 10px;
	justify-content: start;
	width: max-content;
	max-width: 100%;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular {
	grid-column: 1;
}
.ebrander-smart-price--catalog .ebrander-smart-price__separator {
	grid-column: 2;
}
.ebrander-smart-price--catalog .ebrander-smart-price__current {
	grid-column: 3;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-row {
	padding-left: calc(var(--ebsp-regular-column-width, 0px));
}

.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-row {
	display: grid;
	grid-template-columns: max-content 1px max-content;
	column-gap: 10px;
	justify-content: start;
	width: max-content;
	max-width: 100%;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-spacer {
	grid-column: 1 / 3;
	width: 100%;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings {
	grid-column: 3;
}


/* EBSP 1.3.6: align the savings badge exactly with the start of the offer currency symbol. */
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-pricing {
	display: grid !important;
	grid-template-columns: max-content 1px max-content;
	column-gap: 10px;
	row-gap: 5px;
	justify-content: start;
	align-items: center;
	width: max-content;
	max-width: 100%;
	min-width: 0;
}
.ebrander-smart-price--catalog .ebrander-smart-price__main {
	display: contents !important;
}
.ebrander-smart-price--catalog .ebrander-smart-price__regular {
	grid-column: 1;
	grid-row: 1;
}
.ebrander-smart-price--catalog .ebrander-smart-price__separator {
	grid-column: 2;
	grid-row: 1;
}
.ebrander-smart-price--catalog .ebrander-smart-price__current {
	grid-column: 3;
	grid-row: 1;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-row {
	display: block !important;
	grid-column: 3;
	grid-row: 2;
	justify-self: start;
	align-self: start;
	width: max-content;
	max-width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings {
	display: inline-flex !important;
	width: max-content !important;
	max-width: 100%;
	margin: 0 !important;
	box-sizing: border-box;
	white-space: nowrap;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-pricing--no-regular {
	grid-template-columns: max-content;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-pricing--no-regular .ebrander-smart-price__current {
	grid-column: 1;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-pricing--no-regular .ebrander-smart-price__catalog-savings-row {
	grid-column: 1;
}
@media (max-width: 767px) {
	.ebrander-smart-price--catalog .ebrander-smart-price__catalog-pricing {
		column-gap: 7px;
		row-gap: 5px;
	}
}


/* EBSP 1.3.8: catalog savings label regular weight, amount bold, with clear spacing. */
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-label {
	font-weight: 400 !important;
	margin-right: 4px !important;
}
.ebrander-smart-price--catalog .ebrander-smart-price__catalog-savings-amount,
.ebrander-smart-price--catalog .ebrander-smart-price__savings-amount {
	font-weight: 700 !important;
}


/* Elessi fixed add-to-cart bar: compact EBSP price beside the product title. */
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: auto;
	max-width: 100%;
	margin: 2px 0 0;
	vertical-align: middle;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__main {
	gap: 8px;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__label,
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__current-label {
	display: none !important;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__regular-value,
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__current-value {
	font-size: 15px !important;
	line-height: 1.1 !important;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__separator {
	height: 18px;
}
 .nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__savings {
	display: flex !important;
	align-items: center;
	gap: 5px;
	margin: 0 0 0 2px;
	padding: 4px 7px;
	border-radius: 5px;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__savings[hidden] {
	display: none !important;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__savings-copy {
	flex-direction: row;
	align-items: baseline;
	gap: 3px;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__savings-label {
	font-size: 10px;
	line-height: 1;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__savings-value {
	font-size: 12px;
	line-height: 1;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__icon,
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__icon-slot {
	width: 13px;
	height: 13px;
}
.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__regular-value::after {
	border-top-width: 1px;
	top: 62%;
}
@media (max-width: 767px) {
	.nasa-add-to-cart-fixed .ebrander-smart-price--sticky {
		gap: 5px;
		margin-top: 1px;
	}
	.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__main {
		gap: 5px;
	}
	.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__regular-value,
	.nasa-add-to-cart-fixed .ebrander-smart-price--sticky .ebrander-smart-price__current-value {
		font-size: 13px !important;
	}
}


/* EBSP 1.4.9: icon spacing is present only when an icon is configured. */
.ebrander-smart-price__current-label,
.ebrander-smart-price__savings {
	column-gap: 0;
}
.ebrander-smart-price__current-label:has(> .ebrander-smart-price__icon),
.ebrander-smart-price__savings:has(> .ebrander-smart-price__icon) {
	column-gap: 5px;
}

/* EBSP 1.5.4: regular amount and strike line use independent color settings. */
.ebrander-smart-price__regular-value,
.ebrander-smart-price__regular-value .ebrander-smart-price__amount,
.ebrander-smart-price__regular-value .ebrander-smart-price__amount bdi {
	color: var(--ebrander-smart-price-regular-color) !important;
}
.ebrander-smart-price__regular-value::after {
	border-top-color: var(--ebrander-smart-price-regular-strike-color, #ef4545) !important;
}
.ebrander-smart-price__regular .ebrander-smart-price__label {
	color: var(--ebrander-smart-price-regular-label-color, inherit);
}
.ebrander-smart-price__current-label .ebrander-smart-price__label {
	color: var(--ebrander-smart-price-sale-label-color, inherit);
}
.ebrander-smart-price__savings-label,
.ebrander-smart-price__catalog-savings-label {
	color: var(--ebrander-smart-price-savings-label-color, inherit);
}

/* 1.5.8: a product without an active sale shows only its regular price. */
.ebrander-smart-price--regular-only .ebrander-smart-price__current-value {
    color: var(--ebrander-smart-price-regular-color) !important;
}

/* 1.6.0: independent solid color for a regular price when no sale is active. */
.ebrander-smart-price--regular-only .ebrander-smart-price__current-value {
    color: var(--ebrander-smart-price-regular-only-color, #000000) !important;
}
.ebrander-smart-price--regular-only .ebrander-smart-price__current-amount,
.ebrander-smart-price--catalog.ebrander-smart-price--regular-only .ebrander-smart-price__current-amount {
    color: var(--ebrander-smart-price-regular-only-color, #000000) !important;
    text-decoration: none !important;
}


/* 1.6.6: force decimal digits to sit raised as superscripts across themes. */
.ebrander-smart-price .ebrander-smart-price__decimals,
.ebrander-smart-price .ebrander-smart-price__regular-amount .ebrander-smart-price__decimals,
.ebrander-smart-price .ebrander-smart-price__current-amount .ebrander-smart-price__decimals,
.ebrander-smart-price .ebrander-smart-price__savings-amount .ebrander-smart-price__decimals {
    display: inline-block !important;
    position: relative !important;
    top: -0.42em !important;
    bottom: auto !important;
    vertical-align: super !important;
    transform: none !important;
    line-height: 1 !important;
}
