/**
 * Holler Order Form: generic styles for what the plugin prints.
 *
 * Kept small and low-specificity so a theme's own rules win. Page layout for an
 * order form page (hero, sections, Product Table restyling) belongs in the
 * theme. A theme that styles all of this itself can turn the file off with the
 * holler_order_form_enqueue_styles filter.
 */

/* Sold by weight: "kg" after the quantity input, "/kg" after the price. */
.quantity:has(.qty--kg) {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.qty-unit {
	margin-left: 0.35em;
	font-weight: bold;
}

.price-unit {
	letter-spacing: 0;
}

/* The label shown instead of £0.00, quieter than a real price. */
.price-label {
	font-size: 0.9em;
	font-weight: normal;
	letter-spacing: 0;
	opacity: 0.8;
}

/* Product Table's price column: the label is wider than a price, so it may wrap where a price never does. */
td.col-price .price-label {
	display: inline-block;
	white-space: normal;
	line-height: 1.3;
}

/*
 * Collection-only order form basket: hide WooCommerce's "Shipping to (address).
 * Change address" line under the pickup methods. WooCommerce has no filter for it.
 */
.order-form-collection .woocommerce-shipping-destination {
	display: none;
}

/*
 * Narrow basket: the "Paid when you collect" row label floats left of its
 * amount, and a float drops its trailing space, so a wrapped amount reads
 * "collect:£9.50". Put the gap back.
 */
.order-form-basket table.shop_table_responsive tr.cart-discount td::before {
	margin-right: 0.3em;
}
