/* FFL acknowledgment checkbox on FFL-required product pages. */
.preece-ffl-ack-wrap {
	margin: 1em 0 1.25em;
}

/*
 * Fallback layout for when assets/pdp.js never relocates the wrap — script blocked, JS off, or
 * no Bricks wrapper to move it above. It then stays where PHP rendered it, as a direct child of
 * form.cart, which the theme lays out as a nowrap flex row (quantity + Add to Cart). Left alone
 * the wrap is squeezed into a ~135px column beside the button and the sentence reads one word
 * per line. Give it its own full-width row above that pair — the same position pdp.js targets.
 *
 * Inert on variable products, where form.cart is display:block and PHP's position is already
 * correct: flex-wrap/flex/order do nothing in block layout.
 */
form.cart:has(> .preece-ffl-ack-wrap) {
	flex-wrap: wrap;
}

form.cart > .preece-ffl-ack-wrap {
	flex: 1 0 100%;
	width: 100%;
	order: -1;
}

.preece-ffl-ack {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	padding: 0.85em 1em;
	border: 1px solid #000000;
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
	line-height: 1.35;
	color: #000000;
}

.preece-ffl-ack input[type="checkbox"] {
	margin-top: 0.2em;
	flex: 0 0 auto;
	accent-color: #000000;
	cursor: pointer;
}

.preece-ffl-ack .required {
	color: #d63638;
	border: 0;
	text-decoration: none;
}

.single_add_to_cart_button.preece-ffl-locked {
	opacity: 0.5;
	cursor: not-allowed;
}
