/*
 * Nizu bag sheet. Builds on the .nz-sheet bottom-sheet shell in app.css. Mobile first.
 */

.nz-bag__panel {
	min-height: 0;
}

.nz-bag__head {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px 4px 20px;
}

.nz-bag__title {
	margin: 0;
	font: 600 20px/1.2 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	letter-spacing: -.01em;
	color: var(--nz-ink, #1b1918);
}

.nz-bag__count {
	margin-left: 4px;
	font-size: 15px;
	font-weight: 400;
	color: var(--nz-ink-2, #6b6466);
}

.nz-bag__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nz-ink, #1b1918);
	cursor: pointer;
}

.nz-bag__close:active {
	background: var(--nz-surface-2, #ece8e6);
}

.nz-bag__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0 16px 8px;
}

/* ---------------------------------------------------------------- Deal strips */
.nz-bag__deal {
	margin: 4px 0 8px;
	padding: 12px 14px;
	border-radius: var(--nz-r-m, 14px);
	background: var(--nz-blush, #f6ece8);
}

.nz-bag__dealtext {
	font: 600 13px/1.35 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-deal, #bf3228);
}

.nz-bag__bar {
	height: 4px;
	margin-top: 8px;
	border-radius: 2px;
	background: rgba(200, 55, 45, .16);
	overflow: hidden;
}

.nz-bag__bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 2px;
	background: var(--nz-deal, #bf3228);
	transition: width 320ms var(--nz-ease, ease);
}

/* ---------------------------------------------------------------- Rows */
.nz-bag__list {
	margin: 0 -16px;
	padding: 0;
	list-style: none;
}

.nz-bagrow {
	position: relative;
	display: grid;
	grid-template-rows: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: grid-template-rows 220ms var(--nz-ease, ease), opacity 180ms var(--nz-ease, ease);
}

.nz-bagrow.is-removing {
	grid-template-rows: 0fr;
	opacity: 0;
	pointer-events: none;
}

.nz-bagrow__remove {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 88px;
	display: flex;
}

.nz-bagrow__remove button {
	flex: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--nz-deal, #bf3228);
	color: #fff;
	font: 600 14px/1 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	text-align: center;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.nz-bagrow__inner {
	position: relative;
	display: flex;
	gap: 14px;
	min-height: 0;
	overflow: hidden;
	box-sizing: border-box;
	padding: 12px 16px;
	background: var(--nz-bg, #fff);
	touch-action: pan-y;
	transition: transform 240ms var(--nz-ease, ease);
}

.nz-bagrow + .nz-bagrow .nz-bagrow__inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 16px;
	right: 16px;
	height: .5px;
	background: var(--nz-line, #e7e2e0);
}

.nz-bagrow__inner.is-open {
	transform: translateX(-88px);
}

.nz-bagrow__inner.is-swiping {
	transition: none;
}

.nz-bagrow__thumb {
	display: block;
	flex: none;
	width: 64px;
	height: 80px;
	border-radius: var(--nz-r-s, 10px);
	overflow: hidden;
	background: var(--nz-surface, #f5f3f2);
}

.nz-bagrow__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.nz-bagrow__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
}

.nz-bagrow__name {
	font: 600 15px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-ink, #1b1918);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nz-bagrow__colour {
	font: 400 13px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-ink-2, #6b6466);
}

.nz-bagrow__side {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
}

.nz-bagrow__price {
	font: 600 15px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-ink, #1b1918);
	font-variant-numeric: tabular-nums;
}

.nz-bagrow__price--free {
	color: var(--nz-deal, #bf3228);
}

.nz-bagrow__x {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -6px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nz-ink-3, #716a6c);
	cursor: pointer;
}

.nz-bagrow__x::after {
	content: "";
	position: absolute;
	inset: -6px;
}

.nz-bagrow__x:active {
	background: var(--nz-surface-2, #ece8e6);
}

.nz-bagrow__free {
	align-self: flex-start;
	margin-top: 2px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--nz-blush, #f6ece8);
	color: var(--nz-deal, #bf3228);
	font: 700 11px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.nz-bagrow__qtytext {
	margin-top: 4px;
	font: 400 13px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-ink-2, #6b6466);
}

/* Stepper (visual 40px, tap 44 via ::after) */
.nz-bagstep {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	height: 44px;
	margin-top: 8px;
	border: 0;
	box-shadow: inset 0 0 0 1px var(--nz-line, #e7e2e0);
	border-radius: 999px;
	background: var(--nz-bg, #fff);
}

.nz-bagstep__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--nz-ink, #1b1918);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.nz-bagstep__btn::after {
	content: "";
	position: absolute;
	inset: -3px 0;
}

.nz-bagstep__btn.is-max {
	opacity: .35;
}

.nz-bagstep__qty {
	min-width: 26px;
	text-align: center;
	font: 600 15px/1 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	font-variant-numeric: tabular-nums;
}

.nz-bagstep__btn:focus-visible,
.nz-bagrow__x:focus-visible,
.nz-bag__close:focus-visible,
.nz-bag__cta:focus-visible,
.nz-bag__view:focus-visible {
	outline: 2px solid var(--nz-brand, #6f6467);
	outline-offset: 2px;
}

/* Loading skeleton */
.nz-skel--line {
	display: block;
	width: 70%;
	height: 14px;
	margin: 6px 0;
}

.nz-skel--short {
	width: 40%;
}

.nz-bagrow--skel .nz-bagrow__thumb {
	border-radius: var(--nz-r-s, 10px);
}

/* ---------------------------------------------------------------- Empty */
.nz-bag__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 16px 32px;
	text-align: center;
}

.nz-bag__empty[hidden] {
	display: none;
}

.nz-bag__empty-ico {
	color: var(--nz-ink-3, #716a6c);
}

.nz-bag__empty-title {
	margin: 12px 0 20px;
	font: 600 17px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-ink, #1b1918);
}

/* ---------------------------------------------------------------- Footer (sticky inside the sheet) */
.nz-bag__foot {
	flex: none;
	padding: 12px 16px 12px;
	background: var(--nz-bg, #fff);
	box-shadow: 0 -.5px 0 var(--nz-line, #e7e2e0);
}

.nz-bag__foot[hidden],
.nz-bag__ship[hidden] {
	display: none;
}

.nz-bag__ship {
	margin: 0 0 12px;
}

.nz-bag__shiptext {
	font: 500 13px/1.35 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-ink-2, #6b6466);
}

.nz-bag__ship .nz-bag__bar {
	background: var(--nz-surface-2, #ece8e6);
}

.nz-bag__ship .nz-bag__bar span {
	background: var(--nz-brand, #6f6467);
}

.nz-bag__ship.is-done .nz-bag__shiptext {
	color: var(--nz-ok, #2e7d4f);
}

.nz-bag__ship.is-done .nz-bag__bar span {
	background: var(--nz-ok, #2e7d4f);
}

.nz-bag__sub {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font: 400 15px/1.3 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-ink-2, #6b6466);
}

.nz-bag__sub strong {
	font-size: 18px;
	font-weight: 600;
	color: var(--nz-ink, #1b1918);
	font-variant-numeric: tabular-nums;
}

.nz-bag__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font: 600 16px/1 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	text-decoration: none;
	cursor: pointer;
}

.nz-bag__cta--primary {
	margin-top: 12px;
	background: var(--nz-ink, #1b1918);
	color: var(--nz-bg, #fff);
}

.nz-bag__cta--ghost {
	min-height: 48px;
	border: 1px solid var(--nz-line, #e7e2e0);
	background: var(--nz-bg, #fff);
	color: var(--nz-ink, #1b1918);
}

.nz-bag__view {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 4px;
	padding: 0;
	text-align: center;
	font: 500 14px/1.2 var(--nz-font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	color: var(--nz-brand, #6f6467);
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.nz-bagrow,
	.nz-bagrow__inner,
	.nz-bag__bar span {
		transition: none;
	}
}
