/* =========================================================
   MicroVida Admin - Bundles
========================================================= */

.mv-bundle-summary {
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid rgba(4, 61, 13, 0.12);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(244, 249, 244, 0.95), rgba(255, 255, 255, 0.98));
}

.mv-bundle-summary__title {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.3;
	color: #153f1e;
}

.mv-bundle-summary__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.mv-bundle-summary__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	color: #24442c;
}

.mv-bundle-summary__qty {
	font-weight: 700;
	color: #0b5d1e;
}

.mv-bundle-summary__name {
	flex: 1 1 auto;
}

.mv-bundle-summary__price {
	flex: 0 0 auto;
	font-weight: 600;
	color: #0b5d1e;
}

.mv-bundle-summary__empty {
	margin: 0;
	color: #5f6f64;
}

.mv-bundle-summary__empty.is-temporary {
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(183, 104, 47, 0.2);
	background: #fff4e8;
	color: #8a4b16;
}

.mv-bundle-configurator {
	margin-bottom: 20px;
}

.mv-bundle-product-page.single-product div.product .woocommerce-product-gallery,
.mv-bundle-product-page.single-product div.product .images,
.mv-bundle-product-page.single-product div.product .product_title.entry-title {
	display: none !important;
}

.mv-bundle-product-page.single-product div.product .summary.entry-summary,
.mv-bundle-product-page.single-product div.product .summary {
	float: none !important;
	width: min(100%, 860px) !important;
	margin: 0 auto 28px !important;
}

.mv-bundle-product-page .mv-bundle-price-hint {
	display: block;
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #1b4332;
}

.mv-bundle-product-page .mv-bundle-configurator__title {
	margin: 0 0 18px;
	font-size: clamp(38px, 6vw, 72px);
	line-height: 0.92;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: #0b5d1e;
}

.mv-bundle-configurator__fields {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.mv-bundle-configurator__field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #1b4332;
}

.mv-bundle-configurator__summary {
	margin-bottom: 0;
}

.mv-bundle-product-page .mv-bundle-configurator__summary {
	padding: 22px 26px;
	border-radius: 22px;
	box-shadow: 0 12px 30px rgba(4, 61, 13, 0.08);
}

.mv-bundle-configurator__incomplete {
	margin: 0;
	color: #5f6f64;
}

.mv-bundle-configurator__totals {
	margin-top: 14px;
	display: grid;
	gap: 8px;
}

.mv-bundle-configurator__total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: #24442c;
}

.mv-bundle-configurator__total-row strong {
	color: #0b5d1e;
}

.mv-bundle-product-page .mv-bundle-configurator__total-row span,
.mv-bundle-product-page .mv-bundle-configurator__total-row strong {
	font-size: 18px;
}

.mv-bundle-configurator__total-row.is-total {
	padding-top: 10px;
	border-top: 1px solid rgba(4, 61, 13, 0.12);
	font-size: 16px;
}

.mv-bundle-product-page .mv-bundle-configurator__total-row.is-total span,
.mv-bundle-product-page .mv-bundle-configurator__total-row.is-total strong {
	font-size: 22px;
	font-weight: 800;
}

.mv-bundle-price-hint {
	display: inline-block;
	font-size: 15px;
	color: #1b4332;
}

@media (max-width: 768px) {
	.mv-bundle-product-page .mv-bundle-price-hint {
		margin-bottom: 8px;
		font-size: 14px;
	}

	.mv-bundle-product-page .mv-bundle-configurator__title {
		margin-bottom: 14px;
		font-size: clamp(30px, 11vw, 46px);
		line-height: 0.98;
	}

	.mv-bundle-configurator__fields {
		gap: 12px;
		margin-bottom: 14px;
	}

	.mv-bundle-configurator__field label {
		margin-bottom: 5px;
		font-size: 15px;
		line-height: 1.25;
	}

	.mv-bundle-product-page .mv-bundle-configurator__summary {
		padding: 18px 18px 20px;
		border-radius: 18px;
	}

	.mv-bundle-configurator__totals {
		margin-top: 12px;
		gap: 10px;
	}

	.mv-bundle-summary__item,
	.mv-bundle-configurator__total-row {
		flex-direction: column;
		align-items: flex-start;
	}

	table.bundled_products tr {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		flex-wrap: nowrap;
	}

	table.bundled_products td.bundled_item_details_col .bundled_product_title,
	table.bundled_products td.bundled_item_details_col .bundled_product_title .bundled_product_title_inner {
		font-size: 15px;
		line-height: 1.2;
		margin: 0;
		white-space: normal;
		overflow: hidden;
		-webkit-line-clamp: 5;
		-webkit-box-orient: vertical;
		display: -webkit-box;
	}

	table.bundled_products td.bundled_item_details_col .bundled_product_excerpt {
		display: -webkit-box;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: 13px;
		line-height: 1.2;
		margin-top: 0.25rem;
	}

	table.bundled_products td.bundled_item_details_col .quantity,
	table.bundled_products td.bundled_item_qty_col .quantity,
	.bundled_product .quantity {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		padding: 0;
		box-sizing: border-box;
		vertical-align: middle;
	}

	table.bundled_products input.qty,
	table.bundled_products input.bundled_qty,
	.bundled_product input.qty {
		width: 56px;
		text-align: center;
		padding: 6px 8px;
		font-size: 14px;
		border-radius: 4px;
		box-sizing: border-box;
	}

	table.bundled_products .quantity .minus,
	table.bundled_products .quantity .plus,
	.bundled_product .quantity .minus,
	.bundled_product .quantity .plus {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
		min-width: 30px;
		border-radius: 4px;
		background: rgba(0, 0, 0, 0.05);
		color: inherit;
		font-weight: 600;
		cursor: pointer;
		border: 1px solid rgba(0, 0, 0, 0.06);
		box-sizing: border-box;
	}

	table.bundled_products td.bundled_item_details_col {
		flex: 1 1 auto;
		min-width: 0;
		order: 3;
	}

	table.bundled_products td.bundled_item_images_col {
		flex: 0 0 56px;
		width: 56px;
		max-width: 56px;
		margin-right: 0.5rem;
		order: 1;
	}
}

@media (max-width: 480px) {
	.mv-bundle-product-page .mv-bundle-configurator__title {
		font-size: clamp(28px, 10vw, 40px);
	}

	.mv-bundle-product-page .mv-bundle-configurator__summary {
		padding: 16px;
	}

	.mv-bundle-product-page .mv-bundle-configurator__total-row span,
	.mv-bundle-product-page .mv-bundle-configurator__total-row strong {
		font-size: 16px;
	}

	.mv-bundle-product-page .mv-bundle-configurator__total-row.is-total span,
	.mv-bundle-product-page .mv-bundle-configurator__total-row.is-total strong {
		font-size: 19px;
	}
}
