/**
 * Product Add to Cart — common widget CSS.
 *
 * Only base layout + resets live here. Button/quantity colours are driven by
 * Elementor controls (inline selectors), so they are intentionally absent.
 *
 * @package captain-widgets-kit
 * @since   1.2.0
 */

.captwiki-woo-add-to-cart {
	display: block;
	width: 100%;
}

.captwiki-woo-add-to-cart form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.captwiki-woo-add-to-cart form.cart .quantity {
	margin: 0;
	display: inline-flex;
}

.captwiki-woo-add-to-cart .quantity .qty {
	text-align: center;
}

.captwiki-woo-add-to-cart .single_add_to_cart_button {
	cursor: pointer;
	line-height: 1.4;
}

/* Hide quantity when the control is toggled off. */
.captwiki-woo-add-to-cart--no-qty form.cart .quantity {
	display: none;
}

/* Variable product variations table should stack cleanly. */
.captwiki-woo-add-to-cart .variations {
	width: 100%;
	margin-bottom: 12px;
}

.captwiki-woo-add-to-cart .variations td,
.captwiki-woo-add-to-cart .variations th {
	padding: 6px 0;
}

.captwiki-woo-add-to-cart__unavailable {
	margin: 0;
	font-style: italic;
	opacity: 0.8;
}

/* Editor-only notice. */
.captwiki-woo-add-to-cart--notice {
	padding: 16px 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #f6f7f7;
	color: #50575e;
	text-align: center;
	font-size: 13px;
}

.captwiki-woo-add-to-cart--notice p {
	margin: 0;
}
