.tma-am-classified {
	margin: 0 0 16px;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	/* kein clip: 150 %-Eingabe und Slider müssen voll scrollbar/sichtbar bleiben */
	overflow-x: visible;
}

.tma-am-classified__intro,
.tma-am-classified__meter p,
.tma-am-classified__place-name {
	margin: 0 0 8px;
}

.tma-am-classified__fit {
	width: 100%;
	overflow: visible;
	margin: 0 0 12px;
}

.tma-am-classified__fit--print {
	overflow: hidden;
}

.tma-am-classified__sheet,
.tma-am-classified__print {
	box-sizing: border-box;
	background: #fff;
	color: #111;
	transform-origin: top left;
	overflow: visible;
}

.tma-am-classified__print {
	overflow: hidden;
}

.tma-am-classified__size-label {
	margin: 12px 0 6px;
	font-size: 13px;
	color: #50575e;
}

.tma-am-classified__chars {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0 0 10px;
	padding: 8px 10px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #f6f7f7;
}

.tma-am-classified__chars-label {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	margin-right: 2px;
	white-space: nowrap;
}

.tma-am-classified__chars-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.tma-am-classified__char {
	min-width: 2rem;
	height: 2rem;
	padding: 0 6px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.tma-am-classified__char:hover,
.tma-am-classified__char:focus {
	border-color: #2271b1;
	background: #f0f6fc;
	outline: none;
}

.tma-am-classified__review {
	margin-top: 18px;
	padding: 14px;
	border: 1px solid #d0d5dd;
	border-radius: 10px;
	background: #f8faf8;
}

.tma-am-classified__review h3 {
	margin: 0 0 6px;
}

.tma-am-classified__meter .tma-am-classified__booking-row strong {
	display: block;
	max-width: 100%;
	font-weight: 600;
	line-height: 1.35;
	text-align: right;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

.tma-am-classified__title-field,
.tma-am-chiffre,
.tma-am-classified-bg {
	margin: 12px 0;
}

.tma-am-classified__warn {
	margin: 8px 0 0;
	padding: 8px 10px;
	border-left: 3px solid #b32d2e;
	background: #fcf0f1;
	color: #3c434a;
}

.tma-am-classified__lines {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin: 8px 0 14px;
	padding: 8px 10px;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
	font-size: 14px;
}

.tma-am-classified__lines-label {
	font-weight: 600;
}

.tma-am-classified__lines-values {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.tma-am-classified__lines-hint {
	margin: 0;
	flex: 1 1 auto;
}

.tma-am-classified__lines-warn {
	flex: 1 1 100%;
	margin: 4px 0 0;
	color: #b32d2e;
	font-weight: 600;
}

.tma-am-classified__lines.is-over {
	border-color: #b32d2e;
	background: #fcf0f1;
}

.tma-am-classified__lines.is-over .tma-am-classified__lines-values {
	color: #b32d2e;
}

.tma-am-classified__title-field input,
.tma-am-chiffre-text,
.tma-am-chiffre-reply-email {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 4px;
	min-height: 48px;
	font-size: 16px;
}

.tma-am-chiffre-price {
	margin-left: 8px;
	color: #1b7f4a;
	font-weight: 700;
}

.tma-am-classified__headline,
.tma-am-classified__body {
	font-size: 16px;
}

body.tma-am-classified-product div.product p.price,
body.tma-am-classified-product .summary > .price {
	display: none !important;
}

.tma-am-classified__headline,
.tma-am-classified__body,
.tma-am-classified__chiffre {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	resize: none;
	overflow: hidden;
	background: transparent;
	color: inherit;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	word-wrap: break-word;
	box-sizing: border-box;
}

.tma-am-classified__fit--entry .tma-am-classified__headline,
.tma-am-classified__fit--entry .tma-am-classified__body {
	overflow: hidden;
	min-height: 1.2em;
}

.tma-am-classified__headline:focus,
.tma-am-classified__body:focus {
	outline: 1px dashed #c3c4c7;
	outline-offset: 2px;
}

.tma-am-classified__chiffre {
	margin: 0;
}

.tma-am-classified__meter {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 12px;
}

.tma-am-classified__total {
	font-weight: 700;
}

.tma-am-classified__places {
	border: 0;
	margin: 0 0 12px;
	padding: 0;
	min-width: 0;
}

.tma-am-classified__place {
	margin: 0 0 10px;
}

.tma-am-classified__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tma-am-classified__date {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
}

.tma-am-classified__switch,
.tma-am-classified__mail {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin: 0 0 10px;
	font-size: 16px;
}

.tma-am-classified__mail input {
	flex: 1 1 auto;
	min-height: 44px;
	min-width: 0;
}

.tma-am-classified__warn {
	color: #8a2424;
}

body.tma-am-classified-product #tma-am-start-design,
body.tma-am-classified-product .nbdesigner_button,
body.tma-am-classified-product .start-design,
body.tma-am-classified-product #nbdesigner-frontend-btn {
	display: none !important;
}

@media (max-width: 782px) {
	.tma-am-classified,
	.tma-am-classified__fit,
	.tma-am-classified__sheet {
		max-width: 100%;
	}

	body.tma-am-classified-product {
		overflow-x: hidden;
	}

	body.tma-am-classified-product .single_add_to_cart_button {
		width: 100%;
		min-height: 48px;
		font-size: 16px;
	}

	.tma-am-classified__headline,
	.tma-am-classified__body {
		font-size: 16px;
	}
}

.tma-am-classified__options {
	margin: 0 0 18px;
	padding: 16px;
	border: 1px solid #d7dde5;
	border-radius: 14px;
	background: linear-gradient(180deg, #fbfcfd 0%, #f4f7f5 100%);
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow: visible;
}

.tma-am-classified__options-head {
	margin: 0 0 14px;
}

.tma-am-classified__options-head .tma-am-heading {
	margin: 0 0 4px;
}

.tma-am-classified__options-status {
	margin: 0;
	color: #52606d;
	font-size: 14px;
	line-height: 1.4;
}

.tma-am-classified__step {
	margin: 0 0 14px;
	padding: 12px;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	background: #fff;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.tma-am-classified__step:last-of-type {
	margin-bottom: 0;
}

.tma-am-classified__step-label {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	margin: 0 0 10px;
}

.tma-am-classified__step-label label,
.tma-am-classified__step-label strong {
	display: block;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1f2933;
}

.tma-am-classified__step-label .description {
	margin: 2px 0 0;
}

.tma-am-classified__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1b7f4a;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.tma-am-classified__subcategory-select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.tma-am-classified__subcategory-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tma-am-classified__sub-chip {
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #cfd6dd;
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	line-height: 1.25;
	color: #102a43 !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
	white-space: normal;
	text-align: center;
	opacity: 1;
	visibility: visible;
}

.tma-am-classified__sub-chip.is-on,
.tma-am-classified__sub-chip[aria-checked="true"] {
	border-color: #1b7f4a;
	background: #e7f6ee;
	color: #0f5132 !important;
	font-weight: 700;
	box-shadow: inset 0 0 0 1px #1b7f4a;
}

.tma-am-classified__slider-count {
	align-self: center;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef2f6;
	color: #486581;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.tma-am-classified__slider-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"slider slider"
		"prev next";
	align-items: stretch;
	justify-items: stretch;
	gap: 10px 8px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.tma-am-classified__slider-wrap.is-single {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "slider";
}

.tma-am-classified__slider-wrap.is-single .tma-am-classified__slider-nav {
	display: none;
}

/* Produkt-Editor: Kartenhöhe = Musteranzeige (nicht an längstes Geschwister strecken). Picker/Startseite unverändert. */
#tma-am-classified:not(.tma-am-classified-picker) .tma-am-classified__slider {
	align-items: flex-start;
}

.tma-am-classified__slider {
	grid-area: slider;
	display: flex;
	gap: 12px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px 0 4px;
	touch-action: pan-x;
	box-sizing: border-box;
}

.tma-am-classified__slider::-webkit-scrollbar {
	display: none;
}

.tma-am-classified__slider-prev {
	grid-area: prev;
}

.tma-am-classified__slider-next {
	grid-area: next;
}

.tma-am-classified__slider-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 120px;
	justify-self: center;
	min-width: 0;
	min-height: 44px;
	border: 1px solid #9aa5b1;
	border-radius: 12px;
	background: #fff;
	color: #102a43;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(16, 42, 67, 0.08);
}

.tma-am-classified__slider-nav span {
	display: block;
	font-size: 16px;
	line-height: 1;
}

.tma-am-classified__slider-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.tma-am-classified__suggestion {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
	padding: 12px;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tma-am-classified__suggestion[hidden] {
	display: none !important;
}

.tma-am-classified__suggestion.is-on {
	border-color: #1b7f4a;
	box-shadow: 0 0 0 2px rgba(27, 127, 74, 0.18);
}

.tma-am-classified__suggestion-name {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #627d98;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.tma-am-classified__suggestion-fit {
	display: block;
	width: 100%;
	min-width: 0;
	padding: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: #f3f5f7;
	box-sizing: border-box;
}

.tma-am-classified__suggestion-sheet.tma-am-classified__sheet,
.tma-am-classified__suggestion-sheet {
	display: block;
	box-sizing: border-box;
	background: #fff;
	color: #111;
	height: fit-content;
	min-height: 0;
	margin: 0;
	transform-origin: top left;
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	overflow: hidden;
}

.tma-am-classified__suggestion-headline.tma-am-classified__headline,
.tma-am-classified__suggestion-text.tma-am-classified__body,
.tma-am-classified__suggestion-headline,
.tma-am-classified__suggestion-text {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 0;
	float: none;
	position: static;
	resize: none;
	overflow: visible;
	background: transparent;
	border: 0;
	padding: 0;
	box-shadow: none;
	white-space: pre-wrap;
	/* Schrift/Zeilenmaß kommen aus den Inline-Styles (Einstellungen). */
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

/* Nur Produktseite (#tma-am-classified), nicht Picker/Startseite */
#tma-am-classified:not(.tma-am-classified-picker) .tma-am-classified__fit--entry {
	min-height: 0;
	margin-bottom: 16px;
	padding: 8px;
	border: 1px dashed #c5d0db;
	border-radius: 10px;
	background: #fbfcfd;
	overflow-x: visible;
	overflow-y: hidden;
	box-sizing: content-box;
	max-width: 100%;
	width: fit-content;
}

/* PC: Eingabe volle Platzbreite, Rahmen sichtbar, Höhe folgt Inhalt (JS) */
@media (min-width: 783px) {
	#tma-am-classified:not(.tma-am-classified-picker) .tma-am-classified__fit--entry {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		border: 1px solid #9aa5b1;
		overflow: visible;
	}

	#tma-am-classified:not(.tma-am-classified-picker) #tma-am-classified-entry-sheet {
		overflow: visible;
	}
}

#tma-am-classified:not(.tma-am-classified-picker) #tma-am-classified-entry-sheet {
	min-height: 0;
	overflow: hidden;
	transform-origin: top left;
	-webkit-transform-origin: top left;
	/* Skalierung (mind. 1.5) setzt classified-editor.js */
}

.tma-am-classified__suggestion-apply {
	width: 100%;
	min-height: 46px;
	margin: 0;
	font-size: 15px;
}

.tma-am-classified__suggestion.is-on .tma-am-classified__suggestion-apply::after {
	content: ' ✓';
}

.tma-am-classified__slider-dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	min-height: 10px;
}

.tma-am-classified__slider-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c5d0db;
	cursor: pointer;
}

.tma-am-classified__slider-dot.is-on {
	background: #1b7f4a;
	transform: scale(1.15);
}

.tma-am-classified__samples-empty {
	margin: 10px 0 0;
}

.tma-am-classified-picker__cta {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

/* Eigenständiger Button – unabhängig vom Theme (.button oft nur Textfarbe) */
.tma-am-classified-picker a.tma-am-classified-picker__go,
.tma-am-classified-picker__go {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 52px;
	padding: 14px 20px !important;
	margin: 0;
	border: 0 !important;
	border-radius: 8px !important;
	background: #c45c26 !important;
	background-color: #c45c26 !important;
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	text-align: center;
	text-decoration: none !important;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tma-am-classified-picker a.tma-am-classified-picker__go:hover,
.tma-am-classified-picker a.tma-am-classified-picker__go:focus,
.tma-am-classified-picker__go:hover,
.tma-am-classified-picker__go:focus {
	background: #a84c1e !important;
	background-color: #a84c1e !important;
	color: #fff !important;
	text-decoration: none !important;
}

.tma-am-classified-picker a.tma-am-classified-picker__go.is-disabled,
.tma-am-classified-picker a.tma-am-classified-picker__go[aria-disabled="true"],
.tma-am-classified-picker__go.is-disabled,
.tma-am-classified-picker__go[aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}

.tma-am-classified-picker__cta .description {
	margin: 0;
	text-align: center;
}

@media (max-width: 782px) {
	/* Shortcode-Slider Smartphone: Höhe folgt dem aktiven Muster */
	.tma-am-classified-picker .tma-am-classified__slider {
		align-items: flex-start;
	}

	.tma-am-classified,
	.tma-am-classified__options,
	.tma-am-classified__step,
	.tma-am-classified__slider-wrap,
	.tma-am-classified__fit {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	#tma-am-classified:not(.tma-am-classified-picker) .tma-am-classified__fit--entry {
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	/* Smartphone: kein Mindest-Leerraum unter Überschrift/Text */
	#tma-am-classified:not(.tma-am-classified-picker) .tma-am-classified__fit--entry .tma-am-classified__headline,
	#tma-am-classified:not(.tma-am-classified-picker) .tma-am-classified__fit--entry .tma-am-classified__body {
		min-height: 0;
	}

	.tma-am-classified__options {
		padding: 12px;
		margin-left: 0;
		margin-right: 0;
	}

	.tma-am-classified__step {
		padding: 10px;
	}

	.tma-am-classified__slider-wrap {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"slider slider"
			"prev next";
		gap: 8px;
	}

	.tma-am-classified__slider-wrap.is-single {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "slider";
	}

	.tma-am-classified__slider-nav {
		min-height: 44px;
	}

	.tma-am-classified__suggestion {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		padding: 10px;
	}

	.tma-am-classified__step-label {
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.tma-am-classified__slider-count {
		grid-column: 2;
		justify-self: start;
	}

	.tma-am-classified__sub-chip {
		flex: 1 1 calc(50% - 8px);
		text-align: center;
	}

	#tma-am-classified:not(.tma-am-classified-picker) .tma-am-classified__fit--entry {
		padding: 6px;
	}
}

.tma-am-classified__locked,
.tma-am-classified__date.is-locked {
	color: #555;
}

.tma-am-classified__date.is-locked input {
	pointer-events: none;
}

.tma-am-classified .tma-am-appearance-date {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.tma-am-classified .tma-am-location-date-list,
.tma-am-classified .tma-am-week-matrix-actions,
.tma-am-classified .tma-am-week-selection-summary,
.tma-am-classified .tma-am-location-date-row {
	position: static !important;
	float: none !important;
	clear: both !important;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.tma-am-classified .tma-am-week-matrix-actions .button,
.tma-am-classified #tma-am-open-week-matrix,
.tma-am-classified .tma-am-location-date-select {
	position: static !important;
	float: none !important;
	clear: none;
}

.tma-am-classified .tma-am-location-date-select {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
}

.tma-am-classified .tma-am-week-selection-summary {
	box-sizing: border-box;
}

.tma-am-classified__meter.tma-am-price-preview {
	margin-top: 14px;
	padding: 12px 14px 4px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.tma-am-classified__meter .tma-am-preview-row {
	align-items: baseline;
	gap: 12px;
	margin-bottom: 0.55em;
}

.tma-am-classified__meter .tma-am-preview-row span {
	color: #1d2327;
}

.tma-am-classified__meter .tma-am-preview-total {
	margin-top: 0.35em;
	margin-bottom: 0.7em;
}
