/* Figma: Cart & Checkout focused header. The same 80px layout is used at every breakpoint. */
.fruit-commerce-wrapper {
	min-height: 100vh;
}

.fruit-commerce-header,
.fruit-commerce-header * {
	box-sizing: border-box;
}

.fruit-commerce-header {
	position: relative;
	z-index: 49;
	width: 100%;
	height: 80px;
	min-height: 80px;
	background: #fff;
	font-family: Heebo, Arial, sans-serif;
}

.fruit-commerce-header__inner {
	position: relative;
	width: calc(100% - 32px);
	max-width: 1416px;
	height: 80px;
	margin: 0 auto;
}

.fruit-commerce-header__back {
	position: absolute;
	top: 32px;
	right: 0;
	display: block;
	width: 65px;
	height: 16px;
	margin: 0;
	padding: 0;
	color: #6e6e6e !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 16px;
	letter-spacing: -.01em;
	text-align: right;
	text-decoration: none;
	white-space: nowrap;
}

.fruit-commerce-header__back:hover,
.fruit-commerce-header__back:focus {
	color: #58125f !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fruit-commerce-header__logo {
	position: absolute;
	top: 13px;
	left: 50%;
	display: block;
	width: 66px;
	height: 54px;
	margin: 0;
	padding: 0;
	transform: translateX(-50%);
}

.fruit-commerce-header__logo img {
	display: block;
	width: 66px;
	height: 54px;
	max-width: none;
	max-height: none;
	object-fit: contain;
}

.fruit-commerce-header__cart {
	position: absolute;
	top: 24px;
	left: 0;
	display: flex;
	width: 84px;
	height: 32px;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin: 0;
	padding: 4px 8px;
	border: 1px solid #afafaf;
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	color: #afafaf !important;
	direction: ltr;
	text-decoration: none;
}

.fruit-commerce-header__cart:hover,
.fruit-commerce-header__cart:focus {
	border-color: #58125f;
	background: #fff;
	color: #58125f !important;
}

.fruit-commerce-header__cart-icon {
	display: block;
	width: 24px;
	height: 18px;
	flex: 0 0 24px;
	object-fit: contain;
}

.fruit-commerce-header__cart-total {
	display: block;
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fruit-commerce-header__cart-total .woocommerce-Price-amount,
.fruit-commerce-header__cart-total .woocommerce-Price-currencySymbol {
	color: inherit;
	font: inherit;
}

.fruit-commerce-header__back:focus-visible,
.fruit-commerce-header__logo:focus-visible,
.fruit-commerce-header__cart:focus-visible {
	outline: 2px solid #58125f;
	outline-offset: 3px;
}

body.fruit-commerce-flow #main {
	min-height: calc(100vh - 80px);
}

/*
 * Checkout must stay distraction-free even when an older cached version of
 * the announcement-bar MU plugin still renders its markup.
 */
body.fruit-commerce-flow.woocommerce-checkout .fruit-announcement-bar {
	display: none !important;
}

/*
 * Cart desktop — Figma node 354:276 (1668 × 1026).
 * Keep these rules scoped to the focused Cart flow so the normal shop and
 * Checkout layouts continue to use their own component styles.
 */
@media only screen and (min-width: 850px) {
	body.fruit-commerce-flow.woocommerce-cart,
	body.fruit-commerce-flow.woocommerce-cart button,
	body.fruit-commerce-flow.woocommerce-cart input {
		font-family: Heebo, Arial, sans-serif;
	}

	/* Checkout steps: 608 × 50; 21/120% Heebo Medium. */
	body.fruit-commerce-flow.woocommerce-cart .checkout-page-title,
	body.fruit-commerce-flow.woocommerce-cart .checkout-page-title .page-title-inner,
	body.fruit-commerce-flow.woocommerce-cart .checkout-page-title .flex-col {
		height: 50px;
		min-height: 50px;
		padding: 0;
	}

	body.fruit-commerce-flow.woocommerce-cart .checkout-page-title .page-title-inner {
		max-width: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .checkout-breadcrumbs {
		display: flex;
		width: 608px;
		height: 50px;
		align-items: center;
		justify-content: center;
		gap: 16px;
		margin: 0 auto;
		padding: 12px 0;
		font-size: 21px;
		font-weight: 500;
		line-height: 25.2px;
		letter-spacing: .105px;
		text-transform: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .checkout-breadcrumbs a {
		display: inline-flex;
		height: 26px;
		flex: 0 0 auto;
		align-items: center;
		gap: 8px;
		margin: 0;
		color: #d8cbd9;
		font-size: 21px;
		font-weight: 500;
		line-height: 25.2px;
		letter-spacing: .105px;
		text-transform: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .checkout-breadcrumbs a.current {
		color: #000;
	}

	body.fruit-commerce-flow.woocommerce-cart .checkout-breadcrumbs .breadcrumb-step {
		display: inline-flex !important;
		width: 26px;
		height: 26px;
		flex: 0 0 26px;
		align-items: center;
		justify-content: center;
		margin: 0;
		border-radius: 50%;
		background: #d8cbd9;
		color: #fff;
		font-size: 15px;
		font-weight: 700;
		line-height: 26px;
		letter-spacing: .075px;
	}

	body.fruit-commerce-flow.woocommerce-cart .checkout-breadcrumbs a.current .breadcrumb-step {
		background: #58125f;
	}

	body.fruit-commerce-flow.woocommerce-cart .checkout-breadcrumbs .divider {
		display: inline-flex !important;
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
		align-items: center;
		justify-content: center;
		margin: 0;
		color: #58125f;
		font-size: 24px;
		font-weight: 300;
		line-height: 24px;
		opacity: .2;
	}

	/* Full-width flow wrapper; Figma's content frames are max 1324px. */
	body.fruit-commerce-flow.woocommerce-cart .cart-container {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0 0 40px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart-container > .woocommerce {
		width: 100%;
	}

	/* Gift-card prompt: 1324 × 58, 4px logical-start rule. */
	body.fruit-commerce-flow.woocommerce-cart .ywgc_have_code {
		display: flex;
		width: calc(100% - 32px);
		max-width: 1324px;
		height: 58px;
		min-height: 58px;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		box-sizing: border-box;
		margin: 0 auto;
		padding: 20px 24px;
		border: 0;
		border-right: 4px solid #000;
		background: #fff;
		box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
		color: #000;
		font-size: 15px;
		font-weight: 500;
		line-height: 18px;
		letter-spacing: .075px;
	}

	body.fruit-commerce-flow.woocommerce-cart .ywgc_have_code .ywgc-show-giftcard {
		margin: 0 4px 0 0;
		color: #000;
		font: inherit;
		text-decoration: underline;
		text-underline-offset: 0;
	}

	/* Cart columns: 638 + 24 + divider + 24 + 638 = 1324. */
	body.fruit-commerce-flow.woocommerce-cart .cart-container .woocommerce.row.row-large.row-divided {
		position: relative;
		display: flex;
		width: calc(100% - 32px);
		max-width: 1324px;
		min-height: 616px;
		flex-flow: row nowrap;
		align-items: flex-start;
		gap: 48px;
		box-sizing: border-box;
		margin: 0 auto;
		padding: 16px 0 0;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart-container .woocommerce.row.row-large.row-divided::before {
		content: '';
		position: absolute;
		top: 16px;
		left: 50%;
		width: 1px;
		height: 600px;
		background: #dedede;
		transform: translateX(-.5px);
	}

	body.fruit-commerce-flow.woocommerce-cart .cart-auto-refresh,
	body.fruit-commerce-flow.woocommerce-cart .cart-collaterals {
		width: calc((100% - 48px) / 2);
		max-width: calc((100% - 48px) / 2);
		flex: 0 0 calc((100% - 48px) / 2);
		box-sizing: border-box;
		margin: 0;
		padding: 24px 0 !important;
		border: 0 !important;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart-auto-refresh,
	body.fruit-commerce-flow.woocommerce-cart .cart-collaterals,
	body.fruit-commerce-flow.woocommerce-cart .cart-sidebar,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals {
		font-size: 15px;
		font-weight: 300;
		line-height: 18px;
		letter-spacing: .075px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart-sidebar,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals {
		width: 100%;
	}

	/* Product table: 18 header + 32 + 134 + 16 + rule + 16 + 34 = 250. */
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart {
		width: 100%;
		height: 250px;
		margin: 0;
		border: 0;
		border-collapse: collapse;
		table-layout: fixed;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart thead tr,
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart thead th {
		height: 18px;
		padding: 0;
		border: 0;
		color: #000;
		font-size: 15px;
		font-weight: 500;
		line-height: 18px;
		letter-spacing: .075px;
		text-transform: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart thead .product-name {
		width: 40.5%;
		text-align: right;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart thead .product-price {
		width: 15%;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart thead .product-quantity {
		width: 20.5%;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart thead .product-subtotal {
		width: 24%;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item {
		height: 182px;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item > td {
		height: 182px;
		box-sizing: border-box;
		padding: 32px 0 16px;
		border: 0;
		color: #000;
		font-size: 15px;
		font-weight: 300;
		line-height: 18px;
		letter-spacing: .075px;
		vertical-align: top;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-remove {
		width: 36px;
		vertical-align: middle;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-remove .remove {
		width: 24px;
		height: 24px;
		margin: 0;
		border: 1px solid #dedede;
		border-radius: 50%;
		color: #afafaf;
		font-size: 17px;
		font-weight: 300;
		line-height: 21px;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-thumbnail {
		width: 87.33px;
		padding-right: 12px;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .product-thumbnail img {
		display: block;
		width: 75.33px;
		height: 134px;
		max-width: none;
		object-fit: cover;
		transform: translateX(62px);
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-name,
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-name a {
		color: #000;
		font-size: 15px;
		font-weight: 300;
		line-height: 18px;
		letter-spacing: .075px;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-name {
		position: relative;
		width: 135px;
		padding-left: 12px;
		vertical-align: middle;
		transform: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-name > a {
		position: absolute;
		top: 84px;
		right: -49px;
		display: block;
		width: 135px;
		height: 18px;
		overflow: visible;
		text-align: center;
		white-space: nowrap;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .product-name .variation {
		position: absolute;
		top: 106px;
		right: -49px;
		display: flex;
		width: 135px;
		height: 13.2px;
		justify-content: center;
		margin: 0;
		color: #000;
		font-size: 11px;
		font-weight: 300;
		line-height: 13.2px;
		letter-spacing: .055px;
		text-align: center;
		opacity: 1;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .product-name .variation dt,
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .product-name .variation dd,
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .product-name .variation p {
		margin: 0;
		font: inherit;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-price,
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-subtotal,
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .amount {
		color: #000;
		font-size: 15px;
		font-weight: 700;
		line-height: 18px;
		letter-spacing: .075px;
		vertical-align: middle;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-price {
		transform: translateX(-50px);
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart tr.cart_item .product-quantity {
		vertical-align: middle;
		transform: translateX(-49px);
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .quantity.buttons_added {
		display: inline-flex;
		width: 104px;
		height: 48px;
		align-items: stretch;
		justify-content: center;
		border: 1px solid #dedede;
		border-radius: 999px;
		overflow: hidden;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .quantity.buttons_added .button,
	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .quantity.buttons_added .qty {
		height: 46px;
		min-height: 46px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		color: #666;
		font-size: 15px;
		font-weight: 300;
		line-height: 46px;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .quantity.buttons_added .button {
		width: 32px;
		min-width: 32px;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart .quantity.buttons_added .qty {
		width: 38px;
		min-width: 38px;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart td.actions {
		height: 50px;
		padding: 16px 0 0;
		border-top: 1px solid #dedede;
		vertical-align: top;
	}

	body.fruit-commerce-flow.woocommerce-cart .continue-shopping {
		width: 163px;
		height: 34px;
		margin: 0;
		font-size: 15px;
		line-height: 18px;
	}

	body.fruit-commerce-flow.woocommerce-cart .continue-shopping .button-continue-shopping {
		display: flex;
		width: 163px;
		height: 34px;
		min-height: 34px;
		max-height: 34px;
		align-items: center;
		justify-content: center;
		gap: 4px;
		box-sizing: border-box;
		margin: 0;
		padding: 7px 16px;
		border: 2px solid #055e3c;
		border-radius: 999px;
		background: #fff;
		box-shadow: none;
		color: #055e3c;
		font-size: 15px;
		font-weight: 700;
		line-height: 18px;
		letter-spacing: .075px;
		text-transform: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .shop_table.cart td.actions input[name="update_cart"] {
		display: none;
	}

	/* Totals column: Figma Frame 180, 638px wide with 24px vertical padding. */
	body.fruit-commerce-flow.woocommerce-cart .cart_totals > table:first-of-type {
		width: 100%;
		height: 34px;
		margin: 0 0 16px;
		border: 0;
		border-collapse: collapse;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals > table:first-of-type th {
		height: 34px;
		padding: 0 0 16px;
		border-bottom: 1px solid #dedede;
		color: #000;
		font-size: 15px;
		font-weight: 500;
		line-height: 18px;
		letter-spacing: .075px;
		text-transform: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals > .shop_table {
		width: 100%;
		margin: 0;
		border: 0;
		border-collapse: collapse;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals > .shop_table > tbody > tr > th,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals > .shop_table > tbody > tr > td {
		border: 0;
		color: #000;
		font-size: 15px;
		font-weight: 300;
		line-height: 18px;
		letter-spacing: .075px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .cart-subtotal > th,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .cart-subtotal > td {
		height: 34px;
		padding: 0 0 16px;
		border-bottom: 1px solid #dedede;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .amount {
		color: #000;
		font-size: 15px;
		font-weight: 700;
		line-height: 18px;
		letter-spacing: .075px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .woocommerce-shipping-totals > td {
		padding: 16px 0 0;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .shipping__table,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .shipping__table tbody,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .shipping__table tr,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .shipping__table th,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .shipping__table td {
		display: block;
		width: 100%;
		height: auto;
		padding: 0;
		border: 0;
		color: #000;
		font-size: 15px;
		line-height: 18px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .shipping__table th {
		margin: 0 0 16px;
		font-weight: 300;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals ul#shipping_method {
		margin: 0 0 16px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals ul#shipping_method li {
		box-sizing: border-box;
		height: 34px;
		min-height: 34px;
		margin: 0;
		padding: 8px 16px;
		border: 1px solid #ececec;
		font-size: 15px;
		line-height: 18px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals ul#shipping_method label {
		font-size: 15px;
		font-weight: 300;
		line-height: 18px;
		letter-spacing: .075px;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .shipping-calculator-button {
		display: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .order-total > th,
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .order-total > td {
		height: 34px;
		padding: 16px 0 0;
		border-top: 1px solid #dedede;
	}

	body.fruit-commerce-flow.woocommerce-cart .wc-proceed-to-checkout {
		width: 100%;
		margin: 16px 0 0;
		padding: 0;
	}

	body.fruit-commerce-flow.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
		display: flex;
		width: 100%;
		height: 48px;
		min-height: 48px;
		max-height: 48px;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		margin: 0;
		padding: 10px 24px;
		border: 0;
		border-radius: 999px;
		background: #52345a;
		box-shadow: none;
		color: #fff;
		font-size: 21px;
		font-weight: 700;
		line-height: 25.2px;
		letter-spacing: .105px;
		text-transform: none;
	}

	body.fruit-commerce-flow.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
	body.fruit-commerce-flow.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus {
		background: #412747;
		color: #fff;
	}

	/* The cart version of Frame 190 is 638px wide in this column. */
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .fruit-shipping-progress-row > td {
		padding: 16px 0;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .fruit-shipping-progress--cart {
		width: 100%;
		padding: 0;
	}

	/* Frame 190 uses threshold-spaced markers, not three equal columns. */
	body.fruit-commerce-flow.woocommerce-cart .cart_totals .fruit-shipping-progress--cart .fruit-shipping-progress__stages {
		grid-template-columns: 27.3% 39.5% 33.2%;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .fruit-shipping-progress--cart.is-stage-1 .fruit-shipping-progress__track-fill {
		width: 27.3% !important;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .fruit-shipping-progress--cart.is-stage-2 .fruit-shipping-progress__track-fill {
		width: 66.8% !important;
	}

	body.fruit-commerce-flow.woocommerce-cart .cart_totals .fruit-shipping-progress--cart .fruit-shipping-progress__stage:last-child .fruit-shipping-progress__marker {
		transform: translate(calc(-50% + 9px), 10px);
	}
}
