/* Product Terms Checkbox – front end */
.xpt-terms {
	flex: 1 0 100%;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.02);
}

.xpt-terms__label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
	line-height: 1.5;
}

.xpt-terms__label .xpt-terms__input {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	margin: 0.3em 0 0;
}

.xpt-terms__label a {
	text-decoration: underline;
}

.xpt-terms abbr.required {
	text-decoration: none;
	border: 0;
	color: #b32d2e;
}

/* Themes and the Elementor Pro "Add To Cart" widget (Inline layout) put the quantity + button
   in a single non-wrapping flex row. Let it wrap so the tick box gets its own line above them.
   !important is needed to beat Elementor's high-specificity nowrap rule. */
form.cart:has(> .xpt-terms),
.woocommerce-variation-add-to-cart:has(> .xpt-terms) {
	flex-wrap: wrap !important;
}

.elementor-widget-woocommerce-product-add-to-cart .xpt-terms {
	order: -1;
}
