/**
 * Build Your Box – block cart, checkout and mini cart.
 *
 * Selectors match WooCommerce's own specificity (table.wc-block-cart-items …) so they win
 * without !important.
 */

/* Box contents sit under their box. */
table.wc-block-cart-items .wc-block-cart-items__row.byb-box-child .wc-block-cart-item__image {
	padding-left: 1.5em;
}

table.wc-block-cart-items .wc-block-cart-items__row.byb-box-child .wc-block-cart-item__image img {
	max-width: 3.25em;
	margin-left: auto;
}

table.wc-block-cart-items .wc-block-cart-items__row.byb-box-child td {
	border-top-style: dashed;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item.byb-box-child {
	padding-left: 1.25em;
}

/* Prices already included in the box line (or carried by its contents). */
table.wc-block-cart-items .wc-block-cart-items__row.byb-hide-price .wc-block-cart-item__prices,
table.wc-block-cart-items .wc-block-cart-items__row.byb-hide-price .wc-block-cart-item__total .wc-block-components-product-price,
table.wc-block-cart-items .wc-block-cart-items__row.byb-hide-price .wc-block-cart-item__total .wc-block-components-sale-badge,
.wc-block-components-order-summary .wc-block-components-order-summary-item.byb-hide-price .wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary .wc-block-components-order-summary-item.byb-hide-price .wc-block-components-order-summary-item__total-price {
	display: none;
}

/* "Edit box" belongs in the cart and mini cart, not in the checkout's order summary. */
.wc-block-components-order-summary .wc-block-components-product-details .byb-edit-box {
	display: none;
}

.wc-block-components-order-summary .wc-block-components-product-details > :has(+ .byb-edit-box) > [aria-hidden="true"]:last-child {
	display: none;
}

.wc-block-components-product-details .byb-edit-box .byb-edit-link {
	font-weight: 600;
}
