/* Skip the cart (DGS_TOOLKIT_Skip_Cart): checkout products, no cart links. */

/* No way back to the cart: "Return to cart" (Checkout block), "View cart" (Mini-cart block). */
.wc-block-components-checkout-return-to-cart-button,
.wc-block-mini-cart__footer-cart {
	display: none !important;
}

/*
 * Checkout block: WooCommerce's own list of products stays in the order
 * summary (WooCommerce 11 puts it back when it is removed) and is hidden
 * once the DGS list is there: a totals wrapper holding an order summary
 * that isn't the DGS one (which is a totals wrapper itself). Covers the
 * folded summary on phones too.
 */
.wc-block-checkout:has(.dgs-checkout-items) .wc-block-components-totals-wrapper:has(.wc-block-components-order-summary):not(.dgs-checkout-items):not(:has(.dgs-checkout-items)) {
	display: none !important;
}

.dgs-checkout-item.is-busy {
	opacity: 0.55;
	transition: opacity 0.15s;
}

.dgs-checkout-item__details {
	margin: 0.25em 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875em;
}

.dgs-checkout-item__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em;
	margin-top: 0.5em;
}

.dgs-checkout-item__quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid currentColor;
	border-radius: 4px;
	opacity: 0.85;
}

.dgs-checkout-item__step {
	width: 2em;
	height: 2em;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

.dgs-checkout-item__step:disabled {
	opacity: 0.35;
	cursor: default;
}

.dgs-checkout-item__value {
	min-width: 1.75em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.dgs-checkout-item__remove,
a.dgs-checkout-remove {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.875em;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
	opacity: 0.8;
}

.dgs-checkout-item__remove:hover,
.dgs-checkout-item__remove:focus-visible,
a.dgs-checkout-remove:hover {
	opacity: 1;
}

.dgs-checkout-item__remove:disabled {
	cursor: default;
}

a.dgs-checkout-remove {
	margin-left: 0.5em;
	white-space: nowrap;
}

.dgs-checkout-items__empty {
	margin: 0;
	padding: 1em 0;
}
