/**
 * WC Product WhatsApp Inquiry - frontend styles.
 */

/* The wrapper is rendered OUTSIDE the add-to-cart form (via
 * woocommerce_after_add_to_cart_form / before_add_to_cart_form / the
 * [wcpwi_button] shortcode), so it is always a clean full-width block on its
 * own line and never sits inside the flex button row. The flex-basis keeps it
 * on its own line even if a page builder drops it inside a flex container, so
 * it can never shrink the "Add to cart" button. */
.wcpwi-wrapper {
	display: block;
	width: 100%;
	flex: 0 0 100%;
	margin: 20px 0 0;
	clear: both;
}

.wcpwi-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	line-height: 1.2;
	font-weight: 600;
	text-decoration: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	max-width: 100%;
}

.wcpwi-button:hover,
.wcpwi-button:focus {
	opacity: 0.92;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	color: inherit;
}

.wcpwi-button:active {
	transform: translateY(1px);
}

.wcpwi-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wcpwi-icon {
	flex: 0 0 auto;
	display: inline-block;
	vertical-align: middle;
}

.wcpwi-button-text {
	white-space: nowrap;
}

/* Hidden state used while a variable product has no selection. */
.wcpwi-button.wcpwi-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
