.ml-keychain-selector {
	--ml-keychain-paper: #fffdf8;
	--ml-keychain-cream: #f5f0e6;
	--ml-keychain-forest: #284f40;
	--ml-keychain-terra: #a6533f;
	--ml-keychain-line: #ded5c6;
	margin: 1.25rem 0;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--ml-keychain-line);
	border-radius: 16px;
	background: var(--ml-keychain-paper);
	color: #22342b;
	scroll-margin-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
}

.ml-keychain-selector__heading {
	margin: 0;
	color: var(--ml-keychain-forest);
	font-size: 1.15rem;
	font-weight: 700;
}

.ml-keychain-selector__intro {
	margin: .4rem 0 1rem;
	line-height: 1.5;
}

.ml-keychain-unit {
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--ml-keychain-line);
	border-radius: 14px;
	background: #fff;
}

.ml-keychain-unit h4 {
	margin: 0 0 .75rem;
	font-size: 1rem;
}

.ml-keychain-unit__sides {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

.ml-keychain-side {
	min-width: 0;
	padding: .75rem;
	border: 1px dashed #aaa292;
	border-radius: 12px;
	background: var(--ml-keychain-cream);
}

.ml-keychain-side.is-selected {
	border-style: solid;
	border-color: var(--ml-keychain-forest);
	box-shadow: 0 0 0 2px rgb(40 79 64 / 10%);
}

.ml-keychain-side__title {
	margin-bottom: .5rem;
	font-weight: 700;
}

.ml-keychain-side__preview {
	display: grid;
	place-items: center;
	min-height: 90px;
	margin-bottom: .5rem;
	border-radius: 9px;
	background: #eee9df;
	overflow: hidden;
}

.ml-keychain-side__preview:empty::before {
	content: "Nincs kép kiválasztva";
	padding: .75rem;
	color: #6a685f;
	font-size: .86rem;
	text-align: center;
}

.ml-keychain-side__preview img {
	display: block;
	width: 100%;
	height: 120px;
	object-fit: contain;
}

.ml-keychain-side__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .5rem;
}

.ml-keychain-side__choose,
.ml-keychain-side__remove {
	display: inline-flex;
	width: 100%;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: .65rem .8rem;
	border-radius: 9px;
	font: inherit;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	touch-action: manipulation;
}

.ml-keychain-selector button.ml-keychain-side__choose {
	/* Sunshine hides its generic multi-image opener until a native trigger is
	 * ready. These scoped controls are the Phase 3A two-sided picker triggers. */
	visibility: visible;
	border: 1px solid var(--ml-keychain-forest);
	background: var(--ml-keychain-forest);
	color: #fffdf8;
	font-weight: 750;
	gap: .4rem;
}

.ml-keychain-side__remove {
	border: 1px solid #a99d89;
	background: transparent;
	color: #294638;
}

.ml-streamlined-product--keychain .ml-keychain-selector[data-context="standalone"] {
	margin: 1rem 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ml-streamlined-product--keychain .ml-keychain-selector__heading,
.ml-streamlined-product--keychain .ml-keychain-selector__intro {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

.ml-streamlined-product--keychain .ml-keychain-unit {
	background: #fffdf8;
}

.ml-streamlined-product--keychain #sunshine--store--product-details--header--cart,
.ml-streamlined-product--keychain .sunshine--store--product-details--header--cart,
.ml-streamlined-product--keychain .sunshine--mini-cart {
	display: none !important;
}

.ml-keychain-side__plus {
	display: block;
	font-size: 2rem;
	font-weight: 400;
	line-height: .75;
}

.ml-keychain-side:not(.is-selected) .ml-keychain-side__choose {
	flex-direction: column;
	width: 100%;
	min-height: 76px;
}

.ml-keychain-selector__error {
	margin-top: 1rem;
	color: #9d2c24;
	font-weight: 700;
}

.ml-keychain-selector__status {
	min-height: 1.5em;
	margin-top: .5rem;
	color: var(--ml-keychain-forest);
}

.ml-keychain-cart-edit-panel {
	--ml-keychain-paper: #fffdf8;
	--ml-keychain-forest: #284f40;
	--ml-keychain-terra: #a6533f;
	max-width: 58rem;
	margin-inline: auto;
	padding: clamp(1rem, 3vw, 2rem);
}

.ml-keychain-cart-edit-panel__header {
	max-width: 42rem;
}

.ml-keychain-cart-edit-panel__header h2 {
	margin: .15rem 0 .65rem;
	color: var(--ml-keychain-forest);
}

.ml-keychain-cart-edit-panel__eyebrow {
	margin: 0;
	color: var(--ml-keychain-terra);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.ml-keychain-cart-edit-panel__actions {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	justify-content: flex-end;
	padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
	background: linear-gradient(to bottom, rgb(255 253 248 / 0%), var(--ml-keychain-paper) 24%);
}

.ml-keychain-cart-edit__save {
	min-height: 48px;
}

.ml-keychain-cart-edit__save[disabled] {
	cursor: progress;
	opacity: .62;
}

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

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

#sunshine--package--fill[data-ml-keychain-mutation-pending="1"] {
	cursor: progress;
}

#sunshine--package--fill[data-ml-keychain-mutation-pending="1"] [aria-disabled="true"] {
	opacity: .62;
	pointer-events: none;
}

#sunshine--package--fill .ml-keychain-selector[data-context="package"] {
	margin: 1rem 0;
	padding: 0;
	border: 0;
	background: transparent;
}

#sunshine--package--fill .ml-keychain-selector[data-context="package"] > .ml-keychain-selector__heading,
#sunshine--package--fill .ml-keychain-selector[data-context="package"] > .ml-keychain-selector__intro {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

#sunshine--package--fill .ml-keychain-selector[data-context="package"] .ml-keychain-unit {
	padding: 0;
	border: 0;
	background: transparent;
}

#sunshine--package--fill .ml-keychain-selector[data-context="package"] .ml-keychain-side {
	background: #eeeae2;
}

@media (max-width: 600px) {
	.ml-keychain-selector {
		margin-inline: 0;
		padding: .9rem;
	}

	.ml-keychain-side__remove {
		width: 100%;
	}

	.sunshine--multi-image-select {
		padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.sunshine--multi-image-select--source--list {
		padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
	}

	body .sunshine--multi-image-select--header {
		min-height: 64px;
		padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
	}

	.sunshine--multi-image-select--header--action .sunshine--button {
		min-height: 48px;
	}

	.ml-keychain-cart-edit-panel {
		padding: .9rem;
	}

	.ml-keychain-cart-edit__save {
		width: 100%;
	}
}
