/**
 * PPA Elementor Widgets – Base Styles
 *
 * Minimal styles that cannot be handled by Elementor controls.
 *
 * @package ProjectProgressAutomation
 * @since   4.14.0
 */

/* ================================================
   Add to Cart Button Widget
   ================================================ */
.ppa-atc-wrapper {
	display: flex;
}

.ppa-atc-wrapper[style*="stretch"] .ppa-atc-btn {
	width: 100%;
}

.ppa-atc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	border: none;
	outline: none;
	text-decoration: none !important;
	position: relative;
	-webkit-appearance: none;
	appearance: none;
	font-family: var(--e-global-typography-text-font-family, inherit);
}

.ppa-atc-btn.ppa-atc-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* Icon */
.ppa-atc-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.ppa-atc-icon svg {
	fill: currentColor;
}

/* Spinner (hidden by default) */
.ppa-atc-spinner {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
}

.ppa-atc-loading .ppa-atc-btn-text,
.ppa-atc-loading .ppa-atc-icon {
	visibility: hidden;
}

.ppa-atc-loading .ppa-atc-spinner {
	display: flex;
}

/* Added state */
.ppa-atc-added {
	opacity: 0.8;
	pointer-events: none;
}

/* ================================================
   Product Price Widget
   ================================================ */
.ppa-price-widget {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	direction: rtl;
	font-family: var(--e-global-typography-text-font-family, inherit);
}

.ppa-price-prefix {
	font-weight: 500;
}

.ppa-price-original {
	text-decoration: line-through;
}

.ppa-price-current {
	font-weight: 700;
}

.ppa-price-widget .woocommerce-Price-amount {
	font-weight: inherit;
	color: inherit;
}

.ppa-price-widget .woocommerce-Price-currencySymbol {
	font-weight: inherit;
}
