.webisoft-price-box,
.webisoft-price-box-mobile {
	direction: rtl;
	text-align: right;
	width: 100%;
	display: block;
}

.is-hidden {
	display: none !important;
}

/* --- دسکتاپ --- */

.webisoft-price-box-discount-badge {
	display: inline-flex;
	height: 38px;
	margin-bottom: 8px;
	border: 1.5px solid var(--webisoft-price-box-discount, #cc0000);
	border-radius: 6px;
	overflow: hidden;
}

.webisoft-price-box-discount-percent {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	background-color: var(--webisoft-price-box-discount, #cc0000);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.webisoft-price-box-discount-amount {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0 12px;
	background-color: #fff;
	color: var(--webisoft-price-box-discount, #cc0000);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.webisoft-price-box-discount-amount #webisoft-price-box-discount-amount {
	font-size: 14px;
}

.webisoft-price-box-regular-price {
	display: block;
	margin-bottom: 5px;
	color: #a1a1a1;
	font-size: 12px;
	font-weight: 500;
	text-align: left;
	text-decoration: line-through;
}

.webisoft-price-box-final-price {
	display: block;
	color: var(--webisoft-price-box-price, #1d64bd);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
	text-align: left;
	direction: rtl;
}

.webisoft-price-box-final-price .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

/* --- موبایل --- */

.webisoft-price-box-mobile {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
}

.webisoft-price-box-mobile-discount {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}

.webisoft-price-box-mobile-regular {
	color: #a1a1a1;
	font-size: 12px;
	font-weight: 500;
	text-decoration: line-through;
	white-space: nowrap;
}

.webisoft-price-box-mobile-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 5px;
	background-color: var(--webisoft-price-box-discount, #cc0000);
	color: #fff;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	line-height: 1;
}

.webisoft-price-box-mobile-final {
	display: inline-flex;
	gap: 4px;
	color: var(--webisoft-price-box-price, #1d64bd);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
	white-space: nowrap;
}

.webisoft-price-box-mobile-final .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}
