/**
 * Base (default) styles for the "ویجت قیمت سفارشی" (Custom Price) widget.
 * Elementor's Style-tab controls layer on top of these via {{WRAPPER}} selectors
 * with !important, so these rules only need to establish sane fallback values.
 */

.pfg-cp-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	direction: rtl;
}

.pfg-cp-top-row {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 10px;
}

.pfg-cp-badge {
	display: inline-block;
	background-color: #e84040;
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
	padding: 6px 14px;
	border-radius: 10px;
	white-space: nowrap;
}

/* .pfg-cp-amount is injected by PFG_Custom_Price_Widget::apply_price_class()
   onto wc_price()'s own "woocommerce-Price-amount amount" markup, for both
   the original and the sale price — this is what makes both react correctly
   to the Style tab's color controls regardless of theme CSS specificity. */
.pfg-cp-original .pfg-cp-amount {
	color: #aaaaaa;
	font-size: 15px;
	text-decoration-line: line-through;
	text-decoration-color: #aaaaaa;
	text-decoration-thickness: 2px;
}

.pfg-cp-sale {
	display: flex;
	flex-direction: row-reverse;
	align-items: baseline;
	gap: 4px;
}

.pfg-cp-sale .pfg-cp-amount {
	color: #1a2e5a;
	font-size: 22px;
	font-weight: 700;
}

.pfg-cp-currency {
	color: #1a2e5a;
	font-size: 13px;
}

.pfg-editor-notice {
	padding: 10px 14px;
	border: 1px dashed #c9c9c9;
	color: #888888;
	font-size: 13px;
	border-radius: 6px;
}

.pfg-cp-empty-tel {
	text-decoration: none;
	cursor: pointer;
}

.pfg-cp-empty-tel:hover {
	text-decoration: underline;
}

.pfg-cp-empty-text-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pfg-cp-empty-icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.pfg-cp-empty-icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.pfg-cp-empty-icon i {
	font-size: 20px;
}


.pfg-cp-sale .pfg-cp-empty-text {
	font-size: 22px;
	font-weight: 700;
}
