.cart-item {
	padding:14px 0;
	border-bottom:1px solid var(--color-border);
}
.cart-item:last-of-type {
	border:0;
}
.cart-item-head,.cart-item-actions,.cart-item-links {
	display:flex;
	align-items:center;
	gap:8px;
}
.cart-item-head {
	align-items:baseline;
	justify-content:space-between;
	gap:10px;
	flex-wrap:wrap;
}
.cart-item-head h3 {
	margin:0;
	flex:1 1 8rem;
	overflow-wrap:anywhere;
	font-size:16px;
	font-weight:700;
}
.cart-line-price,.cart-subtotal {
	margin:0 0 0 auto;
	font-weight:900;
}
.cart-item-options {
	margin:2px 0 0;
	color:var(--color-muted);
	font-size:14px;
}
.cart-item-actions {
	margin-top:10px;
	flex-wrap:wrap;
}
.cart-item-links {
	margin-left:auto;
}
.cart-item-actions .catalog-stepper {
	height:44px;
}
.cart-item-actions [data-cart-step="1"] {
	background:var(--home-accent);
	color:white;
}
.cart-item-actions [data-cart-step] svg {
	width:16px;
	height:16px;
	stroke-width:2.6;
}
.cart-item-actions [data-cart-step]:disabled {
	opacity:.45;
}
.cart-item-actions [data-cart-quantity-save] {
	width:auto;
	padding-inline:10px;
	border-radius:999px;
	font-size:14px;
}
.cart-page [hidden] {
	display:none !important;
}
.cart-page .cart-action,.cart-page .cart-more,.cart-page .cart-pay {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:5px;
	min-height:44px;
	padding:0 12px;
	border:1px solid var(--color-border);
	border-radius:12px;
	background:white;
	color:inherit;
	text-decoration:none;
	font-size:15px;
	font-weight:700;
}
.cart-action svg {
	width:18px;
	height:18px;
}
.cart-page .cart-remove {
	color:#b42318;
}
.cart-page :is(.cart-action,.cart-more):hover {
	background:#f7f4f1;
}
.cart-subtotal {
	padding-top:12px;
	text-align:right;
	border-top:1px solid var(--color-border);
}
.cart-total {
	margin:6px 0 12px;
	font-size:24px;
	font-weight:900;
}
.cart-total strong {
	color:var(--home-ink);
	font-weight:inherit;
}
.cart-page .cart-pay {
	gap:8px;
	width:100%;
	min-height:56px;
	margin-top:14px;
	border:0;
	border-radius:14px;
	background:var(--home-accent);
	color:white;
	font-size:19px;
	font-weight:900;
}
.cart-page .cart-pay:is(:hover,:focus-visible) {
	background:var(--home-ink);
}
.cart-summary > .meta {
	display:block;
	margin:12px 0 0;
	color:var(--color-muted);
	font-size:14px;
	line-height:1.6;
}
.cart-page .cart-more {
	width:100%;
	min-height:52px;
	border-radius:14px;
	gap:6px;
	font-size:16px;
}
.cart-more svg {
	width:20px;
	height:20px;
}
.cart-alert {
	margin-block:8px;
	padding:10px 12px;
	border-radius:10px;
	background:var(--home-soft);
	overflow-wrap:anywhere;
	color:#9d3210;
	font-size:15px;
}
.cart-total .cart-alert {
	display:block;
}
@media (max-width:360px) {
	.cart-item-actions,.cart-item-links {
		gap:4px;
	}
	.cart-page .cart-action {
		gap:3px;
		padding-inline:3px;
		font-size:14px;
	}
	.cart-action svg {
		width:16px;
		height:16px;
	}
}

/* 중앙 토스트는 내용 폭으로 제한해 양쪽 위치 지정에 따른 전체 폭 확장을 막는다. */
.toastify.cart-success-toast {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	width: max-content;
	max-width: calc(100% - var(--space-6));
	padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
	border-radius: var(--radius-card);
	background: var(--color-text);
	color: var(--color-surface);
	box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
	font-size: var(--size-meta);
	line-height: 1.5;
}

.cart-success-toast .toast-close {
	margin-left: auto;
	display: grid;
	place-items: center;
	line-height: 1;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.toastify.cart-success-toast {
		transition: none;
	}
}

/* 주문 가능한 항목의 변경 내역은 카드 안에 두고 주문 불가 경고와 구분한다. */
.cart-changes {
	margin:8px 0 0;
	padding:6px 10px;
	border-left:2px solid var(--home-accent);
	list-style:none;
	background:var(--home-soft);
	color:var(--color-text);
	font-size:14px;
}
.cart-subtotal small {
	color:var(--color-muted);
	font-weight:400;
}

#quote-result:not(:empty):not(.cart-alert) {
	margin-top:10px;
	color:var(--color-muted);
	font-size:14px;
}

/* 메뉴 안내와 버튼을 가깝게 두고 주문 조회는 아래쪽 보조 동선으로 둔다. */
.cart-page .order-empty h2 + p {
	margin-bottom:0;
}
.cart-page .order-empty .cart-empty-help {
	margin:16px 0 0;
	font-size:14px;
}
.cart-empty-help a {
	color:var(--color-text);
	font-weight:700;
	text-decoration:underline;
	text-underline-offset:.18em;
	white-space:nowrap;
}
