/**
 * Cart page — styles the native WooCommerce Cart block
 * (woocommerce/cart, already placed on the Cart page's content).
 */

.wp-block-woocommerce-cart {
	gap: var(--wp--preset--spacing--2-xl);
}

.wc-block-cart-items,
.wc-block-components-sidebar {
	background-color: var(--wp--preset--color--bg-secondary);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--surface);
	padding: var(--wp--preset--spacing--l);
}

.wc-block-cart-items__header,
.wc-block-cart-items__row {
	border-color: var(--wp--preset--color--border);
}

.wc-block-components-product-name {
	color: var(--wp--preset--color--text-primary);
	font-weight: 700;
	text-decoration: none;
}

.wc-block-components-product-metadata,
.wc-block-cart-item__prices .wc-block-components-product-price__value.is-discounted {
	color: var(--wp--preset--color--text-secondary);
}

.wc-block-components-panel,
.wc-block-components-totals-wrapper {
	border-color: var(--wp--preset--color--border);
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
	color: var(--wp--preset--color--text-primary);
}

.wc-block-cart__totals-title,
.wc-block-components-title {
	color: var(--wp--preset--color--text-primary);
}

.wc-block-cart__submit-container {
	margin-top: var(--wp--preset--spacing--l);
}

.wc-block-components-product-remove button {
	color: var(--wp--preset--color--text-secondary);
}

.wc-block-components-product-remove button:hover {
	color: var(--wp--preset--color--error);
}

/* Empty cart state. */
.wc-block-cart__empty-cart__title {
	color: var(--wp--preset--color--text-primary);
}

.wc-block-cart__empty-cart__description {
	color: var(--wp--preset--color--text-secondary);
}

@media (max-width: 781px) {
	.wc-block-cart-items,
	.wc-block-components-sidebar {
		padding: var(--wp--preset--spacing--m);
	}
}
