.acf-field-products h4 {
	margin-bottom: 10px;
}

.acf-field-products .instructions {
	margin: 0;
}

.acf-field-products .selected-products {
	display: none;
}
.acf-field-products .selected-products.visible {
	display: block;
}

.acf-products-tree {
	margin-bottom: 12px;
}

.product-tree-item {
	margin-left: 10px;
	padding: 4px 0;
	position: relative;
}
.product-children {
	margin-left: 18px;
}
.acf-products-selected {
	margin-top: 8px;
	border-top: 1px solid #eee;
	padding-top: 8px;
}
.product-card {
	border: 1px solid #ddd;
	padding: 8px;
	margin-bottom: 8px;
	border-radius: 6px;
	background: #fafafa;
}
.product-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.product-card-inputs {
	display: flex;
	align-items: center;
	gap: 20px;
}

.product-card-inputs label {
	margin: 6px 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: var(--wp--preset--font-size--small);
}

.range-value {
	margin-left: 8px;
	font-weight: 600;
}
.remove-label input {
	margin-right: 6px;
}

/* make product-name and checkbox align nicely */
.product-label {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.product-label input.product-tree-checkbox {
	margin-right: 6px;
}

/* small animation tuning for children (slideDown/slideUp uses inline styles) */
.product-children {
	overflow: hidden;
}

@media (max-width: 782px) {
	.product-card-inputs {
		align-items: start;
		gap: 0px;
		flex-direction: column;
	}
}
