.mf-form-wrapper {
	max-width: 800px;
	margin: 0 auto;
	font-family: Arial, sans-serif;
}

/* Header Bereich (Linksbündig) */
.mf-header-section {
	text-align: left;
	margin-bottom: 30px;
}

.mf-main-title {
	color: #b30000;
	font-size: 2.2em;
	margin: 0 0 5px 0;
	text-align: left;
}

.mf-subtitle {
	font-size: 1.1em;
	color: #555;
	margin: 0;
	font-weight: bold;
	text-align: left;
}

/* Infoboxen mit Icon (Vertikal mittig zentriert) */
.mf-info-container {
	margin-bottom: 35px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mf-info-box {
	background-color: #fdf8f0;
	border-left: 4px solid #b30000;
	padding: 12px 15px;
	border-radius: 0 4px 4px 0;
	display: flex;
	align-items: center; /* Vertikal exakt mittig ausrichten */
	gap: 12px;
	font-size: 1em;
	color: #333;
	text-align: left;
	line-height: 1.25;
}

.mf-info-icon {
	background-color: #b30000;
	color: #ffffff;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	min-width: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	flex-shrink: 0; /* Verhindert Stauchen des Icons */
}

/* Container für die AJAX-Suche */
.mf-search-container {
	position: relative !important;
	margin-bottom: 30px;
	width: 100%;
	text-align: left;
}

/* Label über dem Suchfeld */
.mf-search-label {
	display: block;
	font-weight: bold;
	color: #333;
	margin-bottom: 6px;
	font-size: 1em;
}

/* Suchfeld */
#mf-product-search {
	width: 100%;
	padding: 12px 40px 12px 15px;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	outline: none;
	background-color: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

#mf-product-search:focus {
	border-color: #b30000;
}

/* Reset-Icon (X) im Suchfeld ganz rechts auf Höhe des Eingabefelds */
#mf-search-reset {
	position: absolute !important;
	right: 15px !important;
	bottom: 20px !important;
	cursor: pointer;
	color: #888;
	font-weight: bold;
	font-size: 1.2em;
	line-height: 1;
	user-select: none;
	z-index: 2;
}

#mf-search-reset:hover {
	color: #b30000;
}

/* Kategorie-Block & Headline */
.mf-category-group {
	margin-bottom: 35px;
	border-bottom: none;
	padding-bottom: 0;
}

.mf-cat-title {
	color: #b30000;
	font-size: calc(1.3em + 4px);
	text-align: left;
	border-bottom: 1px solid #b30000;
	padding-bottom: 8px;
	margin-bottom: 15px;
	padding-left:10px;
}

.mf-on-request {
	font-size: 0.8em;
	color: #888;
	font-weight: normal;
}

/* 1. Tabelle für Zeilenabstände konfigurieren */
.mf-products-table {
	width: 100%;
	border-collapse: separate; /* Wichtig: Ermöglicht border-spacing zwischen Zeilen */
	border-spacing: 0 10px;    /* 0px horizontal, 10px vertikaler Abstand zwischen den Zeilen */
	margin-top: 5px;
}

/* 2. Hintergrund & Padding für die einzelnen Zeilen/Zellen, damit der Abstand sichtbar wird */
.mf-product-row td {
	padding: 8px 10px;         /* Innenabstand der Zellen für eine schöne Optik */
	vertical-align: middle;
	background-color: #ffffff;  /* Optional: Eigenes Hintergrundfeld pro Produktzeile */
}

/* 3. Anpassung für das aktive/ausgewählte Produkt */
.mf-products-table tr.is-active td {
	background-color: #fff9e6;  /* Färbt die gesamten Zellen der Zeile ein */
	transition: background-color 0.3s ease;
}

/* Linksbündige Ausrichtung für Produkt und Preis */
.mf-product-info {
	text-align: left;
}

.mf-product-title {
	display: inline-block;
	margin-right: 12px;
	color: #333;
	padding-left:10px;
}

/* Haupt-Container für Preis und Bestand */
.mf-price-stock-wrapper {
	display: flex;
	align-items: center;
	column-gap: 15px; /* Abstand nebeneinander */
	row-gap: 2px;     /* Minimaler Abstand untereinander, falls es umbricht */
	margin-top: 5px;
	flex-wrap: wrap;
}

/* Preis-Tag */
.mf-price-tag {
	font-weight: bold;
	color: #555;
	font-size: 0.95em;
	padding-left: 10px;
}

/* Gemeinsame Basis-Styles für die Bestandsanzeige */
.mf-stock-status {
	font-weight: bold;
	font-size: 0.95em;
}

/* Status: Ausverkauft */
.mf-stock-out {
	color: #b30000;
}

/* Status: Noch verfügbar */
.mf-stock-in {
	color: #276b3c;
}

/* Speziell für kleine Bildschirme (unter 580px) */
@media (max-width: 580px) {
	.mf-price-stock-wrapper {
		column-gap: 10px;
		row-gap: 2px; /* Hält den Umbruch nah am Preis */
		margin-bottom: 6px; /* Schafft Abstand nach unten zum nächsten Produkt */
		padding-left:10px;
	}
	
	/* Entfernt padding-left beim Preis, falls auf Mobile mehr Platz gebraucht wird */
	.mf-price-tag {
		padding-left: 0px;
	}
	
	.mf-stock-status {
		margin-top:5px;
	}
}

/* Eingabefeld rechtsbündig ausrichten */
.mf-product-qty {
	text-align: right;
	white-space: nowrap;
}

.mf-product-qty label {
	margin-right: 8px;
	color: #555;
}

.mf-product-qty input {
	width: 140px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

@media (max-width: 580px) {
	/* Trennlinie und Abstand für jede Produktzeile */
	.mf-product-row td {
		padding-top: 10px;
		padding-bottom: 10px;
		border-bottom: 1px solid #e0e0e0; /* leicht grauer Border */
	}

	/* Optional: Entfernt die Trennlinie nach der letzten Zeile */
	.mf-product-row:last-child td {
		border-bottom: none;
	}
}

/* Visuelle Hervorhebung bei Mengeneingabe */
.mf-products-table tr.is-active {
	background-color: #fff9e6;
	transition: background-color 0.3s ease;
}

.mf-products-table tr.is-active input {
	border-color: #b30000;
	outline: 1px solid #b30000;
}

/* Kontaktdaten Formularbereich */
.mf-customer-details {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 5px;
	margin-top: 60px;
}

/* Überschrift "Ihre Kontaktdaten" exakt wie Kategorie-Headline */
.mf-customer-details h3 {
	color: #b30000;
	font-size: calc(1.3em + 4px);
	text-align: left;
	border-bottom: 1px solid #b30000;
	padding-bottom: 8px;
	margin-top: 0;
	margin-bottom: 20px;
}

.mf-field-group {
	margin-bottom: 15px;
	text-align: left;
}

.mf-field-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
	text-align: left;
}

.mf-field-group input,
.mf-field-group textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-align: left;
}

/* Styling AGB Checkbox */
.mf-checkbox-group label {
	display: flex;
	align-items: center;
	font-size: 0.95em;
	text-align: left;
}

.mf-checkbox-group input[type="checkbox"] {
	margin-top: 3px;
}

/* Submit Button */
.mf-submit-btn {
	background-color: #b30000;
	color: #fff;
	padding: 12px 25px;
	border: none;
	border-radius: 4px;
	font-size: 1.1em;
	cursor: pointer;
	width: 100%;
	margin-top: 15px;
}

.mf-submit-btn:hover {
	background-color: #800000;
}

/* Bestätigungsbox nach Absenden */
.mf-confirmation-box {
	background: #ffffff;
	border: 2px solid #28a745;
	border-radius: 6px;
	padding: 25px;
	margin-bottom: 30px;
}

.mf-success-header h2 {
	color: #28a745;
	margin-top: 0;
}

.mf-summary-card {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	padding: 20px;
	border-radius: 4px;
	margin-top: 20px;
}

.mf-summary-card h3, 
.mf-summary-card h4 {
	margin-top: 0;
	color: #b30000;
}

.mf-summary-details p {
	margin: 5px 0;
}

.mf-summary-category {
	margin-top: 10px;
}

.mf-summary-category ul {
	margin: 5px 0 15px 20px;
	padding: 0;
}

p.mf-price-notice {
	line-height: 1.75rem !important;
}

/* =========================================================================
   DROPDOWN & INPUT STYLING FÜR DIE MENGENEINGABE
   ========================================================================= */

/* Gemeinsame Basis für freies Input-Feld & Dropdown */
.mf-product-qty input,
.mf-product-qty select.mf-qty-dropdown {
	width: 150px;
	height: 38px;
	padding: 6px 30px 6px 10px; /* Rechts Platz für das Pfeil-Icon */
	font-size: 0.95em;
	color: #333;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Spezielles Styling für das Dropdown-Select */
.mf-product-qty select.mf-qty-dropdown {
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	
	/* Eigenes SVG-Pfeil-Icon (dezent im edlen Dunkelgrau) */
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%20555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px 14px;
}

/* Hover & Focus Effekte */
.mf-product-qty input:hover,
.mf-product-qty select.mf-qty-dropdown:hover {
	border-color: #b30000;
}

.mf-product-qty input:focus,
.mf-product-qty select.mf-qty-dropdown:focus {
	border-color: #b30000;
	box-shadow: 0 0 0 2px rgba(179, 0, 0, 0.15);
}

/* Styling der Option-Einträge im Dropdown */
.mf-product-qty select.mf-qty-dropdown option {
	padding: 8px;
	color: #333;
	background-color: #fff;
}

/* Visuelle Hervorhebung bei gewählter Option / aktivem Feld */
.mf-products-table tr.is-active select.mf-qty-dropdown,
.mf-products-table tr.is-active input {
	border-color: #b30000;
	outline: 1px solid #b30000;
	background-color: #fff;
}

/* Mobile Optimierung */
@media (max-width: 580px) {
	.mf-product-qty input,
	.mf-product-qty select.mf-qty-dropdown {
		width: 100%;
		max-width: 160px;
	}
}