.sunshine--multi-image-select.ml-picker {
	--ml-picker-cream: #f5f0e6;
	--ml-picker-paper: #fffdf8;
	--ml-picker-forest: #284f40;
	--ml-picker-terra: #a6533f;
	--ml-picker-line: #ded5c6;
	--ml-picker-muted: #52615b;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: min(84vh, 920px);
	height: min(84dvh, 920px);
	max-height: min(84vh, 920px);
	max-height: min(84dvh, 920px);
	padding: 18px 18px 0 !important;
	background: var(--ml-picker-cream);
	color: #20342d;
	overscroll-behavior: contain;
	overflow-x: hidden;
	overflow-y: hidden;
}

.ml-picker *,
.ml-picker *::before,
.ml-picker *::after {
	box-sizing: border-box;
}

.ml-picker .ml-picker__header {
	position: static;
	z-index: 12;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: auto -18px 0;
	padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
	background: var(--ml-picker-paper);
	border: 1px solid var(--ml-picker-line);
	border-radius: 14px 14px 0 0;
	box-shadow: 0 -10px 28px rgb(32 52 45 / 12%);
}

.ml-picker__eyebrow {
	margin: 0 0 3px;
	color: var(--ml-picker-terra);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
}

.ml-picker__count {
	margin: 0;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	min-width: 12ch;
}

.ml-picker .sunshine--multi-image-select--close {
	min-height: 44px;
	padding: 10px 16px;
	background: var(--ml-picker-forest);
	border: 1px solid var(--ml-picker-forest);
	border-radius: 9px;
	color: #fffdf8;
	font-weight: 750;
}

.ml-picker__sources {
	position: static;
	z-index: 11;
	top: 0;
	display: grid;
	grid-template-columns: auto minmax(160px, 320px);
	align-items: center;
	gap: 8px 12px;
	margin: -18px -18px 18px;
	padding: 14px 18px;
	background: var(--ml-picker-cream);
	border-bottom: 1px solid var(--ml-picker-line);
	box-shadow: 0 8px 20px rgb(32 52 45 / 8%);
}

.ml-picker__sources > label {
	font-weight: 750;
}

.ml-picker__sources .ml-picker__eyebrow {
	grid-column: 1 / -1;
}

.ml-picker__sources select {
	width: 100%;
	min-height: 44px;
	padding: 8px 38px 8px 12px;
	background-color: var(--ml-picker-paper);
	border: 1px solid #9caa9f;
	border-radius: 9px;
	color: #20342d;
	font: inherit;
}

.ml-picker__notice,
.ml-picker__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 11px 13px;
	background: #eee5d7;
	border-left: 3px solid var(--ml-picker-terra);
	border-radius: 6px;
	color: var(--ml-picker-muted);
	font-size: .9rem;
}

.ml-picker__list {
	flex: 1 1 auto;
	min-height: 0;
	padding-bottom: clamp(24px, 5vh, 56px);
	max-height: none !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

#sunshine--modal--content.ml-picker-modal-content {
	display: flex !important;
	flex-direction: column;
	min-height: 0;
	overflow: hidden !important;
}

.ml-picker .ml-picker-source {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 12px !important;
	padding: 0 !important;
}

.ml-picker-source[hidden],
.ml-picker-source[style*="display: none"],
.ml-picker-source[style*="display:none"] {
	display: none !important;
}

.ml-picker-image {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 8px;
	background: var(--ml-picker-paper);
	border: 1px solid var(--ml-picker-line);
	border-radius: 11px;
}

.ml-picker-image > input[type="checkbox"] {
	position: absolute;
	top: 13px;
	right: 13px;
	z-index: 2;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--ml-picker-forest);
}

.ml-picker-image > label {
	display: block;
	min-height: 44px;
	cursor: pointer;
}

.ml-picker-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	border-radius: 7px;
}

.ml-picker-image .sunshine--image--name {
	margin-top: 7px;
	overflow-wrap: anywhere;
	color: var(--ml-picker-muted);
	font-size: .78rem;
}

.ml-picker-image .sunshine--multi-image-select--qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
}

.ml-picker-image .sunshine--multi-image-select--qty label {
	font-size: .78rem;
	font-weight: 700;
}

.ml-picker-image .sunshine--multi-image-select--qty select {
	min-width: 56px;
	min-height: 44px;
}

.ml-picker :focus-visible {
	outline: 2px solid #fffdf8;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px #20342d;
}

@media (max-width: 820px) {
	.ml-picker .ml-picker-source {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 620px) {
	html.ml-picker-shell-open,
	body.ml-picker-shell-open {
		height: 100%;
		overflow: hidden !important;
		overscroll-behavior: none;
	}

	#sunshine--modal.ml-picker-shell-active {
		position: fixed !important;
		inset: 0 !important;
		width: 100vw !important;
		max-width: none !important;
		height: var(--ml-picker-viewport-height, 100dvh) !important;
		max-height: var(--ml-picker-viewport-height, 100dvh) !important;
		margin: 0 !important;
		border-radius: 0 !important;
		transform: none !important;
	}

	#sunshine--modal.ml-picker-shell-active #sunshine--modal--content.ml-picker-modal-content {
		width: 100% !important;
		height: 100% !important;
		max-height: 100% !important;
		padding: 0 !important;
		border-radius: 0 !important;
	}

	#sunshine--modal.ml-picker-shell-active #sunshine--modal--close {
		position: fixed !important;
		z-index: 100510 !important;
		top: max(8px, env(safe-area-inset-top)) !important;
		right: max(8px, env(safe-area-inset-right)) !important;
	}

	#sunshine--modal.ml-picker-shell-active .ml-cart-selection-edit-panel {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
		min-height: 0;
		overflow: hidden;
	}

	#sunshine--modal.ml-picker-shell-active .ml-cart-selection-edit-panel > h2 {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.sunshine--multi-image-select.ml-picker {
		position: fixed !important;
		inset: 0 !important;
		z-index: 100500 !important;
		width: 100vw !important;
		height: var(--ml-picker-viewport-height, 100dvh) !important;
		max-height: var(--ml-picker-viewport-height, 100dvh) !important;
		padding: 12px 12px 0 !important;
		border-radius: 0 !important;
		overflow: hidden !important;
	}

	#sunshine--modal.ml-streamlined-product #sunshine--store--product-details--content {
		overflow: hidden;
	}

	#sunshine--modal.ml-streamlined-product .sunshine--multi-image-select.ml-picker {
		inset: 0;
		height: var(--ml-picker-viewport-height, 100dvh) !important;
		max-height: var(--ml-picker-viewport-height, 100dvh) !important;
	}

	.ml-picker .ml-picker__header {
		align-items: center;
		flex-direction: row;
		flex: 0 0 auto !important;
		height: auto !important;
		min-height: 0 !important;
		margin: auto -12px 0;
		padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
	}

	.ml-picker__sources {
		flex: 0 0 auto;
		grid-template-columns: 1fr;
		margin: -12px -12px 0;
		padding: max(12px, env(safe-area-inset-top)) 64px 12px 12px;
	}

	.ml-picker .ml-picker-source {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.ml-picker__list {
		flex: 1 1 auto;
		min-height: 0;
		padding: 14px 0;
		overflow-x: hidden !important;
		overflow-y: auto !important;
	}

	.ml-picker .sunshine--multi-image-select--close {
		flex: 1 1 auto;
		width: auto;
		min-height: 48px;
	}

	.ml-picker__count {
		flex: 0 0 auto;
		min-width: 0;
		font-size: .82rem;
		line-height: 1.25;
	}
}

@media (max-width: 340px) {
	.ml-picker .ml-picker-source {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}

	.ml-picker-image {
		padding: 5px;
	}

	.ml-picker-image .sunshine--image--name {
		font-size: .7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ml-picker *,
	.ml-picker *::before,
	.ml-picker *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
