/* "Add to cart" in Grid Layouts with a chosen button style.
   The link loses the WooCommerce .button class, so Impreza's .button rules are repeated for .ip-atc-btn. */
.ip-atc-btn.disabled,
.ip-atc-btn[disabled] {
	opacity: .5;
}

.ip-atc-btn .w-btn-label {
	display: inline-block;
	transition: opacity .15s;
}

.ip-atc-btn .g-preloader {
	position: absolute !important;
	top: 50%;
	left: 50%;
	font-size: 1.8em;
	opacity: 0;
	transform: translate(-50%, -50%);
	transition: opacity .3s;
	color: inherit;
}

.w-btn-wrapper.woocommerce > .ip-atc-btn.loading {
	pointer-events: none;
}

.ip-atc-btn.loading .w-btn-label {
	opacity: 0;
}

.ip-atc-btn.loading .g-preloader {
	opacity: 1;
}

.w-grid .w-btn-wrapper > .ip-atc-btn {
	width: inherit;
}

.w-grid .w-btn-wrapper.has_border_radius > .ip-atc-btn {
	border-radius: inherit !important;
}

.w-grid .w-btn-wrapper.has_font_size > .ip-atc-btn {
	font-size: inherit !important;
}

/* Catalog Mode: Impreza hides ".type_product a.button" */
body.us-woo-catalog .type_product a.ip-atc-btn {
	display: none !important;
}
