/**
 * Ladder & Combo Bundle — cart & checkout grouped display.
 * Reference (competitor) style: the whole bundle renders as ONE light-gray
 * rounded card — bold header row (title + "N szt. · total"), flavor rows
 * beneath (bold product name + gray flavor subtitle), no visible SKU meta.
 * Implemented across the theme's table rows via per-row classes:
 * .wlcb-bundled-item (any row) / .wlcb-bundle-first / .wlcb-bundle-last.
 */

/* ---- One-card look: shared gray background, no inner borders ---------- */
tr.wlcb-bundled-item > td {
	background: #f7f7f7 !important;
	border-top: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}
tr.wlcb-bundled-item > td:first-child { padding-left: 14px; }
tr.wlcb-bundled-item > td:last-child  { padding-right: 14px; }

/* Rounded top corners on the first row, bottom on the last. */
tr.wlcb-bundle-first > td { padding-top: 14px; }
tr.wlcb-bundle-first > td:first-child { border-radius: 12px 0 0 0; }
tr.wlcb-bundle-first > td:last-child  { border-radius: 0 12px 0 0; }
tr.wlcb-bundle-last  > td { padding-bottom: 14px; }
tr.wlcb-bundle-last  > td:first-child { border-radius: 0 0 0 12px; }
tr.wlcb-bundle-last  > td:last-child  { border-radius: 0 0 12px 0; }

/* Tight inner rows (the card reads as one block). */
tr.wlcb-bundled-item > td { padding-top: 6px; padding-bottom: 6px; }
tr.wlcb-bundle-first > td { padding-top: 14px; }

/* ---- Bundle header row (inside the card) ------------------------------ */
.wlcb-cart-bundle-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e4e4e4;
}
.wlcb-cart-bundle-title {
	font-weight: 800;
	font-size: 1.05em;
	line-height: 1.35;
	color: #1a1a1a;
}
.wlcb-cart-bundle-meta {
	color: #8a8a8a;
	font-size: 0.85em;
	white-space: nowrap;
}

/* ---- Flavor row: bold product name + gray flavor subtitle ------------- */
.wlcb-cart-item-name strong {
	display: block;
	font-weight: 700;
	font-size: 1em;
	line-height: 1.35;
	color: #1a1a1a;
}
.wlcb-cart-flavor {
	display: block;
	margin-top: 2px;
	color: #8a8a8a;
	font-size: 0.88em;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

/* Hide the raw variation/attribute meta for bundle children (flavor is in
   the subtitle). Broad selector net for common theme markup variants —
   plus a JS tidy pass (print_cart_tidy_script) removes "SKU:" by text. */
tr.wlcb-bundled-item dl.variation,
tr.wlcb-bundled-item .wc-item-meta,
tr.wlcb-bundled-item .product-meta,
tr.wlcb-bundled-item .product-sku,
tr.wlcb-bundled-item .sku,
tr.wlcb-bundled-item .woodmart-product-sku,
td.wlcb-bundled-item dl.variation,
td.wlcb-bundled-item .wc-item-meta,
li.wlcb-bundled-item .wc-item-meta,
.wlcb-bundled-item .wc-block-components-product-metadata {
	display: none !important;
}

/* Bundle quantity is locked: hide the editable quantity UI (-/+ inputs and
   the "× N" text) in bundle rows on BOTH the cart and the checkout review
   table — the bundle header already shows the total "N szt.". */
tr.wlcb-bundled-item .quantity,
tr.wlcb-bundled-item .product-quantity,
tr.wlcb-bundled-item .checkout-item-quantity,
tr.wlcb-bundled-item .wlcb-qty-lock {
	display: none !important;
}

@media (max-width: 767px) {
	tr.wlcb-bundled-item > td:first-child { padding-left: 10px; }
	tr.wlcb-bundled-item > td:last-child  { padding-right: 10px; }
	tr.wlcb-bundle-first > td:first-child { border-radius: 10px 0 0 0; }
	tr.wlcb-bundle-first > td:last-child  { border-radius: 0 10px 0 0; }
	tr.wlcb-bundle-last  > td:first-child { border-radius: 0 0 0 10px; }
	tr.wlcb-bundle-last  > td:last-child  { border-radius: 0 0 10px 0; }
}
