/**
 * Mariwork Core WooCommerce currency presentation.
 *
 * The text node remains تومان for semantics, copy/paste, screen readers,
 * structured data, emails, APIs, and backend contexts. Only the visual text
 * rendering is reduced to zero and replaced by the local Toman symbol.
 */

.woocommerce-Price-currencySymbol {
	display: inline-block;
	position: relative;
	font-size: 0;
	line-height: 0;
	white-space: nowrap;
}

.woocommerce-Price-currencySymbol::before {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	min-width: 15px;
	position: relative;
	top: -6px;
	vertical-align: middle;
	opacity: 0.6;
	margin-left: 4px;
	margin-right: 4px;
	background-image: url('../../../assets/icons/toman.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
}

/*
 * Variable-product ranges contain two direct price amounts separated by an
 * aria-hidden dash. Keep the semantic currency nodes intact but present the
 * visual Toman symbol only after the second amount.
 *
 * .product-type-variable .price:has(
 * 	> .woocommerce-Price-amount + [aria-hidden='true'] + .woocommerce-Price-amount
 * ) > .woocommerce-Price-amount:first-child .woocommerce-Price-currencySymbol {
 * 	display: none;
 * }
 */

@media (max-width: 768px) {
	.woocommerce-Price-currencySymbol::before {
		width: 12px;
		height: 12px;
		min-width: 12px;
		margin-right: 0;
	}
}
