.themeCartPage {
	--cart-gap: 2.5rem;
	--cart-summary-width: 29.9375rem;

	--cart-radius: var(--sl-radius-lg);
	--cart-radius-md: var(--sl-radius-md);
	--cart-radius-sm: var(--sl-radius-sm);
	--cart-radius-xs: var(--sl-radius-xs);

	--cart-ink: var(--sl-ink);
	--cart-ink-soft: var(--sl-grey-800);
	--cart-muted: var(--sl-grey-600);
	--cart-line: var(--sl-grey-200);
	--cart-surface: var(--sl-grey-50);
	--cart-border: 1px solid var(--cart-line);

	background: var(--cart-surface);
	padding-block: 2rem 4rem;
	font-family: var(--theme-font);
	font-weight: 400;
	color: var(--cart-ink);
}

.themeCartPage .cart-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--grid-max-width) + 2 * var(--grid-margin));
	margin-inline: auto;
	padding-inline: var(--grid-margin);
}

.themeCartPage .cart-back-icon,
.themeCartPage .cart-item-action-icon,
.themeCartPage .cart-item-qty :is(.qib-button-wrapper button.qib-button, .cart-qty-btn)::before {
	display: block;
	flex: none;
	width: var(--cart-icon-size);
	height: var(--cart-icon-size);
	background: currentColor;
	-webkit-mask: var(--cart-icon) no-repeat center / contain;
	mask: var(--cart-icon) no-repeat center / contain;
}

.themeCartPage .cart-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	line-height: 0.875rem;
	letter-spacing: 0.075rem;
	text-transform: capitalize;
	color: var(--cart-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.themeCartPage .cart-back-icon {
	--cart-icon: url("../template-img/icon_chevron_left.svg");
	--cart-icon-size: 0.75rem;
}

.themeCartPage .cart-layout {
	display: flex;
	flex-direction: column;
	gap: var(--cart-gap);
	margin-top: 2rem;
}

.themeCartPage .cart-header {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.themeCartPage .cart-title {
	margin: 0;
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--cart-ink);
}

.themeCartPage .cart-subtitle {
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--cart-ink-soft);
}

.themeCartPage .cart-split {
	display: flex;
	align-items: flex-start;
	gap: var(--cart-gap);
}

.themeCartPage .cart-column--items,
.themeCartPage .cart-summary {
	background: #fff;
	border: var(--cart-border);
	border-radius: var(--cart-radius);
}

.themeCartPage .cart-column--items {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.themeCartPage .cart-column--summary {
	flex: none;
	width: var(--cart-summary-width);
}

.themeCartPage .cart-split.is-updating {
	opacity: 0.6;
	pointer-events: none;
}

.themeCartPage .cart-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem;
	background: #fff;
	border-bottom: var(--cart-border);
}

.themeCartPage .cart-item-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.themeCartPage .cart-item-product {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex: 1 1 auto;
	min-width: 0;
}

.themeCartPage .cart-item-thumb {
	display: block;
	flex: none;
	width: 5rem;
	height: 5rem;
	border: var(--cart-border);
	border-radius: var(--cart-radius-md);
	overflow: hidden;
}

.themeCartPage .cart-item-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.themeCartPage .cart-item-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	flex: 1 1 auto;
	min-width: 0;
}

.themeCartPage .cart-item-name {
	font-size: 0.875rem;
	line-height: 1.4;
	color: #000;
}

.themeCartPage .cart-item-title,
.themeCartPage .cart-item-meta {
	display: block;
}

.themeCartPage .cart-item-title {
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.themeCartPage .cart-item-title:hover {
	color: #000;
	opacity: 0.7;
}

.themeCartPage .backorder_notification {
	margin: 0;
	font-size: 0.75rem;
	color: var(--cart-muted);
}

.themeCartPage .cart-item-qty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-width: 7.5rem;
}

.themeCartPage .cart-item-qty :is(.qib-button-wrapper, .quantity.cart-qty) {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	white-space: nowrap;
}

.themeCartPage .cart-item-qty .qib-button-wrapper div.quantity.wqpmb_quantity {
	display: flex;
	align-items: center;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.themeCartPage .cart-item-qty :is(.qib-button-wrapper button.qib-button, .cart-qty-btn) {
	--cart-icon-size: 0.625rem;

	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-sizing: border-box;
	width: 1.375rem;
	height: 1.375rem;
	padding: 0;
	background: var(--cart-surface);
	border: var(--cart-border);
	border-radius: var(--cart-radius-xs);
	color: var(--cart-ink);
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.2s;
}

.themeCartPage .cart-item-qty :is(.qib-button-wrapper button.qib-button, .cart-qty-btn)::before {
	content: "";
}

.themeCartPage
	.cart-item-qty
	:is(.qib-button-wrapper button.qib-button, .cart-qty-btn):is(:hover, :focus-visible) {
	background: var(--cart-line);
}

.themeCartPage .cart-item-qty .minus {
	--cart-icon: url("../template-img/icon_minus.svg");
}

.themeCartPage .cart-item-qty .plus {
	--cart-icon: url("../template-img/icon_plus.svg");
}

.themeCartPage .cart-item .cart-item-qty .quantity input.input-text.qty.text {
	width: 1.5rem;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	text-align: center;
	font-family: var(--theme-font);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--cart-ink);
	-moz-appearance: textfield;
	appearance: textfield;
}

.themeCartPage .cart-item-qty input.qty::-webkit-outer-spin-button,
.themeCartPage .cart-item-qty input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.themeCartPage .cart-item-price {
	flex: none;
	width: 6.875rem;
	text-align: right;
	line-height: 1.2;
}

.themeCartPage .cart-item-actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding-left: 6.4375rem;
}

.themeCartPage .cart-item-price,
.themeCartPage .cart-item-qty-label,
.themeCartPage .cart-item-action {
	font-size: 0.875rem;
	color: var(--cart-muted);
}

.themeCartPage .cart-item-qty-label,
.themeCartPage .cart-item-action {
	line-height: 1.4;
}

.themeCartPage .cart-item-qty-label {
	flex: none;
}

.themeCartPage .cart-item-action {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	text-decoration: none;
	transition: color 0.2s;
}

.themeCartPage .cart-back:hover,
.themeCartPage .cart-item-action:hover {
	color: var(--cart-ink);
	opacity: 1;
}

.themeCartPage .cart-item-actions a.remove {
	display: inline-flex;
	width: auto;
	height: auto;
	border-radius: 0;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--cart-muted) !important;
}

.themeCartPage .cart-item-actions a.remove:hover {
	background: none;
	color: var(--cart-ink) !important;
}

.themeCartPage .cart-item-action-icon {
	--cart-icon-size: 1rem;
}

.themeCartPage .cart-item-action-icon--trash {
	--cart-icon: url("../template-img/icon_trash.svg");
}

.themeCartPage .cart-item-action-icon--heart {
	--cart-icon: url("../template-img/icon_heart.svg");
}

.themeCartPage .cart-coupon-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 4.5rem;
	padding: 0.9375rem 1.5rem;
	background: #fff;
}

.themeCartPage .cart-coupon-bar .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.themeCartPage .cart-coupon-bar #coupon_code {
	box-sizing: border-box;
	flex: none;
	width: 15rem;
	height: 2.5rem;
	margin: 0;
	padding: 0.625rem 0.875rem;
	background: #fff;
	border: var(--cart-border);
	border-radius: var(--cart-radius-sm);
	font-family: var(--theme-font);
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--cart-muted);
}

.themeCartPage .cart-coupon-bar #coupon_code::placeholder {
	color: var(--cart-muted);
	opacity: 1;
}

.themeCartPage .cart-coupon-bar #coupon_code:focus {
	border-color: var(--cart-ink);
	outline: none;
}

.themeCartPage .cart-coupon-bar .cart-coupon-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-sizing: border-box;
	width: 10rem;
	padding: 0.625rem 1.25rem;
	background: #000;
	border: 0;
	border-radius: var(--cart-radius-md);
	font-family: var(--theme-font);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.2s;
}

.themeCartPage .cart-coupon-bar .cart-coupon-submit:hover {
	opacity: 0.85;
}

.themeCartPage .cart-coupon-bar .coupon-error-notice {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--wc-red, #a00);
}

.themeCartPage .cart-update {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.themeCartPage .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

.themeCartPage .cart-summary {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2rem;
}

.themeCartPage .cart-summary-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	color: #000;
}

.themeCartPage .cart-summary-details {
	display: flex;
	flex-direction: column;
	padding-top: 1.5rem;
	border-top: var(--cart-border);
}

.themeCartPage .cart-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.themeCartPage .cart-summary-row + .cart-summary-row {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: var(--cart-border);
}

.themeCartPage .cart-summary-label,
.themeCartPage .cart-summary-value {
	font-weight: 700;
	line-height: 1.4;
	color: var(--cart-ink);
}

.themeCartPage .cart-summary-label {
	font-size: 0.875rem;
}

.themeCartPage .cart-summary-value {
	font-size: 1rem;
	text-align: right;
}

.themeCartPage :is(.cart-item-price, .cart-summary-value) :is(.amount, bdi) {
	font-weight: inherit;
	color: inherit;
}

.themeCartPage .cart-summary-row--shipping .cart-summary-label {
	flex: none;
	width: 6.25rem;
}

.themeCartPage .cart-summary-hint {
	flex: 1 1 auto;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	color: var(--cart-muted);
	text-align: right;
}

.themeCartPage .cart-summary-row--total .cart-summary-label {
	font-size: 1.125rem;
}

.themeCartPage .cart-summary-row--total .cart-summary-value {
	font-size: 1.5rem;
	color: #000;
}

.themeCartPage .cart-summary-row .woocommerce-remove-coupon {
	margin-left: 0.5rem;
	font-size: 0.75rem;
	font-weight: 400;
}

.themeCartPage .wc-proceed-to-checkout {
	margin: 0;
	padding: 0;
}

/* style.css declares the geometry of every `.button` on the site with
   !important, so those properties are matched flag for flag. */
.themeCartPage .wc-proceed-to-checkout .cart-checkout-button,
.themeCartPage .return-to-shop .button {
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: auto !important;
	margin: 0 !important;
	border-radius: var(--cart-radius-md) !important;
	font-family: var(--theme-font);
	font-size: 1rem !important;
	font-weight: 800 !important;
	line-height: 1.5 !important;
	text-align: center;
	text-decoration: none;
}

.themeCartPage .wc-proceed-to-checkout .cart-checkout-button {
	display: flex;
	width: 100%;
	padding: calc(1rem - 1.5px) calc(1.5rem - 1.5px) !important;
	background: #fff !important;
	border: 1.5px solid #000 !important;
	color: #000 !important;
	transition:
		background-color 0.2s,
		color 0.2s;
}

.themeCartPage .wc-proceed-to-checkout .cart-checkout-button:hover {
	background: #000 !important;
	color: #fff !important;
	opacity: 1;
}

.themeCartPage .return-to-shop .button {
	display: inline-flex;
	padding: 1rem 1.5rem !important;
	background: #000 !important;
	border: 0 !important;
	color: #fff !important;
}

.themeCartPage .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 1.5rem;
}

.themeCartPage .cart-empty,
.themeCartPage .woocommerce-info,
.themeCartPage .woocommerce-message,
.themeCartPage .woocommerce-error {
	font-size: 1rem;
	line-height: 1.4;
	color: var(--cart-ink-soft);
}

.themeCartPage .return-to-shop {
	margin: 1.5rem 0 0;
}

@media (max-width: 1199.98px) {
	.themeCartPage .cart-split {
		flex-direction: column;
	}

	.themeCartPage .cart-column--items,
	.themeCartPage .cart-column--summary {
		width: 100%;
	}
}

@media (max-width: 767.98px) {
	.themeCartPage {
		padding-block: 1.25rem 3rem;
	}

	.themeCartPage .cart-title {
		font-size: 1.75rem;
	}

	.themeCartPage .cart-layout {
		gap: 1.5rem;
	}

	.themeCartPage .cart-item-main {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.themeCartPage .cart-item-price {
		width: auto;
		padding-left: 6.4375rem;
		text-align: left;
	}

	.themeCartPage .cart-item-actions {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.themeCartPage .cart-coupon-bar {
		padding: 1rem 1.25rem;
	}

	.themeCartPage .cart-coupon-bar .coupon {
		width: 100%;
	}

	.themeCartPage .cart-coupon-bar #coupon_code,
	.themeCartPage .cart-coupon-bar .cart-coupon-submit {
		width: 100%;
	}

	.themeCartPage .cart-summary {
		padding: 1.5rem;
	}

	.themeCartPage .cart-summary-hint {
		line-height: 1.4;
	}
}

@media (max-width: 575.98px) {
	.themeCartPage .cart-item {
		padding: 1.25rem;
	}

	.themeCartPage .cart-item-price,
	.themeCartPage .cart-item-actions {
		padding-left: 0;
	}

	.themeCartPage .cart-item-qty {
		justify-content: flex-start;
		min-width: 0;
	}
}
