.cnc-cutouts-app {
	--cnc-blue: #1f6bff;
	--cnc-blue-soft: #eaf1ff;
	--cnc-green: #17933b;
	--cnc-green-soft: #eaf8ee;
	--cnc-ink: #111827;
	--cnc-muted: #667085;
	--cnc-line: #d9e1ec;
	--cnc-panel: #ffffff;
	--cnc-bg: #f5f7fb;
	background: var(--cnc-bg);
	border: 1px solid #d7deea;
	border-radius: 8px;
	box-sizing: border-box;
	color: var(--cnc-ink);
	display: grid;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	grid-template-columns: minmax(0, 1fr);
	line-height: 1.35;
	margin: 24px auto;
	max-width: 1600px;
	min-height: 0;
	overflow: hidden;
	position: relative;
	width: min(1600px, calc(100vw - 32px));
}

body:has(.cnc-cutouts-app) .entry-content.wp-block-post-content,
body:has(.cnc-cutouts-app) .wp-block-post-content-is-layout-constrained,
body:has(.cnc-cutouts-app) main.wp-block-group {
	max-width: none !important;
	overflow: visible !important;
	width: 100% !important;
}

body:has(.cnc-cutouts-app) .entry-content.wp-block-post-content {
	padding-left: clamp(10px, 1.8vw, 28px) !important;
	padding-right: clamp(10px, 1.8vw, 28px) !important;
}

body:has(.cnc-cutouts-app) .is-layout-constrained > .cnc-cutouts-app {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1600px !important;
	width: min(1600px, calc(100vw - 32px)) !important;
}

.cnc-cutouts-app * {
	box-sizing: border-box;
}

.cnc-workspace {
	display: grid;
	gap: 14px;
	padding: 18px;
}

.cnc-topbar {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(220px, 1fr) minmax(230px, 330px) auto;
}

.cnc-topbar h1,
.cnc-topbar p,
.cnc-card h2,
.cnc-card p {
	margin: 0;
}

.cnc-topbar h1 {
	font-size: 24px;
	letter-spacing: 0;
	line-height: 1.12;
}

.cnc-topbar p,
.cnc-card__heading p,
.cnc-quote-card p {
	color: var(--cnc-muted);
	font-size: 13px;
}

.cnc-project-select {
	display: grid;
	gap: 5px;
}

.cnc-project-select span,
.cnc-field span,
.cnc-stepper > span,
.cnc-side-stepper > span {
	color: #344054;
	font-size: 12px;
	font-weight: 700;
}

.cnc-project-select select,
.cnc-field select,
.cnc-editor-actions select,
.cnc-stepper input {
	background: #fff;
	border: 1px solid var(--cnc-line);
	border-radius: 6px;
	color: var(--cnc-ink);
	min-height: 36px;
	padding: 0 10px;
	width: 100%;
}

.cnc-top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.cnc-btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 7px;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	gap: 8px;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	text-decoration: none;
	white-space: nowrap;
}

.cnc-btn--light {
	background: #fff;
	border-color: var(--cnc-line);
	box-shadow: 0 3px 10px rgba(16, 24, 40, 0.06);
	color: var(--cnc-ink);
}

.cnc-btn--cart {
	background: #fff;
	border-color: #bde5c6;
	color: #067a2a;
}

.cnc-btn--quote {
	background: var(--cnc-blue);
	box-shadow: 0 8px 18px rgba(31, 107, 255, 0.22);
	color: #fff;
}

.cnc-btn--wide {
	background: var(--cnc-green);
	color: #fff;
	width: 100%;
}

.cnc-layout {
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(220px, 250px) minmax(620px, 1fr) minmax(300px, 330px);
}

.cnc-left-panels,
.cnc-cost-panel {
	display: grid;
	gap: 12px;
}

.cnc-card,
.cnc-editor-card {
	background: var(--cnc-panel);
	border: 1px solid var(--cnc-line);
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(16, 24, 40, 0.04);
}

.cnc-card {
	padding: 14px;
}

.cnc-card__heading,
.cnc-editor-head {
	align-items: start;
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.cnc-card__heading h2,
.cnc-editor-head h2 {
	font-size: 16px;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
}

.cnc-card__heading > span {
	align-items: center;
	border: 1px solid #bcc7d7;
	border-radius: 50%;
	color: #7b8798;
	display: inline-flex;
	font-size: 11px;
	height: 16px;
	justify-content: center;
	width: 16px;
}

.cnc-dropzone {
	align-items: center;
	background:
		linear-gradient(#fff, #fff) padding-box,
		repeating-linear-gradient(90deg, #aeb9ca 0 8px, transparent 8px 13px) border-box;
	border: 1px dashed transparent;
	border-radius: 7px;
	cursor: pointer;
	display: grid;
	gap: 4px;
	justify-items: center;
	min-height: 120px;
	padding: 18px;
	text-align: center;
}

.cnc-dropzone input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.cnc-dropzone.is-dragging {
	background: var(--cnc-blue-soft);
}

.cnc-upload-icon {
	border: 2px solid #667085;
	border-radius: 50% 50% 42% 42%;
	height: 26px;
	position: relative;
	width: 34px;
}

.cnc-upload-icon::after {
	border-left: 2px solid #667085;
	border-top: 2px solid #667085;
	content: "";
	height: 10px;
	left: 14px;
	position: absolute;
	top: 7px;
	transform: rotate(45deg);
	width: 10px;
}

.cnc-dropzone strong {
	color: #475467;
	font-size: 13px;
}

.cnc-dropzone em,
.cnc-file-name {
	color: var(--cnc-blue);
	font-size: 12px;
	font-style: normal;
	margin: 0;
}

.cnc-format-tags {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.cnc-format-tags span {
	border-radius: 5px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	padding: 6px 9px;
}

.cnc-format-tags span:first-child {
	background: #16a34a;
}

.cnc-format-tags span:last-child {
	background: #7048e8;
}

.cnc-material-list,
.cnc-process-list {
	display: grid;
	gap: 0;
	margin-bottom: 12px;
}

.cnc-choice,
.cnc-process {
	align-items: center;
	border: 1px solid var(--cnc-line);
	cursor: pointer;
	display: grid;
	gap: 10px;
	grid-template-columns: auto 1fr auto;
	min-height: 42px;
	padding: 8px 10px;
}

.cnc-choice:first-child,
.cnc-process:first-child {
	border-radius: 7px 7px 0 0;
}

.cnc-choice:last-child,
.cnc-process:last-child {
	border-radius: 0 0 7px 7px;
}

.cnc-choice input,
.cnc-process input {
	accent-color: var(--cnc-blue);
}

.cnc-choice:has(input:checked),
.cnc-process:has(input:checked) {
	background: var(--cnc-blue-soft);
	border-color: var(--cnc-blue);
	color: #0758d7;
}

.cnc-choice.is-disabled,
.cnc-process.is-disabled {
	color: #98a2b3;
	cursor: not-allowed;
}

.cnc-swatch {
	background: linear-gradient(145deg, #f8fafc, #a8b0bb);
	border-radius: 4px;
	height: 24px;
	width: 24px;
}

.cnc-swatch--edelstahl {
	background: linear-gradient(145deg, #f8fafc, #77808c);
}

.cnc-swatch--acryl {
	background: linear-gradient(145deg, #fff, #dbeafe);
	border: 1px solid #cbd5e1;
}

.cnc-swatch--holz_birke {
	background: linear-gradient(145deg, #f7d99c, #b98234);
}

.cnc-field {
	display: grid;
	gap: 6px;
	margin-top: 10px;
}

.cnc-stepper,
.cnc-side-stepper {
	align-items: center;
	display: grid;
	gap: 0;
	grid-template-columns: 1fr 34px 44px 34px auto;
	margin-top: 10px;
}

.cnc-stepper button,
.cnc-side-stepper button,
.cnc-editor-actions button {
	background: #f8fafc;
	border: 1px solid var(--cnc-line);
	color: #334155;
	cursor: pointer;
	height: 34px;
}

.cnc-stepper input,
.cnc-side-stepper strong {
	align-items: center;
	border: 1px solid var(--cnc-line);
	border-left: 0;
	border-right: 0;
	display: flex;
	height: 34px;
	justify-content: center;
	text-align: center;
}

.cnc-stepper em,
.cnc-side-stepper em {
	color: #344054;
	font-size: 12px;
	font-style: normal;
	margin-left: 8px;
}

.cnc-editor-card {
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-width: 0;
	overflow: hidden;
}

.cnc-editor-head {
	border-bottom: 1px solid var(--cnc-line);
	margin: 0;
	padding: 13px 14px;
}

.cnc-editor-head > div:first-child {
	align-items: center;
	display: flex;
	gap: 12px;
}

.cnc-live-dot,
.cnc-live-pill {
	color: var(--cnc-green);
	font-size: 12px;
	font-weight: 800;
}

.cnc-live-dot::before,
.cnc-live-pill::before,
.cnc-live-status::before {
	background: var(--cnc-green);
	border-radius: 50%;
	content: "";
	display: inline-block;
	height: 6px;
	margin-right: 6px;
	vertical-align: 1px;
	width: 6px;
}

.cnc-live-pill {
	background: var(--cnc-green-soft);
	border-radius: 5px;
	padding: 5px 8px;
}

.cnc-editor-actions {
	display: flex;
	gap: 8px;
}

.cnc-editor-actions button,
.cnc-editor-actions select {
	border-radius: 6px;
	min-height: 34px;
}

.cnc-editor-body {
	display: grid;
	grid-template-columns: 144px minmax(0, 1fr);
	min-height: 520px;
}

.cnc-toolbar {
	border-right: 1px solid var(--cnc-line);
	display: grid;
	gap: 6px;
	padding: 10px;
	align-content: start;
}

.cnc-toolbar button {
	background: #fff;
	border: 1px solid transparent;
	border-radius: 6px;
	color: #1f2937;
	cursor: pointer;
	font-size: 13px;
	min-height: 38px;
	padding: 8px 10px;
	text-align: left;
}

.cnc-toolbar button.is-active {
	background: var(--cnc-blue-soft);
	border-color: var(--cnc-blue);
	color: #0758d7;
	font-weight: 800;
}

.cnc-canvas-shell {
	min-width: 0;
	overflow: auto;
}

.cnc-canvas {
	display: block;
	min-height: 520px;
	width: 100%;
}

.cnc-plate {
	fill: url(#cnc-metal);
	stroke: #8a939f;
	stroke-width: 1.5;
}

.cnc-imported path,
.cnc-imported rect,
.cnc-imported circle,
.cnc-imported ellipse,
.cnc-imported line,
.cnc-imported polyline,
.cnc-imported polygon {
	fill: rgba(255, 255, 255, 0.16);
	stroke: var(--cnc-blue);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
}

.cnc-holes circle {
	fill: #d1d5db;
	stroke: #4b5563;
	stroke-width: 2;
}

.cnc-dimensions line,
.cnc-axis line {
	stroke: #111827;
	stroke-width: 1.2;
}

.cnc-dimensions text,
.cnc-axis text {
	fill: #111827;
	font-size: 14px;
}

.is-measuring .cnc-dimensions {
	filter: drop-shadow(0 0 4px rgba(31, 107, 255, 0.35));
}

.is-showing-edges .cnc-imported * {
	stroke-width: 4;
}

.cnc-editor-metrics {
	border-top: 1px solid var(--cnc-line);
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	padding: 11px;
}

.cnc-editor-metrics span {
	color: #475467;
	font-size: 13px;
}

.cnc-editor-metrics strong {
	color: var(--cnc-ink);
	margin-left: 5px;
}

.cnc-editor-metrics [data-cnc-metric="usage"] {
	color: var(--cnc-green);
}

.cnc-cost-card {
	padding: 16px;
}

.cnc-cost-list,
.cnc-summary-list {
	display: grid;
	gap: 4px;
	margin: 0;
}

.cnc-cost-list div,
.cnc-summary-list div {
	align-items: center;
	border-radius: 6px;
	display: flex;
	justify-content: space-between;
	min-height: 34px;
	padding: 5px 8px;
}

.cnc-cost-list dt,
.cnc-summary-list dt {
	color: #344054;
	font-size: 13px;
}

.cnc-cost-list dd,
.cnc-summary-list dd {
	font-size: 13px;
	font-weight: 700;
	margin: 0;
}

.cnc-cost-list .is-highlighted {
	background: #f1f5f9;
}

.cnc-machine-warning {
	background: #fff7ed;
	border-radius: 6px;
	color: #9a3412;
	font-size: 12px;
	font-weight: 700;
	margin: 10px 0 0;
	padding: 8px 10px;
}

.cnc-summary-list {
	border-top: 1px solid var(--cnc-line);
	margin-top: 12px;
	padding-top: 10px;
}

.cnc-total-box {
	align-items: center;
	background: #f8fafc;
	border: 1px solid var(--cnc-line);
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	margin: 14px 0 8px;
	padding: 16px 12px;
}

.cnc-total-box span {
	font-size: 16px;
	font-weight: 800;
}

.cnc-total-box small {
	color: var(--cnc-muted);
	font-size: 11px;
	font-weight: 600;
}

.cnc-total-box strong {
	color: var(--cnc-green);
	font-size: 28px;
	letter-spacing: 0;
}

.cnc-live-status {
	color: var(--cnc-muted);
	display: flex;
	font-size: 12px;
	justify-content: space-between;
	margin: 12px 0 0;
}

.cnc-quote-card {
	display: grid;
	gap: 10px;
}

.cnc-offer-sheet {
	background: #fff;
	border: 1px solid var(--cnc-line);
	border-radius: 6px;
	display: grid;
	gap: 10px;
	min-height: 92px;
	padding: 14px;
}

.cnc-offer-sheet span {
	color: var(--cnc-green);
	font-size: 20px;
	font-weight: 900;
	justify-self: end;
}

.cnc-quote-card.is-open {
	border-color: var(--cnc-blue);
	box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.12);
}

.cnc-feature-row {
	background: #fff;
	border: 1px solid var(--cnc-line);
	border-radius: 8px;
	display: grid;
	gap: 0;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cnc-feature-row div {
	display: grid;
	gap: 2px;
	min-height: 72px;
	padding: 14px 18px;
}

.cnc-feature-row div + div {
	border-left: 1px solid var(--cnc-line);
}

.cnc-feature-row strong {
	color: var(--cnc-ink);
	font-size: 16px;
}

.cnc-feature-row span {
	color: var(--cnc-muted);
	font-size: 12px;
}

.cnc-notice {
	border-radius: 7px;
	font-weight: 700;
	padding: 11px 14px;
}

.cnc-notice--success {
	background: #dcfce7;
	color: #166534;
}

.cnc-notice--error {
	background: #fee2e2;
	color: #991b1b;
}

.cnc-notice--warning {
	background: #fff7ed;
	color: #9a3412;
}

.cnc-toast {
	background: #111827;
	border-radius: 7px;
	bottom: 22px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
	color: #fff;
	font-size: 14px;
	left: 50%;
	opacity: 0;
	padding: 12px 16px;
	position: fixed;
	transform: translate(-50%, 12px);
	transition: 0.18s ease;
	z-index: 99999;
}

.cnc-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 1280px) {
	.cnc-cutouts-app {
		grid-template-columns: 1fr;
		width: min(1180px, calc(100vw - 20px));
	}

	.cnc-layout {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.cnc-cost-panel {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

@media (max-width: 920px) {
	.cnc-topbar,
	.cnc-layout,
	.cnc-cost-panel,
	.cnc-feature-row {
		grid-template-columns: 1fr;
	}

	.cnc-top-actions {
		justify-content: stretch;
	}

	.cnc-top-actions .cnc-btn {
		flex: 1 1 180px;
	}

	.cnc-editor-body {
		grid-template-columns: 1fr;
	}

	.cnc-toolbar {
		border-bottom: 1px solid var(--cnc-line);
		border-right: 0;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cnc-feature-row div + div {
		border-left: 0;
		border-top: 1px solid var(--cnc-line);
	}
}
