.nd-bundle-form {
	clear: both;
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 18px;
}

.nd-bundle-items {
	display: contents;
	grid-template-columns: 1fr;
	gap: 10px;
	width: 100%;
	margin: 0 0 18px;
}

.nd-bundle-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.nd-bundle-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	width: 100%;
	padding: 12px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 6px;
	background: #fff;
	box-sizing: border-box;
}

.nd-bundle-item.is-optional {
	opacity: 0.74;
}

.nd-bundle-item.is-optional.is-selected {
	opacity: 1;
}

.nd-bundle-image img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
}

.nd-bundle-details {
	min-width: 0;
}

.nd-bundle-title {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 6px;
	font-weight: 600;
	line-height: 1.35;
	word-break: normal;
	overflow-wrap: anywhere;
}

.nd-bundle-title input {
	flex: 0 0 auto;
	margin-top: 0.2em;
}

.nd-bundle-description {
	font-size: 0.92em;
	line-height: 1.45;
	margin-bottom: 8px;
	word-break: normal;
	overflow-wrap: break-word;
}

.nd-bundle-description p {
	margin: 0 0 6px;
}

.nd-bundle-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.nd-bundle-meta .quantity,
.nd-bundle-parent-quantity {
	margin: 0;
}

.nd-bundle-meta .qty {
	max-width: 76px;
}

.nd-bundle-stock-message {
	clear: both;
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 14px 0 0;
	padding: 12px 16px;
	border: 1px solid rgba(74, 66, 58, 0.16);
	border-radius: 8px;
	background: rgba(248, 246, 242, 0.9);
	color: #4a423a;
	font-size: 0.95em;
	line-height: 1.5;
	text-align: start;
}

.nd-bundle-cart-child .product-name,
.nd-bundle-child-name {
	opacity: 0.86;
}

.woocommerce-cart-form .nd-bundle-hide-cart,
.woocommerce-mini-cart .nd-bundle-hide-widget-cart,
.widget_shopping_cart_content .nd-bundle-hide-widget-cart,
.cart_list .nd-bundle-hide-widget-cart,
.woocommerce-checkout-review-order-table .nd-bundle-hide-checkout {
	display: none !important;
}

.nd-bundle-child-name:before {
	content: "> ";
}

@media (max-width: 520px) {
	.nd-bundle-item {
		grid-template-columns: 56px minmax(0, 1fr);
		padding: 10px;
	}

	.nd-bundle-image img {
		width: 56px;
		height: 56px;
	}
}