/*
 * Quick Order Form for WooCommerce — front-end styles
 * Loaded by quick-order-form.php only on singular content containing
 * the [quick_order_form] shortcode.
 */

.p-qof-table { display: flex; flex-direction: column; width: 100%; border: 1px solid #e2e2e2; border-radius: 4px; overflow: hidden; }
.p-qof-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e2e2e2; }
.p-qof-row:last-child { border-bottom: none; }
.p-qof-row--head { background: #f0f0f0; font-weight: 600; }
.p-qof-col { flex: 1 1 0; min-width: 0; }
.p-qof-col-product { flex: 3 1 240px; }
.p-qof-col-price { flex: 1 1 120px; }
.p-qof-col-stock { flex: 1 1 120px; }
.p-qof-col-qty { flex: 0 1 90px; text-align: center; }
.p-qof-col-qty input[type="number"] { width: 70px; }
.p-qof-variant { color: #666; font-size: 0.9em; }
.p-qof-parent-row { background: #f7f7f7; }
.p-qof-parent-title { font-weight: 600; }
.p-qof-variation-row .p-qof-col-product { padding-left: 24px; }
.p-qof-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1em; gap: 1em; }
.p-qof-category-title { margin: 0; }

@media (max-width: 600px) {
	.p-qof-row--head { display: none; }
	.p-qof-row {
		flex-wrap: wrap;
		position: relative;
		padding: 12px 14px;
	}
	.p-qof-col { flex: 1 1 50%; }
	.p-qof-col-product { flex: 1 1 100%; order: -1; margin-bottom: 6px; }
	.p-qof-col-qty { flex: 1 1 100%; text-align: left; margin-top: 6px; }
	.p-qof-col::before {
		content: attr(data-label);
		display: block;
		font-size: 0.75em;
		font-weight: 600;
		color: #888;
		text-transform: uppercase;
		margin-bottom: 2px;
	}
	.p-qof-col-product::before { display: none; }
	.p-qof-variation-row .p-qof-col-product { padding-left: 0; }
	.p-qof-header { flex-wrap: wrap; }
}