/**
 * Frontend styles for Nexus ERP Plugin
 */

.scx-pricing-wrapper {
	position: relative;
}

.scx-pricing-loading {
	opacity: 0.6;
}

.scx-pricing-loading::after {
	content: attr(data-loading-text);
	display: inline-block;
	margin-left: 5px;
}

.scx-pricing-error {
	color: #e2401c;
}

.scx-pricing-approval-required {
	display: block;
}

.scx-pricing-approval-message {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	padding: 15px;
	margin: 15px 0;
	color: #856404;
}

.scx-pricing-approval-message p {
	margin: 0 0 10px 0;
}

.scx-pricing-approval-button {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s;
}

.scx-pricing-approval-button:hover {
	background: #005a87;
}

.scx-pricing-approval-button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Hide prices when approval is required and not approved */
.scx-pricing-hidden {
	display: none !important;
}

/* Hide Add to Cart button when user cannot view pricing */
.scx-pricing-no-access form.cart,
.scx-pricing-no-access button.single_add_to_cart_button,
.scx-pricing-no-access .single_add_to_cart_button,
.scx-pricing-no-access .add_to_cart_button,
.scx-pricing-no-access a.add_to_cart_button {
	display: none !important;
}
