/* Grouped-bundle look in the block Cart / Checkout / mini-cart. The container
   line keeps the bundle title; its members render as separate rows indented
   beneath it with a connector. Rows are still individual cart items — this is
   display only. */

/* --- Cart & Checkout table rows (<tr>: image | product | total) --- */
.wc-block-cart-items__row.fkb-cart-parent > td {
	border-bottom: 0;
	padding-bottom: 4px;
}

.wc-block-cart-items__row.fkb-cart-child > td {
	border-top: 0;
	padding-top: 4px;
	padding-bottom: 4px;
}
.wc-block-cart-items__row.fkb-cart-child:not(:last-child) > td {
	border-bottom: 0;
}

/* Indent the child's image cell and draw an └ connector into it. */
.wc-block-cart-items__row.fkb-cart-child > .wc-block-cart-item__image {
	position: relative;
	padding-left: 40px;
}
.wc-block-cart-items__row.fkb-cart-child > .wc-block-cart-item__image::before {
	content: "";
	position: absolute;
	left: 16px;
	top: -14px;
	width: 14px;
	height: 34px;
	border-left: 2px solid #c7c8d4;
	border-bottom: 2px solid #c7c8d4;
	border-bottom-left-radius: 5px;
}
.wc-block-cart-items__row.fkb-cart-child .wc-block-cart-item__image img {
	max-width: 52px;
}

/* Slightly recede the members so the container reads as the headline. */
.wc-block-cart-items__row.fkb-cart-child .wc-block-cart-item__product {
	font-size: 0.92em;
}

/* Members are read-only: the container owns the quantity + total. */
.wc-block-cart-items__row.fkb-cart-child .wc-block-cart-item__quantity,
.wc-block-cart-items__row.fkb-cart-child .wc-block-cart-item__total,
.wc-block-cart-items__row.fkb-cart-child .wc-block-cart-item__prices,
.wc-block-mini-cart-item.fkb-cart-child .wc-block-cart-item__quantity,
.wc-block-mini-cart-item.fkb-cart-child .wc-block-components-quantity-selector {
	display: none !important;
}
/* Static "× N" shown for members in the classic cart/checkout. */
.fkb-cart-childqty {
	color: var(--wp--preset--color--contrast-2, #777);
	white-space: nowrap;
}

/* --- Mini-cart (flex rows) --- */
.wc-block-mini-cart-item.fkb-cart-child,
.wc-block-cart-item.fkb-cart-child {
	position: relative;
	padding-left: 22px;
}
.wc-block-mini-cart-item.fkb-cart-child::before,
.wc-block-cart-item.fkb-cart-child::before {
	content: "";
	position: absolute;
	left: 6px;
	top: -4px;
	width: 9px;
	height: 18px;
	border-left: 1.5px solid #dcdde6;
	border-bottom: 1.5px solid #dcdde6;
	border-bottom-left-radius: 4px;
}

/* --- Classic cart / checkout review table + FunnelKit Aero (wfacp) --- */
tr.cart_item.fkb-cart-parent > td {
	border-bottom: 0;
}
tr.cart_item.fkb-cart-child > td.product-name,
tr.cart_item.fkb-cart-child > td.product-name-area {
	position: relative;
	padding-left: 30px !important;
}
tr.cart_item.fkb-cart-child > td.product-name::before,
tr.cart_item.fkb-cart-child > td.product-name-area::before {
	content: "";
	position: absolute;
	left: 10px;
	top: -12px;
	width: 13px;
	height: 30px;
	border-left: 2px solid #c7c8d4;
	border-bottom: 2px solid #c7c8d4;
	border-bottom-left-radius: 5px;
}

/* --- Checkout block order-summary rows (for block checkouts) --- */
.wc-block-components-order-summary-item.fkb-cart-child {
	position: relative;
	padding-left: 22px;
}
.wc-block-components-order-summary-item.fkb-cart-child::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 9px;
	height: 16px;
	border-left: 1.5px solid #dcdde6;
	border-bottom: 1.5px solid #dcdde6;
	border-bottom-left-radius: 4px;
}
