.has-ncc-card-creator :where(.entry-title, .page-title, .wp-block-post-title, .elementor-heading-title, main h1, .site-main h1) {
	line-height: 1.25;
	overflow: visible;
	padding-top: 0.12em;
}

.ncc-creator {
	--ncc-ink: #131313;
	--ncc-muted: #737373;
	--ncc-line: #e7e7e7;
	--ncc-paper: #f6f6f6;
	--ncc-panel: #ffffff;
	--ncc-accent: #131313;
	--ncc-accent-soft: #f0f0f0;
	--ncc-accent-2: #878787;
	--ncc-danger: #b4293a;
	--ncc-window-height: clamp(620px, calc(100svh - 72px), 980px);
	--ncc-side-panel-width: clamp(360px, 23vw, 420px);
	color: var(--ncc-ink);
	font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: clamp(18px, 4svh, 44px) auto;
	max-width: 1920px;
	width: min(100%, calc(100vw - 32px));
	position: relative;
}

.ncc-creator.is-submitting .ncc-workbench {
	filter: grayscale(0.35);
	opacity: 0.48;
	pointer-events: none;
	transition: filter 220ms ease, opacity 220ms ease;
}

.ncc-creator.is-submitting::after {
	align-items: center;
	background: rgba(255, 255, 255, 0.68);
	color: var(--ncc-ink);
	content: "Przetwarzanie projektu…";
	display: flex;
	font-size: 0.9rem;
	font-weight: 600;
	inset: 0;
	justify-content: center;
	letter-spacing: 0.02em;
	position: absolute;
	z-index: 50;
}

.ncc-creator * {
	box-sizing: border-box;
}

.ncc-controls,
.ncc-layer-list,
.ncc-object-tools {
	scrollbar-color: #b7b7b7 transparent;
	scrollbar-width: thin;
}

.ncc-controls::-webkit-scrollbar,
.ncc-layer-list::-webkit-scrollbar,
.ncc-object-tools::-webkit-scrollbar {
	width: 8px;
}

.ncc-controls::-webkit-scrollbar-thumb,
.ncc-layer-list::-webkit-scrollbar-thumb,
.ncc-object-tools::-webkit-scrollbar-thumb {
	background: #b7b7b7;
	border: 2px solid transparent;
	border-radius: 999px;
	background-clip: content-box;
}

.ncc-workbench {
	align-items: stretch;
	background: #ffffff;
	border: 1px solid var(--ncc-line);
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
	display: grid;
	gap: 0;
	grid-template-columns: var(--ncc-side-panel-width) minmax(0, 1fr);
	height: var(--ncc-window-height);
	min-height: 0;
	overflow: hidden;
}

.ncc-controls {
	background: #ffffff;
	border-right: 1px solid var(--ncc-line);
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	max-height: none;
	min-height: 0;
	overflow-y: auto;
	padding: 22px;
	scrollbar-gutter: stable;
}

.ncc-control-group {
	display: grid;
	gap: 12px;
}

.ncc-group-title {
	color: var(--ncc-ink);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ncc-materials {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr;
}

.ncc-material,
.ncc-ghost-button,
.ncc-submit,
.ncc-add-segment,
.ncc-snap-toggle,
.ncc-history-button {
	appearance: none;
	border: 1px solid var(--ncc-line);
	border-radius: 8px;
	cursor: pointer;
	font: inherit;
	min-height: 42px;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.ncc-material {
	align-items: center;
	background: #ffffff;
	color: var(--ncc-ink);
	display: grid;
	font-size: 0.92rem;
	font-weight: 700;
	gap: 10px;
	grid-template-columns: 34px 1fr;
	padding: 8px 10px;
	text-align: left;
}

.ncc-material:hover,
.ncc-material.is-active {
	border-color: #131313;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.ncc-material-swatch {
	background: var(--ncc-swatch);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.32);
	height: 24px;
	width: 34px;
}

.ncc-print-options {
	display: grid;
	gap: 8px;
}

.ncc-print-option {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--ncc-line);
	border-radius: 4px;
	color: var(--ncc-ink);
	cursor: pointer;
	display: flex;
	font-size: 0.86rem;
	font-weight: 600;
	gap: 10px;
	min-height: 42px;
	padding: 9px 11px;
	transition: background-color var(--ncc-motion), border-color var(--ncc-motion), box-shadow var(--ncc-motion), color var(--ncc-motion);
}

.ncc-print-option:hover,
.ncc-print-option:has(input:checked) {
	border-color: #131313;
	box-shadow: inset 0 0 0 1px #131313;
}

.ncc-print-option:has(input:disabled) {
	background: #f4f4f4;
	border-color: var(--ncc-line);
	box-shadow: none;
	color: #8a8a8a;
	cursor: not-allowed;
}

.ncc-print-option input {
	accent-color: var(--ncc-accent);
	flex: 0 0 auto;
	height: 16px;
	margin: 0;
	width: 16px;
}

.ncc-print-option span {
	text-transform: uppercase;
}

.ncc-add-zone {
	display: grid;
	gap: 10px;
}

.ncc-add-split {
	background: transparent;
	border: 0;
	border-radius: 0;
	display: grid;
	gap: 7px;
	grid-template-columns: 1fr;
	overflow: visible;
}

.ncc-add-segment {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--ncc-line);
	border-radius: 8px;
	box-shadow: 0 1px 0 rgba(19, 19, 19, 0.04);
	color: var(--ncc-ink);
	display: flex;
	font-size: 0.92rem;
	font-weight: 900;
	gap: 10px;
	justify-content: flex-start;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: 46px;
	overflow: hidden;
	padding: 11px 13px;
	position: relative;
	text-align: left;
	text-transform: none;
	transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
	width: 100%;
}

.ncc-add-label {
	letter-spacing: 0.045em;
	text-transform: uppercase;
}

.ncc-add-segment-image {
	background: var(--ncc-ink);
	border-color: var(--ncc-ink);
	box-shadow: 0 8px 18px rgba(19, 19, 19, 0.12);
	color: #ffffff;
}

.ncc-add-segment-text {
	background: #f8f8f8;
	border-color: var(--ncc-ink);
	box-shadow: inset 0 0 0 1px rgba(19, 19, 19, 0.08);
}

.ncc-add-segment:hover,
.ncc-add-segment:focus-visible,
.ncc-add-segment:focus-within {
	background: var(--ncc-ink);
	border-color: var(--ncc-ink);
	box-shadow: 0 10px 22px rgba(19, 19, 19, 0.16);
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.ncc-add-segment:active {
	box-shadow: 0 3px 10px rgba(19, 19, 19, 0.12);
	transform: translateY(0);
}

.ncc-add-segment input {
	cursor: pointer;
	height: 100%;
	inset: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
}

.ncc-add-segment span {
	pointer-events: none;
}

.ncc-add-icon {
	background: #f4f4f4;
	border: 2px solid currentColor;
	border-radius: 6px;
	display: inline-block;
	flex: 0 0 auto;
	height: 22px;
	position: relative;
	transition: background 160ms ease;
	width: 22px;
}

.ncc-add-segment-image .ncc-add-icon {
	background: rgba(255, 255, 255, 0.14);
}

.ncc-add-segment:hover .ncc-add-icon,
.ncc-add-segment:focus-visible .ncc-add-icon,
.ncc-add-segment:focus-within .ncc-add-icon {
	background: rgba(255, 255, 255, 0.14);
}

.ncc-add-segment-image .ncc-add-icon::before {
	background: currentColor;
	border-radius: 999px;
	content: "";
	height: 4px;
	position: absolute;
	right: 4px;
	top: 4px;
	width: 4px;
}

.ncc-add-segment-image .ncc-add-icon::after {
	border-bottom: 7px solid currentColor;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	bottom: 3px;
	content: "";
	left: 3px;
	position: absolute;
	width: 0;
}

.ncc-add-segment-text .ncc-add-icon {
	align-items: center;
	display: inline-flex;
	font-size: 17px;
	font-weight: 950;
	justify-content: center;
}

.ncc-add-segment-text .ncc-add-icon::before {
	content: "T";
}

.ncc-add-label {
	display: inline-block;
	font-size: inherit;
	line-height: inherit;
	min-width: 0;
	white-space: normal;
}

.ncc-submit:hover {
	transform: translateY(-1px);
}

.ncc-add-row {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
}

.ncc-layer-list {
	display: grid;
	gap: 5px;
	max-height: clamp(104px, 21svh, 188px);
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-gutter: stable;
}

.ncc-layer-item {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--ncc-line);
	border-radius: 6px;
	color: var(--ncc-ink);
	display: grid;
	gap: 6px;
	grid-template-columns: 12px minmax(0, 1fr) 22px;
	min-height: 36px;
	opacity: 0.78;
	padding: 4px 5px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
	touch-action: pan-y;
	user-select: none;
	width: 100%;
}

.ncc-layer-item:hover,
.ncc-layer-item.is-hovered,
.ncc-layer-item.is-active {
	background: #ffffff;
	border-color: #131313;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
	opacity: 1;
}

.ncc-layer-item.is-dragging {
	opacity: 0.46;
}

.ncc-layer-item.is-drop-target {
	border-color: #131313;
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.ncc-layer-grip {
	align-self: stretch;
	background-image: radial-gradient(circle, #b8b8b8 1px, transparent 1.5px);
	background-position: center;
	background-size: 4px 6px;
	border-radius: 4px;
	cursor: grab;
	display: block;
	opacity: 0.5;
	touch-action: none;
}

.ncc-layer-item.is-dragging .ncc-layer-grip {
	cursor: grabbing;
}

.ncc-layer-preview {
	appearance: none;
	align-items: center;
	background: #fbfbfb;
	border: 1px solid #ededed;
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 8px;
	height: 30px;
	overflow: hidden;
	padding: 0 8px;
	text-align: left;
	width: 100%;
}

.ncc-layer-preview.is-light {
	background: #ffffff;
}

.ncc-layer-preview:focus-visible,
.ncc-layer-delete-inline:focus-visible {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
	outline: none;
}

.ncc-layer-preview-text {
	display: block;
	color: var(--ncc-ink);
	font-size: 0.78rem;
	font-weight: 760;
	line-height: 1.1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.ncc-layer-preview-image {
	background-color: #f6f6f6;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	flex: 0 0 24px;
	display: block;
	height: 20px;
	width: 24px;
}

.ncc-layer-preview-type {
	align-items: center;
	background: #f3f3f3;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	color: var(--ncc-muted);
	display: inline-flex;
	flex: 0 0 24px;
	font-size: 0.68rem;
	font-weight: 900;
	height: 20px;
	justify-content: center;
	line-height: 1;
	width: 24px;
}

.ncc-layer-delete-inline {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--ncc-danger);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 16px;
	font-weight: 900;
	height: 22px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	opacity: 0.56;
	width: 22px;
}

.ncc-layer-delete-inline:hover {
	background: rgba(180, 41, 58, 0.1);
	border-color: rgba(180, 41, 58, 0.22);
	color: var(--ncc-danger);
	opacity: 1;
}

.ncc-layer-delete-inline:disabled {
	cursor: not-allowed;
	opacity: 0.34;
}

.ncc-ghost-button {
	background: transparent;
	color: #25302b;
	font-weight: 800;
	padding: 10px 12px;
}

.ncc-ghost-button:hover {
	background: #f6f6f6;
	border-color: #131313;
}

.ncc-ghost-button:disabled {
	cursor: not-allowed;
	opacity: 0.48;
	transform: none;
}

.ncc-field {
	color: var(--ncc-muted);
	display: grid;
	font-size: 0.78rem;
	font-weight: 800;
	gap: 6px;
}

.ncc-field input,
.ncc-field select,
.ncc-field textarea {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--ncc-line);
	border-radius: 8px;
	color: var(--ncc-ink);
	font: inherit;
	font-size: 0.96rem;
	font-weight: 650;
	min-height: 42px;
	outline: none;
	padding: 10px 12px;
	width: 100%;
}

.ncc-field textarea {
	min-height: 82px;
	resize: vertical;
}

.ncc-field input:focus,
.ncc-field select:focus,
.ncc-field textarea:focus {
	border-color: #131313;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.ncc-preview {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	padding: 0;
}

.ncc-editor-stage {
	align-items: stretch;
	background: #f6f6f6;
	display: grid;
	grid-column: 1;
	grid-row: 1;
	grid-template-columns: minmax(0, 1fr) var(--ncc-side-panel-width);
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.ncc-card-area {
	align-self: stretch;
	display: grid;
	gap: 10px;
	grid-column: 1;
	grid-template-rows: auto minmax(0, 1fr);
	min-height: 0;
	min-width: 0;
	padding: 22px 24px 14px;
	position: relative;
}

.ncc-side-controls {
	align-items: center;
	display: block;
	min-height: 75px;
	padding-right: 125px;
	position: relative;
}

.ncc-side-picker {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--ncc-line);
	border-radius: 999px;
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 0;
	justify-content: center;
	left: 50%;
	max-width: 100%;
	overflow: visible;
	padding: 2px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.ncc-reverse-same {
	align-items: center;
	background: #ffffff;
	border: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--ncc-ink);
	display: inline-flex;
	gap: 8px;
	font-size: 0.76rem;
	font-weight: 750;
	line-height: 1.2;
	max-width: 0;
	min-height: 32px;
	opacity: 0;
	overflow: hidden;
	padding: 7px 0;
	pointer-events: none;
	position: absolute;
	left: calc(100% + 10px);
	top: 50%;
	transform: translate(-8px, -50%);
	transition: max-width 220ms ease, opacity 180ms ease, padding 220ms ease, transform 220ms ease, border-color 180ms ease;
	white-space: nowrap;
}

.ncc-reverse-same.is-visible {
	border-color: var(--ncc-line);
	max-width: 190px;
	opacity: 1;
	padding: 7px 10px;
	pointer-events: auto;
	transform: translate(0, -50%);
}

.ncc-reverse-same[aria-hidden="true"] input {
	visibility: hidden;
}

.ncc-reverse-same input {
	accent-color: var(--ncc-accent);
	height: 16px;
	width: 16px;
}

.ncc-side-switch {
	align-items: center;
	background: #ffffff;
	border: 0;
	border-radius: 999px;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
}

.ncc-side-switch[hidden] {
	display: none;
}

.ncc-side-switch button {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--ncc-muted);
	cursor: pointer;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	min-height: 32px;
	min-width: 96px;
	padding: 7px 12px;
}

.ncc-side-switch button + button {
	border-left: 1px solid var(--ncc-line);
}

.ncc-side-switch button.is-active {
	background: #131313;
	color: #ffffff;
}

.ncc-side-switch button.is-required,
.ncc-side-switch button.is-required.is-active {
	background: #fff1f2;
	box-shadow: inset 0 0 0 2px var(--ncc-danger);
	color: var(--ncc-danger);
}

.ncc-side-required-hint {
	color: var(--ncc-danger);
	font-size: 0.74rem;
	font-weight: 750;
	left: 50%;
	line-height: 1.35;
	margin: 0;
	max-width: 430px;
	position: absolute;
	text-align: center;
	top: calc(50% + 24px);
	transform: translateX(-50%);
	width: max-content;
	z-index: 4;
}

.ncc-side-required-hint[hidden] {
	display: none;
}

.ncc-snap-toggle {
	align-items: center;
	background: rgba(255, 255, 255, 0.9);
	border-color: var(--ncc-line);
	color: var(--ncc-ink);
	display: inline-flex;
	height: 34px;
	justify-content: center;
	min-height: 34px;
	padding: 0;
	width: 34px;
}

.ncc-history-controls .ncc-snap-toggle {
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ncc-snap-toggle:hover,
.ncc-snap-toggle:focus-visible,
.ncc-snap-toggle.is-active {
	background: var(--ncc-accent);
	border-color: var(--ncc-accent);
	color: #ffffff;
	outline: none;
}

.ncc-snap-icon {
	background-image:
		linear-gradient(currentColor 1px, transparent 1px),
		linear-gradient(90deg, currentColor 1px, transparent 1px);
	background-size: 6px 6px;
	border: 1px solid currentColor;
	border-radius: 3px;
	display: block;
	height: 17px;
	opacity: 0.78;
	width: 17px;
}

.ncc-canvas-frame {
	align-items: center;
	container-type: size;
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 0;
	overscroll-behavior: contain;
	overflow: hidden;
	padding: clamp(10px, 1.2vw, 18px);
	perspective: 1200px;
	position: relative;
	width: 100%;
}

.ncc-history-controls {
	--ncc-view-tools-width: 138px;
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: 7px;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 8;
}

.ncc-history-primary {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: var(--ncc-view-tools-width);
}

.ncc-history-primary > .ncc-snap-toggle {
	width: 100%;
}

.ncc-zoom-control {
	background: #ffffff;
	border: 1px solid var(--ncc-line);
	border-radius: 4px;
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 38px;
	overflow: hidden;
	position: relative;
	width: var(--ncc-view-tools-width);
}

.ncc-zoom-out-icon,
.ncc-zoom-in-icon {
	fill: none;
	height: 19px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.75;
	width: 19px;
}

.ncc-zoom-button {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 0;
	color: var(--ncc-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 1.08rem;
	font-weight: 600;
	justify-content: center;
	min-height: 32px;
	padding: 0;
}

.ncc-zoom-button + .ncc-zoom-value,
.ncc-zoom-value + .ncc-zoom-button {
	border-left: 1px solid var(--ncc-line);
}

.ncc-zoom-button:hover:not(:disabled) {
	background: #f6f6f6;
}

.ncc-zoom-button:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.ncc-zoom-value {
	align-items: center;
	display: grid;
	grid-template-columns: minmax(42px, 1fr) auto;
	min-width: 0;
}

.ncc-zoom-value input {
	appearance: textfield;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--ncc-ink);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	min-width: 0;
	outline: 0;
	padding: 0 2px 0 7px;
	text-align: right;
	width: 100%;
}

.ncc-zoom-value input::-webkit-inner-spin-button,
.ncc-zoom-value input::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}

.ncc-zoom-value > span:last-child {
	font-size: 0.68rem;
	padding-right: 7px;
}

.ncc-history-button {
	align-items: center;
	background: rgba(255, 255, 255, 0.94);
	border-color: var(--ncc-line);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	color: var(--ncc-ink);
	display: inline-flex;
	font-size: 1.1rem;
	font-weight: 950;
	height: 34px;
	justify-content: center;
	line-height: 1;
	min-height: 34px;
	padding: 0;
	width: 100%;
}

.ncc-history-button:hover:not(:disabled),
.ncc-history-button:focus-visible:not(:disabled) {
	background: var(--ncc-accent);
	border-color: var(--ncc-accent);
	color: #ffffff;
	outline: none;
	transform: translateY(-1px);
}

.ncc-history-button:disabled {
	cursor: not-allowed;
	opacity: 0.38;
	transform: none;
}

.ncc-canvas-frame::before {
	align-items: center;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid rgba(215, 255, 88, 0.42);
	border-radius: 8px;
	color: #183b33;
	content: "Ładowanie podglądu...";
	display: none;
	font-size: 0.96rem;
	font-weight: 900;
	inset: 18px;
	justify-content: center;
	letter-spacing: 0;
	position: absolute;
	z-index: 6;
}

.ncc-canvas-frame::after {
	align-items: center;
	background: rgba(19, 19, 19, 0.88);
	border: 2px dashed rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	color: #ffffff;
	content: "Przeciągnij tutaj";
	display: none;
	font-size: 1.05rem;
	font-weight: 900;
	inset: 18px;
	justify-content: center;
	position: absolute;
	z-index: 5;
}

.ncc-creator.is-render-loading-initial .ncc-canvas-frame::before {
	display: flex;
}

.ncc-creator.is-file-dragging .ncc-canvas-frame::after {
	display: flex;
	z-index: 7;
}

.ncc-card-canvas-shell {
	aspect-ratio: 2022 / 1275;
	filter: drop-shadow(0 28px 34px rgba(12, 18, 16, 0.32));
	max-height: calc(100% - 64px);
	max-width: min(calc(100% - 68px), 1140px);
	position: relative;
	width: min(calc(100% - 68px), 1140px, calc(158.6cqh - 102px));
	z-index: 1;
	transform-origin: center center;
	transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.ncc-grid-overlay {
	display: block;
	max-width: none;
	pointer-events: none;
	position: absolute;
	z-index: 3;
}

.ncc-interaction-overlay {
	aspect-ratio: auto;
	display: block;
	max-width: none;
	pointer-events: none;
	position: absolute;
	touch-action: none;
	-webkit-touch-callout: none;
	user-select: none;
	-webkit-user-select: none;
	z-index: 4;
}

.ncc-grid-overlay[hidden] {
	display: none;
}

.ncc-creator.is-card-interacting .ncc-card-canvas-shell {
	transition: none;
}

.ncc-creator.is-grid-snap-enabled .ncc-card-canvas-shell {
	filter:
		drop-shadow(0 28px 34px rgba(12, 18, 16, 0.32))
		drop-shadow(0 0 14px rgba(215, 255, 88, 0.32));
}

.ncc-creator.is-grid-snap-enabled .ncc-card-canvas-shell::after {
	border: 1px solid rgba(215, 255, 88, 0.58);
	border-radius: 8px;
	content: "";
	inset: -5px;
	pointer-events: none;
	position: absolute;
}

.ncc-card-canvas-shell canvas {
	aspect-ratio: 2022 / 1275;
	cursor: grab;
	display: block;
	height: auto;
	touch-action: none;
	-webkit-touch-callout: none;
	user-select: none;
	-webkit-user-select: none;
	width: 100%;
}

.ncc-creator.is-render-loading-initial .ncc-card-canvas-shell canvas {
	opacity: 0;
}

.ncc-card-spec {
	color: rgba(102, 113, 108, 0.82);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.35;
	bottom: 4px;
	left: clamp(16px, 2vw, 24px);
	margin: 0;
	pointer-events: none;
	position: absolute;
	right: clamp(16px, 2vw, 24px);
	text-align: center;
}

.ncc-card-canvas-shell canvas:active {
	cursor: grabbing;
}

.ncc-object-tools {
	--ncc-tool-label-width: 112px;
	align-self: stretch;
	background: #fbfbfb;
	border: 0;
	border-left: 1px solid var(--ncc-line);
	border-radius: 0;
	box-shadow: none;
	display: grid;
	gap: 8px;
	grid-auto-rows: max-content;
	grid-column: 2;
	grid-row: 1;
	height: 100%;
	max-height: none;
	min-height: 0;
	overflow-y: auto;
	padding: 14px;
	scrollbar-gutter: stable;
	width: 100%;
}

.ncc-object-tools[hidden],
.ncc-object-tools.is-hidden {
	display: none;
}

.ncc-object-tools.is-hidden {
	pointer-events: none;
	visibility: hidden;
}

.ncc-tool-field {
	align-items: center;
	color: var(--ncc-muted);
	display: grid;
	font-size: 0.72rem;
	font-weight: 760;
	gap: 10px;
	grid-template-columns: var(--ncc-tool-label-width) minmax(0, 1fr);
	line-height: 1.2;
	min-height: 30px;
	min-width: 0;
}

.ncc-tool-field > span {
	min-width: 0;
	overflow-wrap: normal;
	white-space: nowrap;
}

.ncc-layer-name-field {
	border-bottom: 1px solid var(--ncc-line);
	margin-bottom: 2px;
	padding-bottom: 8px;
}

.ncc-layer-name-field[hidden] {
	display: none;
}

.ncc-object-layer-panel {
	border-bottom: 1px solid var(--ncc-line);
	display: grid;
	gap: 7px;
	margin-bottom: 2px;
	padding-bottom: 10px;
}

.ncc-object-layer-panel-title {
	color: var(--ncc-muted);
	font-size: 0.68rem;
	font-weight: 760;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ncc-editor-menu {
	display: grid;
	gap: 8px;
	padding-top: 2px;
}

.ncc-editor-menu[hidden] {
	display: none;
}

.ncc-tool-field input[type="text"],
.ncc-tool-field input[type="number"],
.ncc-tool-field select {
	background: #ffffff;
	border: 1px solid #dedede;
	border-radius: 6px;
	color: var(--ncc-ink);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 760;
	height: 34px;
	min-height: 34px;
	min-width: 0;
	outline: none;
	padding: 5px 8px;
	width: 100%;
}

.ncc-tool-field input[type="color"] {
	background: #ffffff;
	border: 1px solid #dedede;
	border-radius: 6px;
	height: 34px;
	min-width: 44px;
	padding: 2px;
	width: 100%;
}

.ncc-tool-value,
.ncc-axis-control {
	align-items: center;
	background: #ffffff;
	border: 1px solid #dedede;
	border-radius: 6px;
	display: grid;
	height: 34px;
	min-height: 34px;
	min-width: 0;
	overflow: hidden;
}

.ncc-tool-value {
	grid-template-columns: minmax(0, 1fr) auto;
}

.ncc-tool-value input[type="number"],
.ncc-axis-control input[type="number"] {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	height: 32px;
	min-height: 32px;
	padding: 4px 6px;
	text-align: right;
}

.ncc-tool-value > span,
.ncc-axis-control > span {
	align-items: center;
	align-self: stretch;
	background: #f1f1f1;
	color: #555;
	display: inline-flex;
	font-size: 0.68rem;
	font-weight: 820;
	justify-content: center;
	line-height: 1;
	min-width: 28px;
	padding: 0 6px;
	white-space: nowrap;
}

.ncc-tool-value > span {
	border-left: 1px solid #dedede;
}

.ncc-tool-axis-row {
	align-items: center;
	color: var(--ncc-muted);
	display: grid;
	font-size: 0.72rem;
	font-weight: 760;
	gap: 6px;
	grid-template-columns: var(--ncc-tool-label-width) repeat(2, minmax(0, 1fr));
	line-height: 1.2;
	min-height: 30px;
	min-width: 0;
}

.ncc-tool-axis-title {
	color: var(--ncc-muted);
	grid-column: auto;
	font-weight: 760;
	min-width: 0;
	white-space: nowrap;
}

.ncc-size-title {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: flex-start;
}

.ncc-ratio-toggle {
	align-items: center;
	background: #ffffff;
	border: 1px solid #dedede;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 26px;
	justify-content: center;
	width: 28px;
}

.ncc-ratio-toggle input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ncc-ratio-toggle:has(input:checked) {
	background: var(--ncc-ink);
	border-color: var(--ncc-ink);
	color: #ffffff;
}

.ncc-ratio-toggle:focus-within {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.ncc-ratio-icon {
	fill: none;
	height: 16px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 16px;
}

.ncc-axis-control {
	grid-template-columns: 25px minmax(0, 1fr) 34px;
}

.ncc-axis-control > span:first-child {
	border-right: 1px solid #dedede;
}

.ncc-axis-control > span:last-child {
	border-left: 1px solid #dedede;
}

.ncc-tool-check {
	align-items: center;
	color: #26302b;
	display: grid;
	font-size: 0.74rem;
	font-weight: 850;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
	line-height: 1.25;
	min-height: 28px;
}

.ncc-tool-check input {
	accent-color: var(--ncc-accent);
	grid-column: 2;
	grid-row: 1;
	height: 16px;
	justify-self: start;
	width: 16px;
}

.ncc-tool-check span {
	grid-column: 1;
	grid-row: 1;
}

.ncc-order {
	background: #ffffff;
	border: 0;
	border-radius: 0;
	border-top: 1px solid var(--ncc-line);
	display: grid;
	gap: 10px;
	grid-column: 1;
	grid-row: 2;
	min-width: 0;
	padding: 14px 24px 16px;
}

.ncc-order-layout {
	align-items: stretch;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
	min-width: 0;
}

.ncc-order-fields,
.ncc-order-side {
	display: grid;
	gap: 9px;
	min-width: 0;
}

.ncc-order-fields {
	background: #f6f6f6;
	border: 1px solid var(--ncc-line);
	border-radius: 4px;
	padding: 12px 14px;
}

.ncc-order-side {
	align-content: space-between;
	height: 100%;
}

.ncc-order-fields-inline {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) 128px;
	min-width: 0;
}

.ncc-order .ncc-field {
	line-height: 1.3;
}

.ncc-order .ncc-field input,
.ncc-order .ncc-field textarea {
	min-height: 38px;
	padding: 8px 10px;
}

.ncc-order-notes textarea {
	height: 64px;
	min-height: 64px;
}

.ncc-order-summary {
	align-content: start;
	background: linear-gradient(135deg, #f7f8f7 0%, #f0f3f1 100%);
	border: 1px solid #d9dfdb;
	border-radius: 12px;
	color: #131313;
	display: grid;
	gap: 6px;
	box-sizing: border-box;
	line-height: 1.35;
	min-height: 0;
	min-width: 0;
	padding: 12px 14px;
}

.ncc-order-summary[hidden] {
	display: none;
}

.ncc-order-summary-title {
	color: #131313;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ncc-order-summary-line,
.ncc-order-summary-total {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.ncc-price-loader {
	animation: ncc-price-loader-spin 700ms linear infinite;
	border: 2px solid rgba(38, 48, 43, 0.16);
	border-radius: 50%;
	border-top-color: var(--ncc-accent);
	box-sizing: border-box;
	display: inline-block;
	height: 18px;
	width: 18px;
}

@keyframes ncc-price-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ncc-price-loader {
		animation-duration: 1400ms;
	}
}

.ncc-order-summary-line {
	color: #131313;
	font-size: 0.82rem;
}

.ncc-order-summary-total {
	border-top: 1px solid #dfe3e0;
	color: #131313;
	font-size: 0.94rem;
	font-weight: 850;
	padding-top: 9px;
}

.ncc-creator .ncc-order-summary :where(span, strong) {
	color: #131313;
}

.ncc-order-actions {
	display: grid;
	gap: 8px;
	width: 100%;
}

.ncc-design-confirmation {
	align-items: center;
	background: #f6f6f6;
	border: 1px solid var(--ncc-line);
	border-radius: 4px;
	color: var(--ncc-ink);
	cursor: pointer;
	display: flex;
	font-size: 0.76rem;
	font-weight: 650;
	gap: 9px;
	line-height: 1.25;
	min-height: 36px;
	padding: 8px 11px;
	width: 100%;
}

.ncc-design-confirmation input {
	accent-color: var(--ncc-ink);
	flex: 0 0 auto;
	height: 16px;
	margin: 0;
	width: 16px;
}

.ncc-design-confirmation:focus-within {
	border-color: var(--ncc-ink);
	box-shadow: inset 0 0 0 1px var(--ncc-ink);
}

.ncc-submit-row {
	align-items: stretch;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(250px, 1fr) minmax(390px, 1.15fr);
}

.ncc-submit-actions {
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
	width: 100%;
}

.ncc-submit {
	background: #101412;
	border-color: #101412;
	color: #ffffff;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: 36px;
	padding: 8px 12px;
	text-transform: none;
	width: 100%;
	white-space: nowrap;
}

.ncc-submit-cart {
	background: #ffffff;
	border-color: #131313;
	color: #131313;
}

.ncc-submit-checkout {
	background: #131313;
	border-color: #131313;
	color: #ffffff;
}

.ncc-submit-cart:hover,
.ncc-submit-cart:focus-visible {
	background: #f6f6f6;
	outline: none;
}

.ncc-submit-checkout:hover,
.ncc-submit-checkout:focus-visible {
	background: #000000;
	outline: none;
}

.ncc-submit:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

.ncc-message {
	background: #ffffff;
	border: 1px solid var(--ncc-line);
	border-left: 4px solid var(--ncc-ink);
	border-radius: 4px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
	color: var(--ncc-ink);
	cursor: pointer;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.45;
	max-width: min(420px, calc(100vw - 32px));
	padding: 14px 38px 14px 16px;
	position: fixed;
	right: 24px;
	top: 82px;
	z-index: 10050;
}

.ncc-message::after {
	color: var(--ncc-muted);
	content: "×";
	font-size: 1.15rem;
	position: absolute;
	right: 13px;
	top: 9px;
}

.ncc-message[hidden] {
	display: none;
}

.ncc-message.is-success {
	border-left-color: #0d7557;
}

.ncc-message.is-error {
	border-left-color: var(--ncc-danger);
}

.ncc-trap {
	height: 0 !important;
	left: -9999px !important;
	opacity: 0 !important;
	position: absolute !important;
	width: 0 !important;
}

@media (max-width: 1180px) {
	.ncc-creator {
		--ncc-window-height: auto;
		width: min(100%, calc(100vw - 24px));
	}

	.ncc-workbench {
		grid-template-columns: 1fr;
		height: auto;
		min-height: auto;
	}

	.ncc-controls {
		border-bottom: 1px solid var(--ncc-line);
		border-right: 0;
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.ncc-materials {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ncc-preview {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		height: auto;
		min-height: auto;
		overflow: visible;
	}

	.ncc-editor-stage {
		display: grid;
		grid-column: 1;
		grid-row: 1;
		grid-template-columns: 1fr;
		min-height: auto;
		overflow: visible;
		padding: 0;
	}

	.ncc-card-area {
		padding: 18px;
	}

	.ncc-object-tools {
		border-left: 0;
		border-top: 1px solid var(--ncc-line);
		grid-column: 1;
		grid-row: 2;
		height: auto;
		max-height: min(440px, calc(100svh - 140px));
		padding: 16px 18px;
		width: 100%;
	}

	.ncc-object-tools.is-hidden {
		display: none;
	}

	.ncc-order {
		grid-column: 1;
		grid-row: 2;
		padding: 16px 18px 18px;
	}

	.ncc-side-controls {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		justify-content: center;
		padding-right: 0;
	}

	.ncc-canvas-frame {
		min-height: 260px;
		padding: 8px 0;
	}

	.ncc-history-controls {
		margin-left: auto;
		position: static;
		transform: none;
	}

	.ncc-side-picker {
		justify-content: flex-start;
		left: auto;
		position: static;
		top: auto;
		transform: none;
		overflow: hidden;
	}

	.ncc-side-required-hint {
		flex: 0 0 100%;
		max-width: 100%;
		order: 3;
		position: static;
		transform: none;
		width: 100%;
	}

	.ncc-reverse-same {
		left: auto;
		position: static;
		top: auto;
		transform: translateX(-8px);
	}

	.ncc-reverse-same.is-visible {
		transform: translateX(0);
	}
}

@media (max-width: 760px) {
	.ncc-order-layout {
		grid-template-columns: 1fr;
	}

	.ncc-history-controls {
		align-items: center;
		flex-direction: row;
		gap: 6px;
	}

	.ncc-history-primary {
		gap: 4px;
		width: 104px;
	}

	.ncc-zoom-control {
		grid-template-columns: 30px minmax(0, 1fr) 30px;
		height: 30px;
		width: 130px;
	}

	.ncc-history-button,
	.ncc-history-primary > .ncc-snap-toggle {
		height: 30px;
		min-height: 30px;
	}

	.ncc-zoom-button {
		min-height: 28px;
	}

	.ncc-zoom-value,
	.ncc-zoom-value input {
		height: 28px;
		min-height: 28px;
	}

	.ncc-snap-icon {
		height: 15px;
		width: 15px;
	}

	.ncc-zoom-out-icon,
	.ncc-zoom-in-icon {
		height: 17px;
		width: 17px;
	}
}

@media (max-width: 560px) {
	.ncc-creator {
		margin: 18px auto;
		width: min(100%, calc(100vw - 16px));
	}

	.ncc-controls {
		padding: 14px;
	}

	.ncc-card-area,
	.ncc-object-tools,
	.ncc-order {
		padding-left: 14px;
		padding-right: 14px;
	}

	.ncc-side-controls {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		justify-content: center;
		justify-items: center;
	}

	.ncc-side-picker {
		border-radius: 8px;
		display: grid;
		justify-items: stretch;
		width: 100%;
		left: auto;
		margin: 0 auto;
		position: static;
		transform: none;
	}

	.ncc-side-switch {
		width: 100%;
	}

	.ncc-side-switch button {
		min-width: 0;
		text-align: center;
	}

	.ncc-history-controls {
		justify-self: center;
		margin: 0;
	}

	.ncc-reverse-same {
		border-left: 0;
		border-top: 1px solid var(--ncc-line);
		border-top-color: transparent;
		justify-content: center;
		max-height: 0;
		max-width: none;
		padding: 0 10px;
		position: static;
		transform: translateY(-6px);
		transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease, transform 220ms ease, border-color 180ms ease;
		width: 100%;
	}

	.ncc-reverse-same.is-visible {
		border-top-color: var(--ncc-line);
		max-height: 40px;
		max-width: none;
		padding: 7px 10px;
		transform: translateY(0);
	}

	.ncc-materials,
	.ncc-order-grid,
	.ncc-submit-row,
	.ncc-submit-actions,
	.ncc-add-row,
	.ncc-add-split {
		grid-template-columns: 1fr;
	}

	.ncc-tool-field {
		grid-template-columns: var(--ncc-tool-label-width) minmax(0, 1fr);
	}

	.ncc-tool-axis-row {
		gap: 6px;
		grid-template-columns: var(--ncc-tool-label-width) repeat(2, minmax(0, 1fr));
	}

	.ncc-axis-control {
		grid-template-columns: 23px minmax(0, 1fr) 32px;
	}

	.ncc-tool-value > span,
	.ncc-axis-control > span {
		min-width: 22px;
		padding: 0 4px;
	}

	.ncc-tool-check {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ncc-submit {
		width: 100%;
	}
}

/* Keep the creator in the same visual system as the Touch storefront. */
.ncc-creator {
	--ncc-line: rgba(0, 0, 0, 0.14);
	--ncc-muted: #666666;
	--ncc-motion: 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
	font-family: "Manrope", sans-serif;
	font-weight: 400;
}

.ncc-workbench {
	border-color: var(--ncc-line);
	border-radius: 4px;
	box-shadow: none;
	animation: ncc-workbench-in 400ms ease both;
}

.ncc-controls {
	gap: 0;
	padding: 0 24px;
}

.ncc-control-group {
	gap: 14px;
	padding: 24px 0;
}

.ncc-control-group + .ncc-control-group {
	border-top: 1px solid var(--ncc-line);
}

.ncc-group-title,
.ncc-order-summary-title {
	font-weight: 600;
	letter-spacing: 0.12em;
}

.ncc-material,
.ncc-add-segment,
.ncc-ghost-button,
.ncc-submit,
.ncc-snap-toggle,
.ncc-history-button {
	border-radius: 4px;
	font-weight: 600;
	transition: background-color var(--ncc-motion), border-color var(--ncc-motion),
		box-shadow var(--ncc-motion), color var(--ncc-motion), transform var(--ncc-motion);
}

.ncc-material {
	font-weight: 600;
}

.ncc-material:hover,
.ncc-material.is-active,
.ncc-layer-item:hover,
.ncc-layer-item.is-hovered,
.ncc-layer-item.is-active {
	box-shadow: inset 0 0 0 1px #131313;
}

.ncc-material-swatch,
.ncc-add-icon,
.ncc-layer-item,
.ncc-layer-preview,
.ncc-layer-preview-image,
.ncc-layer-preview-type,
.ncc-field input,
.ncc-field select,
.ncc-field textarea,
.ncc-tool-field input[type="text"],
.ncc-tool-field input[type="number"],
.ncc-tool-field select,
.ncc-tool-field input[type="color"],
.ncc-tool-value,
.ncc-axis-control,
.ncc-order-summary {
	border-radius: 4px;
}

.ncc-add-segment-image {
	box-shadow: none;
}

.ncc-add-segment-text {
	background: #ffffff;
	box-shadow: none;
}

.ncc-add-segment:hover,
.ncc-add-segment:focus-visible,
.ncc-add-segment:focus-within {
	box-shadow: none;
	transform: translateY(-2px);
}

.ncc-layer-item,
.ncc-field input,
.ncc-field select,
.ncc-field textarea {
	transition: background-color var(--ncc-motion), border-color var(--ncc-motion),
		box-shadow var(--ncc-motion), opacity var(--ncc-motion);
}

.ncc-layer-preview-text,
.ncc-field,
.ncc-tool-field,
.ncc-tool-axis-row,
.ncc-tool-check {
	font-weight: 600;
}

.ncc-field input,
.ncc-field select,
.ncc-field textarea {
	font-weight: 400;
}

.ncc-field input:focus,
.ncc-field select:focus,
.ncc-field textarea:focus {
	box-shadow: inset 0 0 0 1px #131313;
}

.ncc-card-area {
	background: #f6f6f6;
}

.ncc-side-picker,
.ncc-side-switch,
.ncc-reverse-same {
	border-radius: 4px;
}

.ncc-side-switch button,
.ncc-reverse-same {
	font-weight: 600;
	transition: background-color var(--ncc-motion), color var(--ncc-motion),
		border-color var(--ncc-motion), opacity var(--ncc-motion), transform var(--ncc-motion),
		max-width var(--ncc-motion), max-height var(--ncc-motion), padding var(--ncc-motion);
}

.ncc-history-controls .ncc-snap-toggle,
.ncc-history-button {
	box-shadow: none;
}

.ncc-card-canvas-shell,
.ncc-creator.is-grid-snap-enabled .ncc-card-canvas-shell {
	filter: none;
}

.ncc-card-canvas-shell::before {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 38%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(16, 22, 20, 0.018) 100%);
	border-radius: 5.55% / 8.78%;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.24),
		inset 0 -1px 1px rgba(12, 18, 16, 0.065);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.ncc-card-canvas-shell > canvas[data-ncc-canvas] {
	border-radius: 5.55% / 8.78%;
	box-shadow:
		0 1px 2px rgba(18, 24, 22, 0.09),
		0 7px 16px -7px rgba(12, 18, 16, 0.2),
		0 22px 38px -18px rgba(12, 18, 16, 0.29),
		0 38px 62px -38px rgba(12, 18, 16, 0.22);
}

.ncc-card-spec {
	background: transparent;
	color: var(--ncc-muted);
	font-weight: 400;
	padding-top: 0;
	z-index: 0;
}

.ncc-object-tools {
	background: #ffffff;
	gap: 8px;
	padding: 18px;
	position: relative;
	z-index: 20;
}

.ncc-layer-name-field {
	padding-bottom: 12px;
}

.ncc-order-summary {
	background: #f6f6f6;
	border-color: var(--ncc-line);
}

.ncc-submit:hover,
.ncc-submit:focus-visible {
	transform: translateY(-2px);
}

/* Keep every button variant legible without swapping its visual role on hover. */
.ncc-creator .ncc-add-segment-image:hover,
.ncc-creator .ncc-add-segment-image:focus-visible,
.ncc-creator .ncc-add-segment-image:focus-within {
	background: #292929;
	border-color: #131313;
	color: #ffffff;
}

.ncc-creator .ncc-add-segment-text:hover,
.ncc-creator .ncc-add-segment-text:focus-visible,
.ncc-creator .ncc-add-segment-text:focus-within {
	background: #f1f1f1;
	border-color: #131313;
	color: #131313;
}

.ncc-creator .ncc-add-segment .ncc-add-label,
.ncc-creator .ncc-add-segment .ncc-add-icon {
	color: inherit;
}

.ncc-creator .ncc-add-segment-text:hover .ncc-add-icon,
.ncc-creator .ncc-add-segment-text:focus-visible .ncc-add-icon,
.ncc-creator .ncc-add-segment-text:focus-within .ncc-add-icon {
	background: #ffffff;
}

.ncc-creator .ncc-add-segment-image:hover .ncc-add-icon,
.ncc-creator .ncc-add-segment-image:focus-visible .ncc-add-icon,
.ncc-creator .ncc-add-segment-image:focus-within .ncc-add-icon {
	background: rgba(255, 255, 255, 0.18);
}

.ncc-creator .ncc-submit-cart:hover,
.ncc-creator .ncc-submit-cart:focus-visible {
	background: #f1f1f1;
	border-color: #131313;
	color: #131313;
	outline: none;
}

.ncc-creator .ncc-submit-checkout:hover,
.ncc-creator .ncc-submit-checkout:focus-visible {
	background: #292929;
	border-color: #292929;
	color: #ffffff;
	outline: none;
}

.ncc-creator .ncc-history-controls .ncc-snap-toggle:hover:not(.is-active),
.ncc-creator .ncc-history-controls .ncc-snap-toggle:focus-visible:not(.is-active) {
	background: #f1f1f1;
	border-color: #131313;
	color: #131313;
}

.ncc-creator .ncc-history-controls .ncc-snap-toggle.is-active,
.ncc-creator .ncc-history-controls .ncc-snap-toggle.is-active:hover,
.ncc-creator .ncc-history-controls .ncc-snap-toggle.is-active:focus-visible {
	background: #131313;
	border-color: #131313;
	color: #ffffff;
}

.ncc-creator .ncc-snap-icon {
	color: inherit;
}

.ncc-creator .ncc-ratio-toggle {
	color: #131313;
	transition: background-color var(--ncc-motion), border-color var(--ncc-motion),
		box-shadow var(--ncc-motion), color var(--ncc-motion);
}

.ncc-creator .ncc-ratio-toggle:hover,
.ncc-creator .ncc-ratio-toggle:focus-within,
.ncc-creator .ncc-ratio-toggle:has(input:checked) {
	background: #131313;
	border-color: #131313;
	color: #ffffff;
}

.ncc-creator .ncc-ratio-toggle:hover {
	box-shadow: 0 0 0 3px rgba(19, 19, 19, 0.1);
}

@keyframes ncc-workbench-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1180px) {
	.ncc-side-controls {
		display: grid;
		gap: 10px;
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.ncc-side-picker,
	.ncc-history-controls {
		left: auto;
		margin: 0;
		position: static;
		right: auto;
		top: auto;
		transform: none;
	}

	.ncc-controls {
		padding: 0 20px;
	}

}

@media (max-width: 560px) {
	.ncc-creator {
		margin: 16px auto;
		width: min(100%, calc(100vw - 24px));
	}

	.ncc-controls {
		padding: 0 16px;
	}

	.ncc-control-group {
		padding: 20px 0;
	}

	.ncc-card-area,
	.ncc-object-tools,
	.ncc-order {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ncc-canvas-frame {
		overflow: visible;
		padding: 18px 4px 28px;
	}

	.ncc-card-canvas-shell::before {
		background:
			linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 40%),
			linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(16, 22, 20, 0.016) 100%);
	}

	.ncc-card-canvas-shell > canvas[data-ncc-canvas] {
		box-shadow:
			0 1px 2px rgba(18, 24, 22, 0.1),
			0 6px 13px -6px rgba(12, 18, 16, 0.2),
			0 17px 28px -15px rgba(12, 18, 16, 0.27),
			0 27px 42px -29px rgba(12, 18, 16, 0.2);
	}
}

@media (max-width: 760px) {
	.ncc-side-controls {
		justify-items: center;
		width: 100%;
	}

	.ncc-side-picker {
		box-sizing: border-box;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		justify-self: center;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		width: 240px;
	}

	.ncc-side-switch,
	.ncc-reverse-same {
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		width: 100%;
	}

	.ncc-reverse-same,
	.ncc-reverse-same.is-visible {
		align-items: center;
		justify-content: center;
		text-align: center;
		white-space: normal;
	}

	.ncc-reverse-same input {
		flex: 0 0 16px;
		margin: 0;
	}
}

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