/**
 * Teutoprint 3D-Print — eingebetteter Druckassistent.
 *
 * Das WooCommerce-Produktlayout bleibt vollständig beim aktiven Shop-Theme.
 * Gestaltet werden ausschließlich Viewer, Modellinformationen und das Formular.
 */

.tp3d-product-page {
	--tp3d-ink: #172033;
	--tp3d-muted: #667085;
	--tp3d-line: #dfe3ea;
	--tp3d-soft: #f7f8fa;
	--tp3d-accent: #f26522;
	--tp3d-accent-dark: #d94d0d;
	--tp3d-blue: #2563eb;
	--tp3d-radius: 12px;
}

/* Der Druckauftrag ist ein Konfigurator, kein klassischer Katalogartikel. */
.tp3d-product-page .woocommerce-breadcrumb,
.tp3d-product-page .wp-block-woocommerce-breadcrumbs {
	display: none;
}

/* Beschreibung immer unterhalb der beiden gefloateten Produktspalten. */
.tp3d-product-page .tp3d-product-description {
	clear: both;
	box-sizing: border-box;
	width: 100%;
}

/* Viewer bleibt ein normales WooCommerce-Produktbild. */
.tp3d-product-page div.product div.images,
.tp3d-product-page .woocommerce-product-gallery {
	visibility: visible !important;
	opacity: 1 !important;
	transition: none !important;
}

#p3d-viewer {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 0 10px;
}

.p3d-canvas-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--tp3d-line);
	border-radius: var(--tp3d-radius);
	background: #f3f5f8;
}

.p3d-canvas-wrapper::before {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(rgba(23, 32, 51, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px),
		radial-gradient(circle at 50% 48%, #fff 0, #f3f5f8 68%);
	background-size: 24px 24px, 24px 24px, auto;
	content: "";
}

#p3d-cv,
canvas.p3d-cv-3d {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
}

.tp3d-viewer-badge {
	position: absolute;
	z-index: 4;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 9px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 3px 12px rgba(23, 32, 51, 0.08);
	color: #475467;
	font-size: 0.7rem;
	font-weight: 700;
	backdrop-filter: blur(7px);
}

.tp3d-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

#p3d-file-loading {
	position: absolute;
	z-index: 6;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(247, 248, 250, 0.72);
	backdrop-filter: blur(3px);
}

.tp3d-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(37, 99, 235, 0.18);
	border-top-color: var(--tp3d-blue);
	border-radius: 50%;
	animation: tp3d-spin 0.75s linear infinite;
}

@keyframes tp3d-spin {
	to { transform: rotate(360deg); }
}

.tp3d-upload-overlay {
	position: absolute;
	z-index: 5;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	pointer-events: none;
}

.tp3d-product-page .tp3d-upload-overlay-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--tp3d-ink);
	box-shadow: 0 8px 22px rgba(23, 32, 51, 0.22);
	color: #fff;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	pointer-events: auto;
	transition: transform 150ms ease, background 150ms ease;
}

#p3d-model-message > .moxie-shim {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

#p3d-model-message > .moxie-shim input {
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tp3d-product-page .tp3d-upload-overlay-btn:hover {
	transform: translateY(-1px);
	background: #263451;
}

.tp3d-upload-icon {
	margin-right: 7px;
}

.tp3d-upload-hint {
	margin: 0;
	color: #667085;
	font-size: 0.76rem;
	pointer-events: none;
}

#canvas-stats {
	min-height: 22px;
	margin: 8px 1px 0;
	color: #344054;
	font-size: 0.84rem;
}

#p3d-canvas-filename {
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Dateiaktionen. */
.p3d-panel-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 10px 0 0;
	padding: 10px;
	border: 1px solid var(--tp3d-line);
	border-radius: 10px;
	background: var(--tp3d-soft);
}

.tp3d-control-label {
	color: #475467;
	font-size: 0.78rem;
	font-weight: 700;
}

.tp3d-unit-switch {
	display: inline-flex;
	padding: 3px;
	border: 1px solid #d0d5dd;
	border-radius: 9px;
	background: #fff;
}

.tp3d-unit-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tp3d-unit-switch label {
	margin: 0;
	padding: 5px 9px;
	border-radius: 6px;
	color: #667085;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
}

.tp3d-unit-switch input:checked + label {
	background: var(--tp3d-ink);
	color: #fff;
}

#p3d-container {
	position: relative;
	margin: 10px 0 0;
}

.tp3d-product-page #p3d-pickfiles.progress-button {
	padding: 9px 13px;
	border: 1px solid var(--tp3d-accent);
	border-radius: 9px;
	background: var(--tp3d-accent);
	box-shadow: 0 6px 15px rgba(242, 101, 34, 0.2);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.tp3d-product-page #p3d-pickfiles.progress-button:hover {
	border-color: var(--tp3d-accent-dark);
	background: var(--tp3d-accent-dark);
	color: #fff;
}

.p3d-panel-right {
	margin: 7px 0;
}

#p3d-error-message.error,
.tp3d-sel-empty {
	color: #b42318;
	font-weight: 650;
}

/* Modelldaten immer einspaltig, auch in schmalen Produktspalten. */
#tp3d-model-stats {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--tp3d-line);
}

.tp3d-subheading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 8px;
}

.tp3d-subheading h3 {
	order: -1;
	margin: 0;
	color: var(--tp3d-ink);
	font-size: 1rem;
}

.tp3d-subheading > span,
.tp3d-eyebrow {
	margin: 0;
	color: var(--tp3d-accent);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

table.p3d-stats {
	width: 100%;
	margin: 0;
	border: 0;
}

table.p3d-stats td {
	padding: 5px 0;
	border: 0;
	border-bottom: 1px solid #edf0f4;
	font-size: 0.82rem;
}

table.p3d-stats td:first-child {
	width: 43%;
	color: var(--tp3d-muted);
}

table.p3d-stats td:last-child {
	color: var(--tp3d-ink);
	font-weight: 650;
}

/* Der Assistent sitzt innerhalb des normalen WooCommerce-Formulars. */
.tp3d-selection-block {
	margin: 18px 0 0;
}

.tp3d-product-page .p3d-product-form {
	display: block !important;
	width: 100%;
	margin: 0;
}

.tp3d-product-page .p3d-product-form > .variations,
.tp3d-product-page #p3d-printers,
.tp3d-product-page #p3d-materials,
.tp3d-product-page #p3d-infills {
	display: none !important;
}

.tp3d-wizard,
.p3d-product-form {
	width: 100%;
}

.tp3d-wizard-card {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--tp3d-line);
	border-bottom-width: 0;
	background: #fff;
}

.tp3d-wizard-card:first-child {
	border-radius: var(--tp3d-radius) var(--tp3d-radius) 0 0;
}

.tp3d-wizard-card:last-child,
#add-cart-wrapper {
	border-bottom-width: 1px;
	border-radius: 0 0 var(--tp3d-radius) var(--tp3d-radius);
}

.tp3d-wizard > .tp3d-wizard-card:last-child {
	border-bottom-width: 0;
	border-radius: 0;
}

.tp3d-wizard-card[style*="display: none"],
.tp3d-wizard-card[style*="display:none"] {
	display: none !important;
}

.tp3d-wizard-card-header {
	display: grid;
	width: 100%;
	min-height: 36px;
	box-sizing: border-box;
	grid-template-columns: 28px minmax(90px, auto) minmax(0, 1fr) 20px;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 5px 10px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: var(--tp3d-ink);
	text-align: left;
	cursor: pointer;
}

.tp3d-wizard-card-header:hover,
.tp3d-wizard-card-header:focus {
	background: #fafbfc;
	color: var(--tp3d-ink);
	outline: 0;
}

.tp3d-wizard-number {
	display: inline-grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 50%;
	background: #eef1f5;
	color: #667085;
	font-size: 0.72rem;
	font-weight: 800;
}

.tp3d-wizard-title {
	font-size: 0.86rem;
	font-weight: 750;
}

.tp3d-wizard-summary {
	overflow: hidden;
	color: var(--tp3d-muted);
	font-size: 0.76rem;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tp3d-wizard-chevron {
	color: #98a2b3;
	font-size: 1rem;
	text-align: center;
	transition: transform 150ms ease;
}

.tp3d-wizard-card.is-active {
	border-bottom-width: 1px;
	border-color: #b8c4d6;
	box-shadow: 0 7px 20px rgba(23, 32, 51, 0.07);
}

.tp3d-wizard-card.is-active .tp3d-wizard-card-header {
	min-height: 52px;
	gap: 9px;
	padding: 9px 13px;
}

.tp3d-wizard-card.is-active .tp3d-wizard-number {
	width: 26px;
	height: 26px;
}

.tp3d-wizard-card.is-active + .tp3d-wizard-card {
	border-top-width: 0;
}

.tp3d-wizard-card.is-active .tp3d-wizard-number {
	background: var(--tp3d-ink);
	color: #fff;
}

.tp3d-wizard-card.is-complete .tp3d-wizard-number {
	background: #e8f7ee;
	color: #15803d;
}

.tp3d-wizard-card.is-active .tp3d-wizard-chevron {
	transform: rotate(180deg);
}

.tp3d-wizard-card.is-locked .tp3d-wizard-card-header {
	color: #98a2b3;
	cursor: default;
}

.tp3d-wizard-card.is-locked {
	background: #f8fafc;
}

.tp3d-wizard-card.is-locked .tp3d-wizard-number {
	background: #eef1f5;
	color: #98a2b3;
}

.tp3d-wizard-card.is-locked .tp3d-wizard-summary {
	visibility: hidden;
}

.tp3d-wizard-card.is-locked .tp3d-wizard-summary.tp3d-wizard-lock-message {
	visibility: visible;
	color: #667085;
}

.tp3d-wizard-card-body {
	display: none;
	padding: 3px 14px 22px 51px;
}

.tp3d-wizard-card.is-active > .tp3d-wizard-card-body {
	display: block;
}

.tp3d-product-page .tp3d-sel-input {
	width: 100%;
	height: 44px;
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 0 36px 0 12px;
	border: 1px solid #cfd5df;
	border-radius: 9px;
	background-color: #fff;
	box-shadow: none;
	color: var(--tp3d-ink);
	font-size: 0.88rem;
	font-weight: 600;
}

.tp3d-product-page .tp3d-sel-input:focus {
	border-color: #8aaaf0;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.tp3d-printer-select-source {
	display: none !important;
}

.tp3d-material-select-source {
	display: none !important;
}

.tp3d-color-select-source {
	display: none !important;
}

.tp3d-profile-select-source {
	display: none !important;
}

.tp3d-support-select-source {
	display: none !important;
}

.tp3d-printer-options,
.tp3d-material-options,
.tp3d-profile-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.tp3d-printer-options > .tp3d-sel-empty {
	grid-column: 1 / -1;
}

.tp3d-product-page .tp3d-printer-option {
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
	align-content: start;
	gap: 7px;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid #cfd5df;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--tp3d-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.tp3d-product-page .tp3d-printer-option:hover {
	border-color: var(--tp3d-accent);
	background: #fff7f2;
	color: var(--tp3d-ink);
}

.tp3d-product-page .tp3d-printer-option:focus-visible {
	border-color: var(--tp3d-accent);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.16);
}

.tp3d-product-page .tp3d-printer-option.is-selected {
	border-color: var(--tp3d-accent);
	background: #fff0e8;
	box-shadow: inset 0 0 0 1px var(--tp3d-accent);
}

.tp3d-product-page .tp3d-printer-option.is-selected::after {
	position: absolute;
	top: 9px;
	right: 10px;
	display: grid;
	width: 19px;
	height: 19px;
	place-items: center;
	border-radius: 50%;
	background: var(--tp3d-accent);
	color: #fff;
	content: "✓";
	font-size: 0.7rem;
	font-weight: 800;
}

.tp3d-printer-option-line {
	display: grid;
	min-width: 0;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 0;
	line-height: 1.2;
}

.tp3d-printer-option-line strong {
	color: #667085;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	line-height: 1.05;
	text-transform: uppercase;
}

.tp3d-printer-option-line span {
	overflow-wrap: anywhere;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.25;
}

.tp3d-product-page .tp3d-material-option,
.tp3d-product-page .tp3d-profile-option {
	position: relative;
	display: grid;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
	align-content: start;
	gap: 4px;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid #cfd5df;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--tp3d-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.tp3d-product-page .tp3d-material-option:hover,
.tp3d-product-page .tp3d-profile-option:hover {
	border-color: var(--tp3d-accent);
	background: #fff7f2;
	color: var(--tp3d-ink);
}

.tp3d-product-page .tp3d-material-option:focus-visible,
.tp3d-product-page .tp3d-profile-option:focus-visible {
	border-color: var(--tp3d-accent);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.16);
}

.tp3d-product-page .tp3d-material-option.is-selected,
.tp3d-product-page .tp3d-profile-option.is-selected {
	border-color: var(--tp3d-accent);
	background: #fff0e8;
	box-shadow: inset 0 0 0 1px var(--tp3d-accent);
}

.tp3d-product-page .tp3d-material-option.is-selected::after,
.tp3d-product-page .tp3d-profile-option.is-selected::after {
	position: absolute;
	top: 9px;
	right: 10px;
	display: grid;
	width: 19px;
	height: 19px;
	place-items: center;
	border-radius: 50%;
	background: var(--tp3d-accent);
	color: #fff;
	content: "✓";
	font-size: 0.7rem;
	font-weight: 800;
}

.tp3d-material-option-title,
.tp3d-profile-option-title {
	padding-right: 23px;
	font-size: 0.94rem;
	font-weight: 750;
	line-height: 1.2;
}

.tp3d-material-option-description,
.tp3d-profile-option-description {
	color: var(--tp3d-muted);
	font-size: 0.72rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.tp3d-material-tooltip {
	position: fixed;
	z-index: 100000;
	width: max-content;
	max-width: min(280px, calc(100vw - 20px));
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #f3b38f;
	border-radius: 9px;
	background: #fffaf7;
	box-shadow: 0 9px 28px rgba(23, 32, 51, 0.18);
	color: var(--tp3d-ink, #172033);
	font-size: 0.76rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
	pointer-events: none;
	white-space: pre-line;
}

.tp3d-color-options {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
}

.tp3d-product-page .tp3d-color-option {
	display: flex;
	flex: 0 0 86px;
	flex-direction: column;
	align-items: center;
	width: 86px;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tp3d-ink);
	cursor: pointer;
	font: inherit;
	text-align: center;
	appearance: none;
}

.tp3d-product-page .tp3d-color-swatch {
	position: relative;
	display: block;
	width: 75px;
	height: 75px;
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid #cfd5df;
	border-radius: 10px;
	background: #fff;
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.tp3d-product-page .tp3d-color-swatch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tp3d-product-page .tp3d-color-option-name {
	display: block;
	width: 100%;
	margin-top: 6px;
	color: var(--tp3d-ink);
	font-size: 0.74rem;
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.tp3d-product-page .tp3d-color-option:hover .tp3d-color-swatch {
	border-color: var(--tp3d-accent);
	box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.16);
	transform: translateY(-1px);
}

.tp3d-product-page .tp3d-color-option:focus-visible {
	outline: 0;
}

.tp3d-product-page .tp3d-color-option:focus-visible .tp3d-color-swatch {
	border-color: var(--tp3d-accent);
	box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.2);
}

.tp3d-product-page .tp3d-color-option.is-selected .tp3d-color-swatch {
	border-color: var(--tp3d-accent);
	box-shadow: inset 0 0 0 2px var(--tp3d-accent);
}

.tp3d-product-page .tp3d-color-option.is-selected .tp3d-color-swatch::after {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	width: 19px;
	height: 19px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: var(--tp3d-accent);
	color: #fff;
	content: "✓";
	font-size: 0.7rem;
	font-weight: 800;
}

.tp3d-support-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tp3d-product-page .tp3d-support-option {
	position: relative;
	display: grid;
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
	box-sizing: border-box;
	overflow: hidden;
	place-items: center;
	margin: 0;
	padding: 6px;
	border: 1px solid #cfd5df;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--tp3d-ink);
	font-size: 0.67rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.tp3d-product-page .tp3d-support-option img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tp3d-product-page .tp3d-support-option:hover {
	border-color: var(--tp3d-accent);
	background: #fff7f2;
	color: var(--tp3d-ink);
	box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.16);
	transform: translateY(-1px);
}

.tp3d-product-page .tp3d-support-option:focus-visible {
	border-color: var(--tp3d-accent);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.2);
}

.tp3d-product-page .tp3d-support-option.is-selected {
	border-color: var(--tp3d-accent);
	background: #fff0e8;
	box-shadow: inset 0 0 0 2px var(--tp3d-accent);
}

.tp3d-product-page .tp3d-support-option.is-selected::after {
	position: absolute;
	z-index: 1;
	top: 6px;
	right: 6px;
	display: grid;
	width: 19px;
	height: 19px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	background: var(--tp3d-accent);
	color: #fff;
	content: "✓";
	font-size: 0.7rem;
	font-weight: 800;
}

.tp3d-infill-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tp3d-infill-description,
.tp3d-support-description {
	margin: 0 0 10px;
	color: var(--tp3d-muted);
	font-size: 0.78rem;
	line-height: 1.45;
	white-space: pre-line;
}

.tp3d-product-page .tp3d-infill-option {
	display: grid;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	box-sizing: border-box;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 1px solid #cfd5df;
	border-radius: 9px;
	background: #fff;
	box-shadow: none;
	color: var(--tp3d-ink);
	font-size: 0.82rem;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
	transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.tp3d-product-page .tp3d-infill-option:hover {
	border-color: var(--tp3d-accent);
	background: #fff7f2;
	color: var(--tp3d-ink);
	box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.12);
	transform: translateY(-1px);
}

.tp3d-product-page .tp3d-infill-option:focus-visible {
	border-color: var(--tp3d-accent);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.2);
}

.tp3d-product-page .tp3d-infill-option.is-selected {
	border-color: var(--tp3d-accent);
	background: var(--tp3d-accent);
	color: #fff;
	box-shadow: inset 0 0 0 1px var(--tp3d-accent-dark);
}

.tp3d-sel-infill {
	display: grid;
	grid-template-columns: minmax(70px, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.tp3d-sel-infill input[type="range"] {
	width: 100%;
	height: 5px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #dbe4f0;
	accent-color: var(--tp3d-accent);
	cursor: pointer;
}

.tp3d-infill-value {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
}

.tp3d-product-page .tp3d-infill-value input {
	width: 47px;
	height: 38px;
	box-sizing: border-box;
	padding: 0 3px 0 7px;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-weight: 700;
	text-align: right;
}

.tp3d-infill-value > span {
	padding-right: 7px;
	color: var(--tp3d-muted);
	font-size: 0.74rem;
}

.tp3d-product-page .tp3d-wizard-next {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 9px 15px;
	border: 0;
	border-radius: 9px;
	background: var(--tp3d-ink);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.tp3d-product-page .tp3d-wizard-next {
	margin-left: auto;
}

.tp3d-product-page .tp3d-wizard-next:hover {
	background: #263451;
	color: #fff;
}

.tp3d-product-page .tp3d-wizard-next:disabled {
	cursor: not-allowed;
	opacity: .5;
}

.tp3d-product-page .tp3d-support-analysis-status {
	margin-top: 12px;
	padding: 11px 13px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	color: #334155;
	font-size: 14px;
	line-height: 1.45;
}

.tp3d-product-page .tp3d-support-analysis-status.is-checking {
	border-color: #fdba74;
	background: #fff7ed;
	color: #9a3412;
}

.tp3d-product-page .tp3d-support-analysis-status.is-success {
	border-color: #86efac;
	background: #f0fdf4;
	color: #166534;
}

.tp3d-product-page .tp3d-support-analysis-status.is-error {
	border-color: #fca5a5;
	background: #fef2f2;
	color: #991b1b;
}

.tp3d-sel-empty {
	margin: 10px 0;
	padding: 10px 12px;
	border: 1px solid #fecdca;
	border-radius: 9px;
	background: #fef3f2;
	font-size: 0.8rem;
}

/* Letzter Schritt: Workerstatus, Vorschau und Warenkorb. */
#add-cart-wrapper {
	margin: 0;
}

.tp3d-final-card .tp3d-wizard-number {
	background: #fff0e8;
	color: var(--tp3d-accent-dark);
}

.tp3d-final-card.is-active .tp3d-wizard-number {
	background: var(--tp3d-accent);
	color: #fff;
}

.tp3d-final-card .tp3d-wizard-card-body {
	padding-top: 4px;
}

.tp3d-quote {
	margin: 0 0 12px;
}

.tp3d-quote-progress {
	position: relative;
	margin: 0;
	padding: 11px 12px 11px 38px;
	border: 1px solid #bfdbfe;
	border-radius: 9px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.78rem;
	font-weight: 650;
}

.tp3d-quote-progress::before {
	position: absolute;
	top: 50%;
	left: 13px;
	width: 13px;
	height: 13px;
	margin-top: -8px;
	border: 2px solid rgba(37, 99, 235, 0.22);
	border-top-color: var(--tp3d-blue);
	border-radius: 50%;
	content: "";
	animation: tp3d-spin 0.75s linear infinite;
}

.tp3d-purchase-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 9px;
}

.tp3d-product-page .tp3d-preview-button,
.tp3d-product-page .single_add_to_cart_button {
	display: inline-flex;
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 10px 13px;
	border-radius: 9px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
}

.tp3d-product-page .tp3d-preview-button {
	border: 1px solid #cbd5e1;
	background: #fff;
	color: var(--tp3d-ink);
}

.tp3d-final-price {
	padding: 12px 14px;
	border: 1px solid #fed7aa;
	border-radius: 9px;
	background: #fff7ed;
}

.tp3d-product-page .tp3d-final-price p.price {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	color: var(--tp3d-ink);
	font-size: 1rem;
	line-height: 1.35;
}

.tp3d-product-page .tp3d-final-price #p3d-amount-text {
	flex: 0 0 auto;
	color: var(--tp3d-muted);
	font-size: 0.76rem;
	letter-spacing: 0.02em;
}

.tp3d-product-page .tp3d-final-price .amount {
	display: grid;
	min-width: 0;
	flex: 1 1 auto;
	grid-template-columns: max-content max-content;
	align-items: baseline;
	justify-content: end;
	justify-items: end;
	column-gap: 11px;
	row-gap: 1px;
	font-weight: 800;
	text-align: right;
}

.tp3d-price-total {
	color: #7c2d12;
	font-size: 1em;
}

.tp3d-price-unit-comparison {
	color: var(--tp3d-muted);
	font-size: 0.72em;
	font-weight: 600;
}

.tp3d-price-unit-comparison del {
	opacity: 0.72;
	font-weight: 500;
}

.tp3d-price-unit-comparison strong {
	color: var(--tp3d-ink);
	font-weight: 800;
}

.tp3d-price-legal {
	margin-top: 6px;
	color: var(--tp3d-muted);
	font-size: 0.68rem;
	line-height: 1.35;
	text-align: right;
}

.tp3d-price-legal[hidden] {
	display: none;
}

.tp3d-product-page .tp3d-price-legal > * {
	margin: 0;
	color: inherit;
	font: inherit;
	line-height: inherit;
}

.tp3d-product-page .tp3d-price-legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tp3d-price-details {
	display: grid;
	width: min(100%, 330px);
	box-sizing: border-box;
	grid-column: 1 / -1;
	justify-self: end;
	gap: 3px;
	margin-top: 6px;
	padding: 7px 9px 8px;
	border: 1px solid #fed7aa;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.68);
	text-align: left;
}

.tp3d-price-details-title {
	padding-bottom: 2px;
	border-bottom: 1px solid #ffedd5;
	color: var(--tp3d-muted);
	font-size: 0.6em;
	font-weight: 600;
	letter-spacing: 0.025em;
	line-height: 1.2;
}

.tp3d-quantity-block {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.tp3d-quantity-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 7px 8px 7px 12px;
	border: 1px solid var(--tp3d-line);
	border-radius: 9px;
	background: var(--tp3d-soft);
	color: var(--tp3d-muted);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tp3d-quantity-hint {
	margin: 0;
	padding: 0 4px;
	color: var(--tp3d-muted);
	font-size: 0.7rem;
	line-height: 1.35;
}

.tp3d-product-page .tp3d-quantity-field .quantity {
	display: block;
	float: none;
	margin: 0;
}

.tp3d-product-page .p3d-qty {
	width: 68px;
	height: 38px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 7px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	font-weight: 700;
	text-align: center;
}

.tp3d-price-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	align-items: baseline;
	column-gap: 12px;
	color: var(--tp3d-muted);
	font-size: 0.67em;
	font-weight: 500;
	line-height: 1.35;
}

.tp3d-price-detail strong {
	color: var(--tp3d-ink);
	font-weight: 700;
	text-align: right;
}

.tp3d-price-discount strong,
.tp3d-price-parallel strong {
	color: #26734d;
}

/* Ergebnisvorschau-Overlay. */
.tp3d-gcode-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3vw;
	background: rgba(9, 14, 28, 0.82);
	backdrop-filter: blur(7px);
}

.tp3d-gcode-inner {
	display: flex;
	width: min(1400px, 94vw);
	height: min(88vh, 900px);
	overflow: hidden;
	flex-direction: column;
	border-radius: 14px;
	background: #151a24;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.tp3d-gcode-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 14px;
	background: #1d2330;
	color: #f8fafc;
}

.tp3d-gcode-title {
	font-weight: 700;
}

.tp3d-gcode-close {
	padding: 0 7px;
	border: 0;
	background: transparent;
	color: #e2e8f0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.tp3d-gcode-stage {
	position: relative;
	flex: 1 1 auto;
}

.tp3d-gcode-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.tp3d-gcode-status {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d1d5db;
	pointer-events: none;
}

.tp3d-gcode-layer-control {
	position: absolute;
	z-index: 2;
	top: 18px;
	right: 18px;
	bottom: 18px;
	display: none;
	width: 38px;
	padding: 10px 5px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	align-items: center;
	flex-direction: column;
	background: rgba(29, 35, 48, 0.86);
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
	color: #f8fafc;
}

.tp3d-gcode-layer-control.is-ready {
	display: flex;
}

.tp3d-gcode-layer-value {
	position: absolute;
	right: calc(100% + 10px);
	width: max-content;
	max-width: 190px;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: rgba(29, 35, 48, 0.94);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
	color: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.08;
	text-align: center;
	transform: translateY(-50%);
	white-space: pre-line;
	pointer-events: none;
}

.tp3d-gcode-layer-value::after {
	position: absolute;
	top: 50%;
	left: 100%;
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-left-color: rgba(29, 35, 48, 0.94);
	content: "";
	transform: translateY(-50%);
}

.tp3d-gcode-layer-slider {
	width: 28px;
	min-height: 0;
	flex: 1 1 auto;
	margin: 0;
	accent-color: #f28c18;
	cursor: ns-resize;
	direction: rtl;
	writing-mode: vertical-lr;
}

.tp3d-gcode-support-hint {
	flex: 0 0 auto;
	padding: 10px 16px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: #1d2330;
	color: #e2e8f0;
	font-size: 0.9em;
	line-height: 1.4;
	white-space: pre-line;
}

.tp3d-cart-thumb {
	border-radius: 5px;
}

/* Schmale Produktspalten: keine nebeneinanderliegenden Einstellungen. */
@media (max-width: 768px) {
	.tp3d-mobile-product-intro {
		clear: both;
		width: 100%;
		box-sizing: border-box;
		margin: 0 0 18px;
	}

	.tp3d-product-page .tp3d-mobile-product-intro .product_title {
		margin: 0 0 10px;
	}

	.tp3d-product-page .tp3d-mobile-product-intro .woocommerce-product-details__short-description {
		margin: 0;
	}

	.tp3d-product-page .tp3d-mobile-product-intro .woocommerce-product-details__short-description > :last-child {
		margin-bottom: 0;
	}

	.tp3d-product-page #tp3d-model-stats.tp3d-mobile-model-stats {
		clear: both;
		width: 100%;
		box-sizing: border-box;
		margin: 18px 0;
		padding: 16px 14px 0;
	}

	.p3d-panel-top {
		align-items: flex-start;
		flex-direction: column;
	}

	.tp3d-wizard-card-header {
		grid-template-columns: 27px minmax(0, 1fr) 18px;
	}

	.tp3d-wizard-number {
		grid-column: 1;
		grid-row: 1;
	}

	.tp3d-wizard-title {
		min-width: 0;
		grid-column: 2;
		grid-row: 1;
	}

	.tp3d-wizard-chevron {
		grid-column: 3;
		grid-row: 1;
	}

	.tp3d-wizard-summary {
		display: none;
	}

	.tp3d-wizard-summary.tp3d-wizard-lock-message {
		display: block;
		overflow: visible;
		grid-column: 2;
		grid-row: 2;
		color: #667085;
		font-size: 0.7rem;
		line-height: 1.25;
		text-align: left;
		text-overflow: clip;
		white-space: normal;
	}

	.tp3d-wizard-card-body,
	.tp3d-final-card .tp3d-wizard-card-body {
		padding: 3px 12px 20px;
	}

	.tp3d-product-page .tp3d-final-price p.price {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
	}

	.tp3d-product-page .tp3d-final-price .amount,
	.tp3d-price-details {
		justify-content: start;
		justify-items: start;
		text-align: left;
	}

	.tp3d-price-details {
		width: 100%;
		justify-self: stretch;
		justify-items: stretch;
	}

	.tp3d-sel-infill {
		grid-template-columns: 1fr;
	}

	.tp3d-printer-options,
	.tp3d-material-options,
	.tp3d-profile-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.tp3d-product-page .tp3d-printer-option {
		min-height: 0;
		padding: 11px;
	}

	.tp3d-printer-option-line {
		gap: 0;
	}

	.tp3d-infill-value {
		width: max-content;
	}

	.tp3d-product-page .tp3d-wizard-next {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp3d-product-page *,
	.tp3d-product-page *::before,
	.tp3d-product-page *::after {
		transition-duration: 0.01ms !important;
	}
}
