/* RBX Tour Products - cart, mini-cart and checkout lines (the modal lives in modal.css). Variables are scoped (never :root). */

.rbx-tp-line {
	--rbx-bg: #ffffff;
	--rbx-fg: #1d2327;
	--rbx-muted: #50575e;
	--rbx-line: #dcdcde;
	--rbx-accent: #1d4ed8;
}

/* ---- lines ---- */
.rbx-tp-line .variation dt,
.rbx-tp-line .wc-block-components-product-details__name {
	font-weight: 400;
}

.rbx-tp-line .variation dd p {
	margin: 0;
}

.rbx-tp-child td.product-name,
.rbx-tp-child .wc-block-cart-item__product,
.rbx-tp-child .product-name {
	padding-left: 1.5em;
}

.rbx-tp-child td.product-name::before,
.rbx-tp-child .product-name > a:first-child::before {
	content: "\21B3\00a0";
	color: var(--rbx-muted, #50575e);
}

.rbx-tp-qty {
	display: inline-block;
	margin-right: 0.5em;
}

.rbx-tp-qty-child {
	color: var(--rbx-muted, #50575e);
	font-size: 0.9em;
}

.rbx-tp-edit {
	display: inline-block;
	cursor: pointer;
}

.wc-block-cart-item__wrap .rbx-tp-edit {
	display: inline-block;
	margin-top: 0.5em;
	font-size: 0.875em;
}

/* ---- block cart / block checkout summary / block mini-cart: one breakdown row per line, label left, amount right ----
   Tour lines only: the cart row has .rbx-tp-line (blocks-cart.js); checkout summary and mini-cart items carry no class,
   so the details list is recognised by the plugin's own always-present rows (Guests on a booking, Part of on an activity). */
.rbx-tp-line .wc-block-components-product-details,
.wc-block-components-product-details:has(.wc-block-components-product-details__guests, .wc-block-components-product-details__part-of) {
	display: block;
	width: 100%;
	min-width: min(100%, 22em); /* the summary/mini-cart wrappers shrink-wrap their content */
}

.rbx-tp-line .wc-block-components-product-details > span,
.wc-block-components-product-details:has(.wc-block-components-product-details__guests, .wc-block-components-product-details__part-of) > span {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	column-gap: 1em;
	margin: 0.15em 0;
}

.rbx-tp-line .wc-block-components-product-details > span > [aria-hidden="true"],
.wc-block-components-product-details:has(.wc-block-components-product-details__guests, .wc-block-components-product-details__part-of) > span > [aria-hidden="true"] {
	display: none;
}

.rbx-tp-line .wc-block-components-product-details__value,
.wc-block-components-product-details:has(.wc-block-components-product-details__guests, .wc-block-components-product-details__part-of) .wc-block-components-product-details__value {
	margin-left: auto;
	text-align: right;
	white-space: nowrap;
}
