/* Native WooCommerce cart, using the catalog and gift-product visual language. */
.woocommerce-cart main {
	box-sizing: border-box;
	padding-block: clamp(32px, 4vw, 64px) clamp(56px, 8vw, 108px);
	border-bottom: 4px solid #000;
	background: #fff;
	color: #000;
	font-family: var(--wp--preset--font-family--body, Arial, sans-serif);
}

.woocommerce-cart main > :is(.wp-block-post-title, .wp-block-post-content, .wp-block-woocommerce-store-notices) {
	box-sizing: border-box;
	width: min(calc(100% - 48px), 1180px);
	max-width: 1180px;
	margin-inline: auto;
}

.woocommerce-cart main > .wp-block-post-title {
	margin-block: 0 36px;
	font-family: var(--wp--preset--font-family--display, "156 Reader", sans-serif);
	font-size: clamp(36px, 4vw, 60px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.woocommerce-cart .wc-block-cart {
	font-size: 16px;
	line-height: 1.5;
}

.woocommerce-cart .wc-block-cart :is(.wc-block-cart-items__header, .wc-block-cart__totals-title) {
	color: #000;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

.woocommerce-cart .wc-block-cart .wc-block-cart-items {
	border-top: 2px solid #000;
}

.woocommerce-cart .wc-block-cart .wc-block-cart-items td {
	padding-block: 24px;
	border-color: #d5d5d5;
}

.woocommerce-cart .wc-block-cart .wc-block-cart-item__image {
	width: 160px;
	padding-right: 24px;
}

.woocommerce-cart .wc-block-cart-item__image a {
	display: block;
}

.woocommerce-cart :is(.wc-block-cart-item__image, .wc-block-grid__product-image, .wc-block-components-product-image, .product-thumbnail) img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: none;
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
}

.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
	color: #000;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.woocommerce-cart .wc-block-components-product-name:hover {
	text-decoration: underline;
}

.woocommerce-cart .wc-block-cart__sidebar {
	box-sizing: border-box;
	padding: 24px;
	border: 2px solid #000;
	border-radius: 20px;
}

.woocommerce-cart .wc-block-components-quantity-selector {
	border: 2px solid #000;
	border-radius: 12px;
	background: #fff;
}

.woocommerce-cart .wc-block-components-quantity-selector::after {
	border: 0;
}

.woocommerce-cart .wc-block-components-text-input input {
	border: 2px solid #000;
	border-radius: 18px;
	background: #fff;
	color: #000;
}

.woocommerce-cart main :is(.wc-block-components-button, .wp-block-button__link, .checkout-button) {
	box-sizing: border-box;
	min-height: 44px;
	padding: 12px 20px;
	border: 2px solid #000;
	border-radius: 12px;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
}

.woocommerce-cart :is(.wc-block-components-button, .wp-block-button__link, .checkout-button):hover {
	background: #333;
	color: #fff;
}

.woocommerce-cart .wc-block-cart__empty-cart__title {
	font-family: var(--wp--preset--font-family--display, "156 Reader", sans-serif);
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.2;
}

.reread-cart-empty > :is(h2, p) {
	text-align: center;
}

.reread-cart-recommendations__heading {
	margin-block: 56px 28px;
	font-family: var(--wp--preset--font-family--display, "156 Reader", sans-serif);
	font-size: clamp(28px, 3vw, 40px);
}

.reread-cart-recommendations {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: 28px;
}

.reread-cart-recommendation {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	gap: 16px;
	text-align: center;
}

.reread-cart-recommendation__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 620 / 874;
}

.reread-cart-recommendation__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.reread-cart-recommendation h3 {
	flex: 1;
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
}

.reread-cart-recommendation h3 a {
	color: #000;
	text-decoration: none;
}

.reread-cart-recommendation h3 a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.reread-cart-recommendations {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.reread-cart-recommendation h3 {
		font-size: 18px;
	}
	.woocommerce-cart main > :is(.wp-block-post-title, .wp-block-post-content, .wp-block-woocommerce-store-notices) {
		width: calc(100% - 40px);
	}

	.woocommerce-cart .wc-block-cart .wc-block-cart-item__image {
		width: 100px;
		padding-right: 16px;
	}

	.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
		font-size: 16px;
	}

	.woocommerce-cart .wc-block-cart__sidebar {
		padding: 20px;
	}
}
