.acx-cart-page__header {
	align-items: flex-end;
	display: flex;
	gap: var(--acx-space-4);
	justify-content: space-between;
	margin-bottom: var(--acx-space-5);
}

.acx-cart-page__header h1 {
	font-size: clamp(40px, 6vw, 64px);
	line-height: 1.15;
	margin: 0;
}

.acx-cart-status {
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.acx-cart-layout {
	align-items: start;
	display: grid;
	gap: var(--acx-space-4);
	grid-template-columns: minmax(0, 1fr) 360px;
}

.acx-cart-items {
	display: grid;
	gap: var(--acx-space-3);
}

.acx-cart-loading {
	min-height: 160px;
}

.acx-cart-line {
	align-items: center;
	display: grid;
	gap: var(--acx-space-4);
	grid-template-columns: 120px minmax(0, 1fr) auto;
	padding: var(--acx-space-3);
}

.acx-cart-line__media {
	align-items: center;
	aspect-ratio: 1;
	background: var(--acx-ceramic);
	border-radius: var(--acx-radius-card);
	color: var(--acx-green-house);
	display: flex;
	font-size: var(--acx-text-2);
	font-weight: 600;
	justify-content: center;
	overflow: hidden;
	padding: var(--acx-space-2);
	text-align: center;
	text-decoration: none;
}

.acx-cart-line__media img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.acx-cart-line__details {
	min-width: 0;
}

.acx-cart-line__details h2 {
	font-size: var(--acx-text-4);
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: var(--acx-space-1);
}

.acx-cart-line__details h2 a {
	color: var(--acx-text);
	text-decoration: none;
}

.acx-cart-line__details h2 a:hover,
.acx-cart-line__details h2 a:focus {
	color: var(--acx-green-accent);
	text-decoration: underline;
}

.acx-cart-line__details p {
	margin-bottom: var(--acx-space-2);
}

.acx-cart-line__unit-price {
	color: var(--acx-green-brand);
	font-size: var(--acx-text-3);
}

.acx-cart-line__controls {
	display: grid;
	gap: var(--acx-space-2);
	place-items: end;
}

.acx-cart-stepper {
	align-items: center;
	border: 1px solid var(--acx-border);
	border-radius: var(--acx-radius-pill);
	display: flex;
	height: 40px;
	overflow: hidden;
}

.acx-cart-stepper__button {
	align-items: center;
	background: var(--acx-white);
	border: 0;
	color: var(--acx-green-accent);
	cursor: pointer;
	display: flex;
	font-size: 22px;
	font-weight: 600;
	height: 38px;
	justify-content: center;
	padding: 0;
	transition: background-color var(--acx-duration-fast) ease, transform var(--acx-duration-fast) ease;
	width: 38px;
}

.acx-cart-stepper__button:hover,
.acx-cart-stepper__button:focus {
	background: var(--acx-neutral-warm);
}

.acx-cart-stepper__button:active {
	transform: scale(0.95);
}

.acx-cart-stepper__input {
	appearance: textfield;
	border: 0;
	box-shadow: none;
	color: var(--acx-text);
	font-family: var(--acx-font-sans);
	font-size: var(--acx-text-2);
	font-weight: 600;
	height: 38px;
	margin: 0;
	padding: 0;
	text-align: center;
	width: 42px;
}

.acx-cart-stepper__input::-webkit-inner-spin-button,
.acx-cart-stepper__input::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}

.acx-cart-line__remove {
	background: transparent;
	border: 0;
	color: var(--acx-danger);
	cursor: pointer;
	font-family: var(--acx-font-sans);
	font-size: var(--acx-text-1);
	font-weight: 600;
	padding: 0;
	text-decoration: underline;
}

.acx-cart-line__total {
	color: var(--acx-text);
	font-size: var(--acx-text-4);
}

.acx-cart-summary {
	position: sticky;
	top: 123px;
}

.admin-bar .acx-cart-summary {
	top: 155px;
}

.acx-cart-summary h2 {
	font-weight: 600;
	margin-bottom: var(--acx-space-4);
}

.acx-cart-summary dl {
	margin: 0;
}

.acx-cart-summary dl > div {
	display: flex;
	gap: var(--acx-space-3);
	justify-content: space-between;
	padding-block: var(--acx-space-2);
}

.acx-cart-summary dt {
	color: var(--acx-text-soft);
}

.acx-cart-summary dd {
	font-weight: 600;
	margin: 0;
	text-align: right;
}

.acx-cart-summary__total {
	border-top: 1px solid var(--acx-divider);
	font-size: var(--acx-text-4);
	margin-top: var(--acx-space-3);
	padding-top: var(--acx-space-4) !important;
}

.acx-cart-summary__total dt,
.acx-cart-summary__total dd {
	color: var(--acx-text);
}

.acx-cart-summary__vat {
	color: var(--acx-text-soft);
	font-size: var(--acx-text-1);
	margin: var(--acx-space-2) 0 var(--acx-space-4);
}

.acx-cart-summary__checkout {
	width: 100%;
}

.acx-cart-summary__checkout.is-disabled {
	cursor: not-allowed;
	opacity: 0.45;
	pointer-events: none;
}

.acx-cart-toast {
	background: var(--acx-green-house);
	border-radius: var(--acx-radius-pill);
	bottom: 92px;
	box-shadow: var(--acx-shadow-float);
	color: var(--acx-white);
	font-size: var(--acx-text-2);
	font-weight: 600;
	left: 50%;
	max-width: calc(100vw - 32px);
	opacity: 0;
	padding: 12px 20px;
	pointer-events: none;
	position: fixed;
	transform: translate(-50%, 16px);
	transition: opacity var(--acx-duration-fast) ease, transform var(--acx-duration-fast) ease;
	z-index: 100002;
}

.acx-cart-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 950px) {
	.acx-cart-layout {
		grid-template-columns: 1fr;
	}

	.acx-cart-summary {
		position: static;
	}
}

@media (max-width: 640px) {
	.acx-cart-page__header {
		align-items: stretch;
		flex-direction: column;
	}

	.acx-cart-page__header .acx-btn {
		width: 100%;
	}

	.acx-cart-line {
		align-items: start;
		grid-template-columns: 88px minmax(0, 1fr);
	}

	.acx-cart-line__controls {
		align-items: center;
		border-top: 1px solid var(--acx-divider);
		display: flex;
		grid-column: 1 / -1;
		justify-content: space-between;
		padding-top: var(--acx-space-3);
		width: 100%;
	}

	.acx-cart-line__remove {
		order: 2;
	}

	.acx-cart-line__total {
		margin-left: auto;
		order: 3;
	}
}
