/*
 * NOUW ajax cart (replaces WooCommerce AJAX Cart PRO styles).
 * Base rules copied from the plugin (assets/wooajaxcart.css and the inline
 * <style> blocks it printed); css/app.css still styles .wac-* on top.
 */

/* plugin: assets/wooajaxcart.css */
.wac-qty-button {
	display: inline;
	border-radius: 5px;
	padding-left: 7px;
	padding-right: 7px;
	padding-bottom: 5px;
	background-color: lightgray;
	text-decoration: none;
	font-weight: bold;
}

.wac-quantity {
	width: 100%;
	font-weight: bold;
}

/* plugin: inline styles (wacpro_fix_quantity_styles, #wac-style-prod-qty) */
.widget_shopping_cart .quantity {
	display: inline;
}
.product .quantity {
	display: inline;
	float: none !important;
	margin-right: 0 !important;
}

/* plugin JS disabled -/+ when only one piece can be bought */
.wac-qty-button.disabled {
	pointer-events: none;
	opacity: 0.5;
	cursor: not-allowed;
}
.widget_shopping_cart .qty[readonly] {
	pointer-events: none;
}

/* busy states */
.single_add_to_cart_button.loading {
	opacity: 0.5;
	cursor: progress;
}
.mini_cart_item.processing,
.widget_shopping_cart form.checkout_coupon.processing {
	opacity: 0.4;
	pointer-events: none;
}

/* messages (add-to-cart errors, coupon result) */
.nouw-cart-message {
	margin: 0.5em 0 0;
	font-size: 0.8em;
}
.nouw-cart-message.is-error {
	color: #d55853;
}
#cart .widget_shopping_cart_content > .nouw-cart-message {
	margin: 0;
	padding: 0.4rem;
	border-bottom: 1px solid #ebebeb;
	font-size: 1em;
}
.widget_shopping_cart .woocommerce-form-coupon-toggle + .nouw-cart-message {
	margin: -2.25em 0 2em;
	padding: 0 0.44rem;
}
