/**
 * Bundle Cart — visual grouping for quiz bundle items.
 * Follows Woodmart's FBT pattern: items grouped tightly, no borders between them,
 * subtle accent, clean minimal look.
 */

/* ═══════════ Cart table: group items tightly (no separators between) ═══════════ */
@media (min-width: 769px) {
	.shop_table_responsive .cart_item.sth-bundle-first td,
	.shop_table_responsive .cart_item.sth-bundle-mid td {
		padding-bottom: 6px;
		border-bottom: none;
	}

	.shop_table_responsive .cart_item.sth-bundle-mid td,
	.shop_table_responsive .cart_item.sth-bundle-last td {
		padding-top: 6px;
	}

	.shop_table_responsive .cart_item.sth-bundle-last td {
		padding-bottom: 14px;
	}
}

@media (max-width: 768.98px) {
	.shop_table_responsive .cart_item.sth-bundle-first,
	.shop_table_responsive .cart_item.sth-bundle-mid {
		margin-bottom: 0;
		padding-bottom: 6px;
		border-bottom: none;
	}

	.shop_table_responsive .cart_item.sth-bundle-mid,
	.shop_table_responsive .cart_item.sth-bundle-last {
		padding-top: 6px;
	}
}

/* ═══════════ Subtle left accent line — only 2px, soft ═══════════ */
.shop_table_responsive .cart_item.sth-bundle-item td:first-child {
	border-left: 2px solid rgba(var(--wd-primary-rgb, 73, 51, 209), 0.25);
	padding-left: 12px;
}

/* ═══════════ Badge label — inline with first product name ═══════════ */
.sth-bundle-label {
	display: inline-block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: var(--wd-primary-color, rgb(73, 51, 209));
	background: rgba(var(--wd-primary-rgb, 73, 51, 209), 0.06);
	padding: 2px 7px;
	border-radius: 3px;
	margin-left: 6px;
	vertical-align: middle;
	line-height: 1.4;
}

/* ═══════════ Checkout order review ═══════════ */
.woocommerce-checkout-review-order-table .cart_item.sth-bundle-first td,
.woocommerce-checkout-review-order-table .cart_item.sth-bundle-mid td {
	padding-bottom: 2px;
	border-bottom: none;
}

.woocommerce-checkout-review-order-table .cart_item.sth-bundle-mid td,
.woocommerce-checkout-review-order-table .cart_item.sth-bundle-last td {
	padding-top: 2px;
}

/* ═══════════ Mini-cart sidebar ═══════════ */
.cart-widget-side .woocommerce-mini-cart .mini_cart_item.sth-bundle-first,
.cart-widget-side .woocommerce-mini-cart .mini_cart_item.sth-bundle-mid {
	margin-bottom: 0;
	padding-bottom: 5px;
	border-bottom: none;
}

.cart-widget-side .woocommerce-mini-cart .mini_cart_item.sth-bundle-mid,
.cart-widget-side .woocommerce-mini-cart .mini_cart_item.sth-bundle-last {
	padding-top: 5px;
}

.product_list_widget li.sth-bundle-first,
.product_list_widget li.sth-bundle-mid {
	margin-bottom: 0;
	border-bottom: 0;
}

/* ═══════════ Quantity locked — no +/- controls ═══════════ */
.sth-bundle-item .quantity input.qty {
	pointer-events: none;
	opacity: 0.6;
}

.sth-bundle-item .quantity .plus,
.sth-bundle-item .quantity .minus,
.sth-bundle-item .quantity .wd-quantity-btn {
	display: none !important;
}

/* ═══════════ Meta/variation display (Pachet: ... label) ═══════════ */
.sth-bundle-item dl.variation {
	margin-top: 3px;
	margin-bottom: 0;
}

.sth-bundle-item dl.variation dt {
	font-size: 11px;
	font-weight: 600;
	color: #666;
}

.sth-bundle-item dl.variation dd p {
	font-size: 11px;
	color: #444;
	margin: 0;
}

/* ═══════════ "PACHET RECOMANDAT" header — from CSS ::before on first item ═══════════ */
.sth-bundle-first td.product-name::before {
	content: none; /* Remove the CSS-generated header — PHP badge handles it now */
}


/* ═══════════ Child items: Woodmart FBT icon label ═══════════ */
.sth-bundle-child-label {
	margin-left: 4px;
	vertical-align: middle;
	opacity: 0.6;
}

/* ═══════════ Locked quantity (plain text, no input) ═══════════ */
.sth-qty-locked {
	display: inline-block;
	width: 32px;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: #666;
}

/* ═══════════ Child items in cart: subdued appearance ═══════════ */
.sth-bundle-mid td.product-name,
.sth-bundle-last td.product-name {
	padding-left: 20px;
}

/* Remove button hidden on children (handled by PHP, but backup) */
.sth-bundle-mid .product-remove,
.sth-bundle-last .product-remove {
	visibility: hidden;
}

/* ═══════════ Mini-cart: child items indented ═══════════ */
.cart-widget-side .mini_cart_item.sth-bundle-mid,
.cart-widget-side .mini_cart_item.sth-bundle-last {
	padding-left: 12px;
	opacity: 0.85;
}

.cart-widget-side .mini_cart_item.sth-bundle-mid .remove,
.cart-widget-side .mini_cart_item.sth-bundle-last .remove {
	display: none;
}


/* ═══════════ Bundle header (above first product name) ═══════════ */
.sth-bundle-header {
	font-size: 11px;
	font-weight: 700;
	color: var(--wd-primary-color, rgb(73, 51, 209));
	margin-bottom: 4px;
	line-height: 1.3;
}

.sth-bundle-count {
	font-weight: 400;
	color: #888;
	font-size: 10px;
}
