.fcpt-topper-designer {
	max-width: 560px;
	margin: 1.5em 0;
	padding: 1.25em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.015);
	box-sizing: border-box;
}

.fcpt-topper-designer * {
	box-sizing: border-box;
}

.fcpt-topper-designer .fcpt-field {
	margin-bottom: 1.1em;
}

.fcpt-topper-designer label,
.fcpt-topper-designer .fcpt-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4em;
}

.fcpt-topper-designer .fcpt-text-input,
.fcpt-topper-designer .fcpt-quantity-input {
	width: 100%;
	padding: 0.6em 0.7em;
	font-size: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
}

.fcpt-topper-designer .fcpt-quantity-input {
	width: 90px;
}

.fcpt-topper-designer .fcpt-char-counter {
	display: block;
	text-align: right;
	font-size: 0.8em;
	opacity: 0.65;
	margin-top: 0.25em;
}

.fcpt-topper-designer .fcpt-char-counter.fcpt-char-counter--limit {
	color: #b32d2e;
	opacity: 1;
	font-weight: 600;
}

.fcpt-font-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.6em;
}

.fcpt-font-option {
	position: relative;
	display: block;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
}

.fcpt-font-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.fcpt-font-swatch {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	padding: 0.4em 0.6em;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
	font-size: 1.3rem;
	text-align: center;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fcpt-font-option input[type="radio"]:checked + .fcpt-font-swatch {
	border-color: #7f54b3;
	box-shadow: 0 0 0 1px #7f54b3;
}

.fcpt-font-option input[type="radio"]:focus-visible + .fcpt-font-swatch {
	outline: 2px solid #7f54b3;
	outline-offset: 2px;
}

.fcpt-color-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.fcpt-color-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35em;
	margin: 0;
	font-weight: normal;
	font-size: 0.8em;
	cursor: pointer;
}

.fcpt-color-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.fcpt-color-swatch {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.15);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fcpt-color-option input[type="radio"]:checked + .fcpt-color-swatch {
	border-color: #7f54b3;
	box-shadow: 0 0 0 1px #7f54b3;
}

.fcpt-color-option input[type="radio"]:focus-visible + .fcpt-color-swatch {
	outline: 2px solid #7f54b3;
	outline-offset: 2px;
}

.fcpt-color-name {
	opacity: 0.75;
}

.fcpt-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 190px;
	padding: 1.5em;
	border: 1px dashed rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	background: linear-gradient(180deg, #fdfdfd 0%, #eee 100%);
	overflow: hidden;
}

.fcpt-preview-text {
	font-size: 4.2rem;
	line-height: 1.2;
	letter-spacing: -0.05em;
	text-align: center;
	word-break: break-word;
	color: var(--fcpt-color, #3a3a3a);
	/* Gleichfarbige Umrandung: verstaerkt duenne Schriftzuege optisch,
	   ohne die Schriftstaerke selbst zu aendern. */
	-webkit-text-stroke: 1.5px var(--fcpt-color, #3a3a3a);
	/* Rein optischer Pseudo-3D-Hinweis (kein echtes 3D-Modell): eine helle
	   Kante oben links deutet die Fase an, die abgestufte graue Staffelung
	   nach unten rechts die Extrusionstiefe, der letzte weiche Schatten den
	   Bodenkontakt. Entspricht nicht 1:1 den spaeteren 3D-Druck-Massen. */
	text-shadow:
		-0.5px -0.5px 0 rgba(255, 255, 255, 0.8),
		1px 1px 0 #d9d9d9,
		2px 2px 0 #c6c6c6,
		3px 3px 0 #b3b3b3,
		4px 4px 0 #a0a0a0,
		5px 6px 8px rgba(0, 0, 0, 0.3);
}

.fcpt-error-message {
	color: #b32d2e;
	font-size: 0.9em;
	min-height: 1.2em;
}

.fcpt-success-message {
	color: #2a7a2a;
	font-size: 0.9em;
	margin-top: 0.6em;
	min-height: 1.2em;
}

.fcpt-preview-disclaimer {
	margin: 0.5em 0 0;
	font-size: 0.8em;
	opacity: 0.7;
	line-height: 1.4;
}

.fcpt-standalone-wrapper .fcpt-product-title {
	margin-bottom: 0.5em;
}

.fcpt-add-to-cart-button {
	cursor: pointer;
}

.fcpt-add-to-cart-button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}
