:root {
	--fotokinder-crop-forest: #073a30;
	--fotokinder-crop-forest-soft: #315e53;
	--fotokinder-crop-paper: #fffdf9;
	--fotokinder-crop-canvas: #eef1ea;
	--fotokinder-crop-amber: #d99b2b;
	--fotokinder-crop-line: #d6ddd5;
}

.fotokinder-sticker-editor,
.fotokinder-sticker-editor * {
	box-sizing: border-box;
}

body.fotokinder-sticker-editor-open {
	overflow: hidden !important;
}

body.fotokinder-sticker-editor-open,
body.fotokinder-sticker-editor-open * {
	-webkit-user-select: none !important;
	user-select: none !important;
}

.fotokinder-sticker-editor {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	align-items: center;
	justify-content: center;
	padding: 18px;
	color: var(--fotokinder-crop-forest);
	font-family: inherit;
	-webkit-user-select: none;
	user-select: none;
}

.fotokinder-sticker-editor.is-open {
	display: flex;
}

.fotokinder-sticker-editor__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 29, 24, 0.78);
	backdrop-filter: blur(8px);
}

.fotokinder-sticker-editor__dialog {
	position: relative;
	display: flex;
	width: min(980px, 100%);
	max-height: calc(100vh - 36px);
	max-height: calc(100dvh - 36px);
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 26px;
	background: var(--fotokinder-crop-paper);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.fotokinder-sticker-editor__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 30px 18px;
	border-bottom: 1px solid var(--fotokinder-crop-line);
}

.fotokinder-sticker-editor__eyebrow {
	margin: 0 0 4px;
	color: var(--fotokinder-crop-amber);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.fotokinder-sticker-editor__header h2 {
	margin: 0;
	color: var(--fotokinder-crop-forest);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.08;
}

.fotokinder-sticker-editor__header p:last-child {
	margin: 7px 0 0;
	color: #65736f;
	font-size: 0.96rem;
}

.fotokinder-sticker-editor__close {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	border: 1px solid var(--fotokinder-crop-line);
	border-radius: 50%;
	background: #f3f5f0;
	color: var(--fotokinder-crop-forest);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.fotokinder-sticker-editor__body {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
	gap: 26px;
	min-height: 0;
	overflow: auto;
	padding: 24px 30px;
}

.fotokinder-sticker-editor__workspace {
	min-width: 0;
}

.fotokinder-sticker-editor__canvas {
	display: grid;
	min-height: 350px;
	place-items: center;
	overflow: hidden;
	border-radius: 20px;
	background:
		linear-gradient(135deg, rgba(7, 58, 48, 0.045) 25%, transparent 25%) 0 0 / 22px 22px,
		linear-gradient(315deg, rgba(7, 58, 48, 0.045) 25%, transparent 25%) 0 0 / 22px 22px,
		var(--fotokinder-crop-canvas);
	box-shadow: inset 0 0 0 1px var(--fotokinder-crop-line);
}

.fotokinder-sticker-editor__stage {
	position: relative;
	width: min(74%, 340px, 38dvh);
	overflow: hidden;
	border: 0;
	border-radius: 8px;
	background: #d9ddd7;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fotokinder-crop-amber), 0 16px 38px rgba(7, 58, 48, 0.24);
	cursor: grab;
	touch-action: none;
}

.fotokinder-sticker-editor__stage.is-portrait {
	aspect-ratio: 3 / 4;
}

.fotokinder-sticker-editor__stage.is-landscape {
	width: min(88%, 500px, 68dvh);
	aspect-ratio: 4 / 3;
}

.fotokinder-sticker-editor__stage.is-dragging {
	cursor: grabbing;
}

.fotokinder-sticker-editor__image {
	position: absolute;
	max-width: none !important;
	object-fit: fill;
	pointer-events: none;
	user-select: none;
}

.fotokinder-sticker-editor__safe-area {
	position: absolute;
	inset: 6%;
	border: 1px dashed rgba(255, 255, 255, 0.86);
	border-radius: 4px;
	box-shadow: 0 0 0 9999px rgba(7, 21, 18, 0.1);
	pointer-events: none;
}

.fotokinder-sticker-editor__resize-handle {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 2px solid #fff;
	border-right: 0;
	border-bottom: 0;
	border-radius: 15px 0 0;
	background: var(--fotokinder-crop-amber);
	box-shadow: -5px -5px 16px rgba(7, 58, 48, 0.2);
	color: var(--fotokinder-crop-forest);
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1;
	cursor: nwse-resize;
	touch-action: none;
	user-select: none;
}

.fotokinder-sticker-editor__stage.is-resizing {
	cursor: nwse-resize;
}

.fotokinder-sticker-editor__drag-hint {
	margin: 11px 0 0;
	color: #66746f;
	font-size: 0.84rem;
	text-align: center;
}

.fotokinder-sticker-editor__drag-hint span {
	margin-right: 5px;
	color: var(--fotokinder-crop-forest);
	font-size: 1rem;
}

.fotokinder-sticker-editor__controls {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 6px 0;
}

.fotokinder-sticker-editor__controls fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.fotokinder-sticker-editor__controls legend,
.fotokinder-sticker-editor__zoom strong {
	display: block;
	margin-bottom: 9px;
	color: var(--fotokinder-crop-forest);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fotokinder-sticker-editor__segments {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.fotokinder-sticker-editor__segments button {
	display: flex;
	min-height: 70px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 10px;
	border: 1px solid var(--fotokinder-crop-line);
	border-radius: 14px;
	background: #fff;
	color: var(--fotokinder-crop-forest);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
}

.fotokinder-sticker-editor__segments button.is-selected {
	border-color: var(--fotokinder-crop-forest);
	background: #eaf0eb;
	box-shadow: inset 0 0 0 1px var(--fotokinder-crop-forest);
}

.fotokinder-sticker-editor__segments button > span:last-child {
	text-align: left;
}

.fotokinder-sticker-editor__segments button small {
	display: block;
	margin-top: 2px;
	color: #6a7874;
	font-size: 0.7rem;
	font-weight: 650;
	line-height: 1.25;
}

.fotokinder-sticker-editor__segments button.is-selected small {
	color: var(--fotokinder-crop-forest-soft);
}

.fotokinder-sticker-editor__format {
	display: inline-block;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.fotokinder-sticker-editor__format.is-portrait {
	width: 15px;
	height: 20px;
}

.fotokinder-sticker-editor__format.is-landscape {
	width: 20px;
	height: 15px;
}

.fotokinder-sticker-editor__zoom small {
	display: block;
	margin-top: -4px;
	color: #75817e;
	font-size: 0.8rem;
}

.fotokinder-sticker-editor__range {
	display: grid;
	grid-template-columns: 24px 1fr 24px;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	font-size: 1.3rem;
	text-align: center;
}

.fotokinder-sticker-editor__range input {
	width: 100%;
	accent-color: var(--fotokinder-crop-forest);
}

.fotokinder-sticker-editor__print-note {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 16px;
	border: 1px solid #cbd8cd;
	border-radius: 14px;
	background: #f2f6ef;
	color: #53615d;
}

.fotokinder-sticker-editor__print-note > span {
	display: grid;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	place-items: center;
	border-radius: 50%;
	background: var(--fotokinder-crop-forest);
	color: #fff;
	font-weight: 800;
}

.fotokinder-sticker-editor__print-note p {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.45;
}

.fotokinder-sticker-editor__print-note strong {
	display: block;
	margin-bottom: 2px;
	color: var(--fotokinder-crop-forest);
}

.fotokinder-sticker-editor__status {
	min-height: 22px;
	margin: 0;
	padding: 0 30px 4px;
	color: var(--fotokinder-crop-forest-soft);
	font-size: 0.86rem;
	text-align: right;
}

.fotokinder-sticker-editor__status.is-error {
	color: #a33128;
}

.fotokinder-sticker-editor__footer {
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 30px 24px;
}

.fotokinder-sticker-editor__footer button,
.fotokinder-sticker-package-crop,
.fotokinder-sticker-cart-status button {
	min-height: 48px;
	padding: 12px 20px;
	border-radius: 999px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	cursor: pointer;
}

.fotokinder-sticker-editor__cancel {
	border: 1px solid var(--fotokinder-crop-forest);
	background: transparent;
	color: var(--fotokinder-crop-forest);
}

.fotokinder-sticker-editor__save {
	border: 1px solid var(--fotokinder-crop-forest);
	background: var(--fotokinder-crop-forest);
	color: #fff;
}

.fotokinder-sticker-editor.is-busy {
	cursor: wait;
}

.fotokinder-sticker-editor button:disabled,
.fotokinder-sticker-editor input:disabled {
	cursor: wait;
	opacity: 0.58;
}

.fotokinder-sticker-package-crop {
	display: block;
	width: fit-content;
	margin-top: 14px;
	border: 1px solid var(--fotokinder-crop-forest);
	background: #fff;
	color: var(--fotokinder-crop-forest);
}

.fotokinder-sticker-package-crop.is-complete {
	background: #eaf0eb;
}

.fotokinder-sticker-package-crop:disabled {
	border-color: var(--fotokinder-crop-line);
	color: #84908c;
	cursor: not-allowed;
}

.sunshine--multi-image-select--selected-images--item.fotokinder-sticker-crop-preview,
.fotokinder-sticker-cart-preview {
	position: relative;
	display: block;
	overflow: hidden !important;
	border: 2px solid #fff;
	border-radius: 8px;
	background: var(--fotokinder-crop-canvas);
	box-shadow: 0 0 0 1px var(--fotokinder-crop-line);
}

.sunshine--multi-image-select--selected-images--item.fotokinder-sticker-crop-preview.is-portrait,
.fotokinder-sticker-cart-preview.is-portrait {
	aspect-ratio: 3 / 4;
}

.sunshine--multi-image-select--selected-images--item.fotokinder-sticker-crop-preview.is-landscape,
.fotokinder-sticker-cart-preview.is-landscape {
	aspect-ratio: 4 / 3;
}

.sunshine--multi-image-select--selected-images--item.fotokinder-sticker-crop-preview img,
.fotokinder-sticker-cart-preview img {
	position: absolute !important;
	top: var(--fotokinder-preview-top) !important;
	left: var(--fotokinder-preview-left) !important;
	width: var(--fotokinder-preview-width) !important;
	height: auto !important;
	max-width: none !important;
	object-fit: fill !important;
}

.fotokinder-sticker-cart-preview {
	display: none;
	width: 64px;
	min-width: 64px;
}

.fotokinder-sticker-cart-preview.is-complete {
	display: block;
}

.fotokinder-sticker-cart-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f0f4ee;
	color: var(--fotokinder-crop-forest);
}

.fotokinder-sticker-cart-status.is-missing {
	background: #fff4df;
	color: #6e4810;
}

.fotokinder-sticker-cart-status button {
	min-height: 42px;
	padding: 8px 14px;
	border: 0;
	background: var(--fotokinder-crop-forest);
	color: #fff;
}

@media (max-width: 720px) {
	.fotokinder-sticker-editor {
		padding: 0;
	}

	.fotokinder-sticker-editor__dialog {
		width: 100%;
		height: 100vh;
		height: 100dvh;
		height: var(--fotokinder-viewport-height, 100dvh);
		min-height: -webkit-fill-available;
		max-height: none;
		border: 0;
		border-radius: 0;
	}

	.fotokinder-sticker-editor__header {
		padding: max(18px, env(safe-area-inset-top)) 18px 14px;
	}

	.fotokinder-sticker-editor__header p:last-child {
		font-size: 0.84rem;
	}

	.fotokinder-sticker-editor__body {
		display: flex;
		flex-direction: column;
		gap: 18px;
		padding: 18px;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.fotokinder-sticker-editor__canvas {
		min-height: 330px;
	}

	.fotokinder-sticker-editor__stage {
		width: min(64vw, 245px, 36dvh);
	}

	.fotokinder-sticker-editor__stage.is-landscape {
		width: min(86vw, 410px, 58dvh);
	}

	.fotokinder-sticker-editor__controls {
		gap: 18px;
	}

	.fotokinder-sticker-editor__status {
		padding: 0 18px;
	}

	.fotokinder-sticker-editor__footer {
		position: sticky;
		z-index: 5;
		bottom: 0;
		flex: 0 0 auto;
		padding: 12px 18px;
		padding-bottom: calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--fotokinder-crop-line);
		background: var(--fotokinder-crop-paper);
		box-shadow: 0 -8px 24px rgba(7, 58, 48, 0.08);
		touch-action: manipulation;
		transform: translateZ(0);
	}

	.fotokinder-sticker-editor__footer button {
		font-size: 0.82rem;
		padding-inline: 12px;
	}

	.fotokinder-sticker-editor__cancel {
		flex: 0.7;
	}

	.fotokinder-sticker-editor__save {
		flex: 1.3;
	}

	.fotokinder-sticker-cart-status {
		align-items: stretch;
		flex-direction: column;
	}

	.fotokinder-sticker-cart-status button {
		width: 100%;
	}
}

@media (max-width: 380px) {
	.fotokinder-sticker-editor__header h2 {
		font-size: 1.35rem;
	}

	.fotokinder-sticker-editor__header p:last-child,
	.fotokinder-sticker-editor__eyebrow {
		display: none;
	}

	.fotokinder-sticker-editor__canvas {
		min-height: 285px;
	}

	.fotokinder-sticker-editor__segments {
		grid-template-columns: 1fr;
	}
}
