.msb-bundle {
	margin: 1.5em 0;
	padding: 1.25em;
	border: 1px solid #ececf1;
	border-radius: 14px;
	background: #fafafb;
}

.msb-heading {
	margin: 0 0 .85em;
	font-size: 1.05em;
	font-weight: 700;
}

.msb-component-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .35em;
}

.msb-component {
	border: 1px solid #e6e6ee;
	border-radius: 10px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.msb-component:hover {
	border-color: #cfcfe0;
}

.msb-component label {
	display: flex;
	align-items: center;
	gap: .65em;
	margin: 0;
	padding: .55em .75em;
	cursor: pointer;
}

.msb-component.is-required label {
	cursor: default;
	opacity: .9;
}

.msb-component-checkbox {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.msb-thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	overflow: hidden;
	display: inline-flex;
}

.msb-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.msb-component-name {
	flex: 1 1 auto;
	font-weight: 600;
}

.msb-required-tag {
	font-weight: 400;
	font-size: .85em;
	color: #8a8a9a;
}

.msb-component-price {
	flex: 0 0 auto;
	font-weight: 700;
	white-space: nowrap;
}

.msb-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1em;
	padding-top: .9em;
	border-top: 1px dashed #dcdce6;
	font-size: 1.15em;
}

.msb-total-price {
	font-weight: 800;
}

.msb-generate-btn {
	margin-top: .85em;
}

.msb-preview-status {
	margin-top: .6em;
	min-height: 1.2em;
	font-size: .9em;
}

.msb-preview-status.is-loading {
	color: #6b46c1;
}

.msb-preview-status.is-error {
	color: #c0392b;
}

/* Loading shimmer on the gallery while generating. */
.msb-loading ~ .woocommerce-product-gallery,
.woocommerce-product-gallery.msb-loading {
	opacity: .6;
}

.msb-bundle.msb-loading .msb-summary {
	opacity: .7;
}

/* RTL-friendly: the flex rows already mirror automatically under dir=rtl. */

/* Component groups (in-bundle vs add-ons) */
.msb-group { margin-bottom: 1.1em; }
.msb-group-title {
	margin: 0 0 .5em;
	font-size: .95em;
	font-weight: 700;
	color: #3a3a4a;
	padding-bottom: .35em;
	border-bottom: 1px solid #ececf1;
}
.msb-group-addons .msb-group-title { color: #6b46c1; }
.msb-group-addons .msb-component { border-style: dashed; }
