/**
 * Affiliate System Frontend Styles
 * shopmachine-system-frontend.css - Modernisiertes Design für Kundenbestellungen
 */

/* ==========================================================================
   Allgemeine Styles
   ========================================================================== */

/* Einheitlicher Container für alle Formulare */
.shopmachine-form-container,
.customer-order-container,
.shopmachine-registration-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #374151;
	line-height: 1.5;
}


.form-messages,
.form-messages-bottom {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	display: none;
}

.form-messages.success,
.form-messages-bottom.success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.form-messages.error,
.form-messages-bottom.error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* Nachrichten unter dem Button */
.form-messages-bottom {
	margin-bottom: 0;
	margin-top: 20px;
	text-align: left;
}

.form-messages-bottom ul {
	margin: 10px 0 0 20px;
	padding: 0;
	list-style-type: disc;
}

.form-messages-bottom strong {
	display: block;
	margin-bottom: 10px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
	color: #374151;
	font-size: 14px;
}

.form-group .required {
	color: #ef4444;
	font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s;
	background-color: #f9fafb;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: #0D5D8D;
	outline: none;
	box-shadow: 0 0 0 3px rgba(13, 93, 141, 0.1);
	background-color: #ffffff;
}

.form-group input.error,
.form-group select.error {
	border-color: #dc3545;
	background-color: #fff5f5;
}

.form-group input.required-field,
.form-group select.required-field {
	border-color: #d1d5db;
	background-color: #f9fafb;
}

.form-group input.required-field:focus,
.form-group select.required-field:focus {
	border-color: #0D5D8D;
	background-color: #ffffff;
}

/* Browser-Validierung überschreiben */
.form-group input:valid,
.form-group select:valid,
.form-group input:invalid,
.form-group select:invalid {
	border-color: #d1d5db !important;
	background-color: #f9fafb !important;
	box-shadow: none !important;
}

.form-group input:focus:valid,
.form-group select:focus:valid,
.form-group input:focus:invalid,
.form-group select:focus:invalid {
	border-color: #0D5D8D !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(13, 93, 141, 0.1) !important;
}

.description {
	font-size: 13px;
	color: #666;
	margin-top: 5px;
	font-style: italic;
}

.button,
button[type="submit"],
.submit-button {
	background-color: #ff6900;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.button:hover,
button[type="submit"]:hover,
.submit-button:hover {
	background-color: #e55a00;
	transform: none;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.button:disabled,
button[type="submit"]:disabled,
.submit-button:disabled {
	background-color: #9ca3af;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Resend Button (blau) */
.resend-button {
	background-color: #0D5D8D;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 15px;
}

.resend-button:hover {
	background-color: #0a4a6b;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.resend-button:disabled {
	background-color: #9ca3af;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Modal-Fenster für Verifizierung */
.shopmachine-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: none;
}

.shopmachine-modal-content {
	background: white;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	animation: modalSlideIn 0.3s ease-out;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

@keyframes modalSlideIn {
	from {
		transform: translate(-50%, -60%);
		opacity: 0;
	}
	to {
		transform: translate(-50%, -50%);
		opacity: 1;
	}
}

.shopmachine-modal-content .modal-header {
	padding: 20px 25px 15px;
	border-bottom: 1px solid #e5e7eb;
}

.shopmachine-modal-content .modal-header h3 {
	margin: 0;
	color: #16a34a;
	font-size: 20px;
	font-weight: 600;
}

.shopmachine-modal-content .modal-body {
	padding: 20px 25px;
	line-height: 1.6;
}

.shopmachine-modal-content .modal-body p {
	margin: 0 0 15px 0;
	color: #374151;
}

.shopmachine-modal-content .modal-body p:last-child {
	margin-bottom: 0;
}

.shopmachine-modal-content .modal-body strong {
	color: #111827;
}

.shopmachine-modal-content .modal-footer {
	padding: 15px 25px 20px;
	text-align: center;
	border-top: 1px solid #e5e7eb;
}

.shopmachine-modal-content .modal-footer .submit-button {
	min-width: 120px;
}

/* ==========================================================================
   Affiliate Registrierungsformular
   ========================================================================== */

.shopmachine-form h2 {
	color: #000;
	margin-bottom: 10px;
	text-align: left;
}

.shopmachine-form > p {
	color: #6b7280;
	margin-bottom: 30px;
}

/* Form Sections mit Card-Style */
.form-section {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-section:last-of-type {
	margin-bottom: 0;
}

/* Section Titles mit orangener Linie */
.form-section h3,
.form-section h5.section-title {
	color: #000000;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
	font-size: 18px;
	font-weight: 500;
}

.form-section h3::after,
.form-section h5.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #ff6900;
}

.form-section > p,
.section-description {
	color: #6b7280;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 400;
}

.form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
}

.form-row .form-group {
	flex: 1;
	margin-bottom: 0;
}

.form-row.two-columns {
	display: flex;
	gap: 16px;
}

.form-row.two-columns .form-group {
	flex: 1;
}

/* Straße über volle Breite - spezifische Klassen */
.shopmachine-registration-container .form-row.full-width-row {
	display: block !important;
	width: 100% !important;
}

.shopmachine-registration-container .form-row.full-width-row .form-group.full-width-group {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

.shopmachine-registration-container .form-row.full-width-row .form-group.full-width-group input.full-width-input {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

/* PLZ/Ort spezielle Aufteilung: PLZ 1/3, Ort 2/3 */
.shopmachine-registration-container .form-row.plz-ort-row {
	display: flex;
	gap: 16px;
}

.shopmachine-registration-container .form-row.plz-ort-row .plz-group {
	flex: 1;
}

.shopmachine-registration-container .form-row.plz-ort-row .ort-group {
	flex: 2;
}

.shopmachine-registration-container .kleinunternehmer-checkbox {
	display: flex !important;
	align-items: flex-start !important;
	gap: 8px !important;
	width: 100% !important;
}

.shopmachine-registration-container .kleinunternehmer-checkbox input[type="checkbox"] {
	width: 15px !important;
	height: 15px !important;
	margin-top: 2px !important;
	flex-shrink: 0 !important;
}

.shopmachine-registration-container .kleinunternehmer-checkbox label {
	flex: 1 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	word-wrap: break-word !important;
}

/* Steuerfeld-Verhalten bei Kleinunternehmer-Regel */
#ust-id-field {
	transition: opacity 0.3s ease;
}

#ust-id-field.hidden {
	display: none;
}

/* Sicherstellen dass die Checkbox-Spalte ihre Breite behält */
.form-row.two-columns .form-group {
	width: 48%;
	display: inline-block;
	vertical-align: top;
}

.form-row.two-columns .form-group:first-child {
	margin-right: 4%;
}

/* GDPR-Informationsfeld Styling */
.gdpr-information-notice {
	background-color: #f8f9fa;
	border-left: 4px solid #0073aa;
	padding: 20px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.gdpr-information-notice h4,
.gdpr-information-notice h5 {
	margin-top: 20px;
	margin-bottom: 10px;
	color: #23282d;
}

.gdpr-details {
	font-size: 14px;
	line-height: 1.5;
}

.gdpr-details ul {
	margin: 10px 0 10px 20px;
	padding: 0;
}

.gdpr-details li {
	margin-bottom: 5px;
}

.medium-options {
	display: block;
	gap: 0;
}

.medium-option {
	border: none;
	padding: 0;
	border-radius: 0;
	background-color: transparent;
	margin-bottom: 15px;
}

.shopmachine-registration-container .medium-checkbox-row {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	margin-bottom: 0 !important;
	padding-left: 0 !important;
	text-align: left !important;
}

.shopmachine-registration-container .medium-checkbox-row input[type="checkbox"] {
	margin-right: 8px !important;
	margin-top: 2px !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	flex-shrink: 0 !important;
	float: none !important;
	position: relative !important;
	width: 15px !important;
	height: 15px !important;
}

.shopmachine-registration-container .medium-checkbox-row label {
	font-weight: 500 !important;
	color: #374151 !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	cursor: pointer !important;
	flex: 1 !important;
	display: block !important;
	text-align: left !important;
	float: none !important;
	position: relative !important;
}

.medium-url-field {
	margin-top: 12px;
	display: none;
	clear: both;
	width: 100%;
}

.medium-url-field.show {
	display: block;
}

.medium-url-field input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 14px;
	background-color: #ffffff;
}

.medium-url-field input[type="text"]:focus {
	border-color: #0D5D8D;
	outline: none;
	box-shadow: 0 0 0 3px rgba(13, 93, 141, 0.1);
}

.checkbox-group {
	margin: 15px 0;
	display: flex;
	align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
	margin-right: 10px;
	margin-top: 2px;
}

.checkbox-group label {
	cursor: pointer;
	flex: 1;
	line-height: 1.5;
}

.checkbox-group .checkbox-label {
	display: flex;
	align-items: flex-start;
	margin-bottom: 15px;
	cursor: pointer;
}

.checkbox-group .checkbox-label input[type="checkbox"] {
	margin-right: 8px;
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.checkbox-group .checkbox-label label {
	flex: 1;
	line-height: 1.5;
	color: #374151;
	font-size: 14px;
	font-weight: normal;
	margin-bottom: 0;
	cursor: pointer;
}

.checkbox-group .checkbox-label a {
	color: #0D5D8D;
	text-decoration: underline;
}

.checkbox-group .checkbox-label a:hover {
	color: #0a4a6e;
	text-decoration: none;
}

/* GDPR-spezifische Styles */
.gdpr-essential {
	background-color: #fffbf0;
	border: 1px solid #fed7aa;
	padding: 16px;
	border-radius: 6px;
	margin-bottom: 15px;
}

.gdpr-marketing {
	background-color: #f0f9ff;
	border: 1px solid #bfdbfe;
	padding: 16px;
	border-radius: 6px;
	margin-bottom: 15px;
}

.legal-basis {
	display: block;
	margin-top: 4px;
	color: #6b7280;
	font-size: 12px;
	font-style: italic;
}

/* Submit Button Container für Affiliate-Form */
.shopmachine-form .form-actions {
	margin-top: 24px;
	text-align: left;
	padding-top: 0;
	border-top: none;
	background-color: #f8f9fa;
	margin: 24px -30px -30px -30px;
	padding: 20px 30px;
	border-radius: 0 0 8px 8px;
}

/* Background für gesamtes Formular */
.shopmachine-form {
	background-color: #f8f9fa;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

.tax-fields {
	background-color: #f8f9fa;
	padding: 20px;
	border-radius: 4px;
	margin-top: 20px;
}

/* ==========================================================================
   Affiliate Verifizierungsformular
   ========================================================================== */

/* Message Boxes */
.message-box {
	padding: 15px 20px;
	border-radius: 6px;
	margin: 10px 0 20px 0;
	font-size: 14px;
	line-height: 1.5;
}

.success-box {
	background-color: #d1fae5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.error-box {
	background-color: #fee2e2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* Auto-Verification Message */
.auto-verification-message {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.verification-section p {
	color: #6b7280;
	font-size: 16px;
	margin: 0;
}

/* Spinning Animation für Dashicons */
.spinning {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Info Messages */
.info-messages {
	color: #374151;
	line-height: 1.6;
}

.info-messages p {
	margin-bottom: 10px;
}

.info-messages ul {
	margin: 10px 0 15px 20px;
	padding: 0;
}

.info-messages li {
	margin-bottom: 5px;
	color: #6b7280;
}

.help-text {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e5e7eb;
	font-size: 14px;
	color: #6b7280;
}

.help-text a {
	color: #0D5D8D;
	text-decoration: underline;
}

.help-text a:hover {
	color: #0a4a6e;
	text-decoration: none;
}

/* Verification Code Input */
.verification-code {
	text-align: center;
	letter-spacing: 2px;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
}

/* ========================================
   KUNDENBESTELLFORMULAR STYLES - MODERNISIERT
   ======================================== */

/* Kundenbestellformular Container */
.customer-order-container,
.shopmachine-registration-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

/* Header verstecken - wird nicht benötigt */
.customer-order-header {
	display: none;
}

/* Verstecke unerwünschte Elemente vor dem Formular */
.customer-order-container > .button,
.customer-order-container > button,
.customer-order-container > input[type="button"],
.customer-order-container > input[type="submit"],
.customer-order-body > .button:not(.submit-button),
.customer-order-body > button:not([type="submit"]),
.customer-order-body > input:not([type="hidden"]):not([name]):not([id]) {
	display: none !important;
}

/* Verstecke leere oder unerwünschte Elemente */
.customer-order-container > br,
.customer-order-body > br,
.customer-order-container > div:empty,
.customer-order-body > div:empty {
	display: none !important;
}

/* Verstecke grüne und rote Felder ohne Beschriftung */
.customer-order-container input[style*="background-color"],
.customer-order-container input[style*="background"],
.customer-order-container div[style*="background-color: green"],
.customer-order-container div[style*="background-color: red"],
.customer-order-container div[style*="background: green"],
.customer-order-container div[style*="background: red"] {
	display: none !important;
}

/* Entfernt: Diese Regel versteckte fälschlicherweise die order-confirmation-texts */

/* Hauptüberschrift - Einheitlich für alle Formulare */
.customer-order-container > h3,
.customer-order-body > h3,
.shopmachine-registration-container > h3,
.shopmachine-form-container > h3 {
	text-align: center;
	font-size: 32px;
	font-weight: 400;
	color: #000;
	margin-bottom: 30px;
	line-height: 1.2;
}

/* Section Titles als H3 oder H5 */
.section-title {
	font-size: 18px;
	font-weight: 500;
	color: #000000;
	margin-bottom: 15px;
	position: relative;
	padding-bottom: 10px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #ff6900;
}

/* Section Description */
.section-description {
	color: #6b7280;
	font-size: 14px;
	margin-bottom: 20px;
	line-height: 1.5;
	font-weight: 400;
}

/* Spezielle Beschreibung-Styles */
.description {
	color: #6b7280;
	font-size: 13px;
	font-style: italic;
	margin-top: 8px;
	line-height: 1.4;
}

/* Hauptcontainer für das Formular */
.customer-order-body,
.shopmachine-registration-body {
	background-color: transparent;
}

/* Order Form */
.customer-order-container .order-form,
.shopmachine-registration-container .registration-form {
	background-color: transparent;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

/* Order Sections - Card Style */
.order-section,
.form-section {
	background-color: #ffffff;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 20px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.order-section:last-of-type,
.form-section:last-of-type {
	margin-bottom: 0;
}

/* Überschriften - Mit orangener Linie - Vereinheitlicht */
.order-section .section-title,
.form-section .section-title {
	color: #000000;
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: 500;
	position: relative;
	padding-bottom: 10px;
}

.order-section .section-title::after,
.form-section .section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #ff6900;
}

.section-description {
	color: #6b7280;
	margin-bottom: 20px;
	font-size: 14px;
}

/* Erfolgs- und Fehlermeldungen für Bestellformular */
.order-messages {
	margin-bottom: 20px;
}

.order-messages .success-message,
.order-messages .error-message {
	display: none;
}

.order-messages .success-box,
.order-messages .error-box {
	padding: 15px 20px;
	border-radius: 6px;
	margin: 10px 0;
	font-size: 14px;
	line-height: 1.5;
}

.order-messages .success-box {
	background-color: #d1fae5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.order-messages .error-box {
	background-color: #fee2e2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* Form Layout für Bestellformular */
.order-section .form-row {
	margin-bottom: 16px;
}

.order-section .form-row.two-columns {
	display: flex;
	gap: 16px;
}

.order-section .form-row.two-columns .form-group {
	flex: 1;
}

.order-section .form-row.three-columns {
	display: flex;
	gap: 16px;
}

.order-section .form-row.three-columns .form-group:first-child {
	flex: 0 0 120px;
}

.order-section .form-row.three-columns .form-group {
	flex: 1;
}

/* Form Groups */
.order-section .form-group {
	margin-bottom: 0;
}

/* Form Inputs für Bestellformular - Modernes Design */
.order-section input[type="text"],
.order-section input[type="email"],
.order-section input[type="tel"],
.order-section select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s;
	background-color: #f9fafb;
}

.order-section input[type="text"]:focus,
.order-section input[type="email"]:focus,
.order-section input[type="tel"]:focus,
.order-section select:focus {
	border-color: #0D5D8D;
	outline: none;
	box-shadow: 0 0 0 3px rgba(13, 93, 141, 0.1);
	background-color: #ffffff;
}

.order-section input.invalid-field,
.order-section select.invalid-field {
	border-color: #ef4444;
	background-color: #fef2f2;
}

.order-section input.error,
.order-section select.error {
	border-color: #ef4444;
	background-color: #fef2f2;
}

.order-section input.required-field,
.order-section select.required-field {
	border-color: #d1d5db;
	background-color: #f9fafb;
}

.order-section input.required-field:focus,
.order-section select.required-field:focus {
	border-color: #0D5D8D;
	background-color: #ffffff;
}

/* Browser-Validierung überschreiben */
.order-section input:valid,
.order-section select:valid,
.order-section input:invalid,
.order-section select:invalid {
	border-color: #d1d5db !important;
	background-color: #f9fafb !important;
	box-shadow: none !important;
}

.order-section input:focus:valid,
.order-section select:focus:valid,
.order-section input:focus:invalid,
.order-section select:focus:invalid {
	border-color: #0D5D8D !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(13, 93, 141, 0.1) !important;
}

.order-section label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
	color: #374151;
	font-size: 14px;
}

/* Required Indicator */
.order-section .required {
	color: #ef4444;
	font-weight: normal;
}

/* Placeholder Styling */
.order-section input::placeholder,
.order-section select {
	color: #9ca3af;
}

/* Produktliste - Modernisiert */
.product-list-container {
	margin-bottom: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

/* Header-Zeile */
.product-list-header {
	display: grid;
	grid-template-columns: 80px 1fr 120px 120px;
	gap: 15px;
	padding: 12px 15px;
	background-color: #f9fafb;
	font-weight: 500;
	font-size: 14px;
	color: #6b7280;
	border-bottom: 1px solid #e5e7eb;
}

/* Produktzeilen */
.product-row {
	display: grid;
	grid-template-columns: 80px 1fr 120px 120px;
	gap: 15px;
	padding: 15px;
	background-color: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	align-items: center;
}

.product-row:last-child {
	border-bottom: none;
}

.product-row:hover {
	background-color: #f9fafb;
}

/* Spalten-Spezifische Styles */
.product-row .col-quantity {
	display: flex;
	align-items: center;
}

.product-row .col-product {
	display: flex;
	align-items: center;
	gap: 10px;
}

.product-row .col-price,
.product-row .col-total {
	text-align: right;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

/* Produktzeilen Styling */
.product-row .quantity-input {
	width: 60px;
	padding: 6px 8px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
	background-color: #f9fafb;
}

.product-row .product-select {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background-color: #f9fafb;
	font-size: 14px;
	color: #000000;
}

/* Schwarze Schriftfarbe für Produktauswahl */
.product-select,
.product-select option {
	color: #000000 !important;
}

.product-row .product-price,
.product-row .line-total {
	font-size: 14px;
}

.min-quantity-info {
	display: block;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 2px;
}

/* Info-Button - Modernisiert */
.product-info-btn {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.product-info-btn:hover {
	background-color: #f3f4f6;
}

.product-info-btn img {
	display: block;
	width: 16px;
	height: 16px;
	opacity: 0.6;
}

/* Plus-Button - Modernisiert */
.add-product-btn {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.add-product-btn:hover {
	background-color: #f3f4f6;
}

.add-product-btn img {
	display: block;
	width: 16px;
	height: 16px;
	opacity: 0.6;
}

/* Zusammenfassung */
.order-summary {
	margin-top: 20px;
	padding: 15px;
	background-color: #f9fafb;
	border-top: 1px solid #e5e7eb;
}

.summary-row,
.discount-row,
.total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child,
.total-row {
	border-bottom: none;
}

.summary-label {
	font-weight: 400;
	color: #374151;
	font-size: 14px;
}

.summary-value {
	font-size: 14px;
	color: #111827;
}

.total-row {
	background-color: #f3f4f6;
	padding: 12px 0;
	margin-top: 5px;
	border-radius: 4px;
}

.total-row .summary-label,
.total-row .summary-value {
	font-weight: 600;
	color: #111827;
}

.total-amount {
	font-size: 16px;
}

/* Rabattcode-Eingabe */
.discount-input-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

.discount-code-input {
	width: 150px;
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 13px;
	background-color: #ffffff;
}

.discount-btn {
	padding: 6px 12px;
	background-color: #6b7280;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.discount-btn:hover {
	background-color: #4b5563;
}

#discount-amount {
	color: #dc2626;
	font-weight: 500;
}

/* Verstecke nur den Rabattbetrag wenn leer oder explizit versteckt */
#discount-amount:empty {
	visibility: hidden;
}

#discount-amount[style*="display: none"] {
	display: none !important;
}

/* Hinweise-Sektion */
.order-confirmation-texts {
	margin-bottom: 20px;
}

/* Freitext-Box - Graue Überschrift */
.freitext-box {
	background-color: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 8px 12px;
	margin-bottom: 12px;
}

.freitext-label {
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin: 0;
}

.order-text-item {
	margin-bottom: 16px;
	padding: 0;
	background-color: transparent;
	border-radius: 0;
	border: none;
}

.order-text-item p {
	margin: 0;
	line-height: 1.5;
	color: #374151;
	font-size: 14px;
}

/* Spezielle Hervorhebung für AGB-Checkbox */
.order-text-item.agb-item {
	background-color: #fffbf0;
	border: 1px solid #fed7aa;
	padding: 16px;
	border-radius: 6px;
	margin-top: 20px;
}

.order-text-item .checkbox-label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	margin: 0;
}

.order-text-item .checkbox-label input[type="checkbox"] {
	margin-right: 8px;
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.order-text-item .checkbox-label span {
	flex: 1;
	line-height: 1.5;
	color: #374151;
	font-size: 14px;
}

.order-text-item .checkbox-label a {
	color: #0D5D8D;
	text-decoration: underline;
}

.order-text-item .checkbox-label a:hover {
	color: #0a4a6e;
	text-decoration: none;
}

/* Buttons - Modernes Design */
.customer-order-container .form-actions {
	margin-top: 24px;
	text-align: center;
	padding-top: 0;
	border-top: none;
	background-color: transparent;
	margin: 24px 0 0 0;
	padding: 20px 0;
	border-radius: 0;
}

.customer-order-container .button,
.customer-order-container .submit-button {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #ff6900;
	color: white;
}

.customer-order-container .button:hover,
.customer-order-container .submit-button:hover {
	background-color: #e55a00;
	transform: none;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.customer-order-container .button:disabled,
.customer-order-container .submit-button:disabled {
	background-color: #9ca3af;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* =============================================================================
   ZAHLUNGSOPTIONEN
   ============================================================================= */

.payment-options {
    margin: 20px 0;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #0D5D8D;
    box-shadow: 0 2px 8px rgba(13, 93, 141, 0.1);
}

.payment-option.selected {
    border-color: #0D5D8D;
    background: #f8f9fa;
}

.payment-option-label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    margin: 0;
}

.payment-radio {
    margin-right: 12px;
    transform: scale(1.2);
}

.payment-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.payment-description {
    padding: 0 20px 15px 50px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.payment-description p {
    margin: 0;
}

/* PayPal Button Container */
#paypal-button-container {
    max-width: 300px;
    margin: 20px auto;
}

/* Responsive Zahlungsoptionen */
@media (max-width: 768px) {
    .payment-option-label {
        padding: 12px 15px;
    }
    
    .payment-description {
        padding: 0 15px 12px 40px;
    }
    
    .payment-title {
        font-size: 15px;
    }
}

/* Produktbeschreibungs-Modal */
.product-modal {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
	display: none; /* Standardmäßig versteckt */
}

.product-modal-content {
	background-color: #ffffff;
	margin: 5% auto;
	padding: 0;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-modal-header {
	padding: 20px;
	background-color: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 8px 8px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.product-modal-header h3 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 600;
}

.product-modal-close {
	color: #9ca3af;
	font-size: 24px;
	font-weight: normal;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s;
}

.product-modal-close:hover {
	background-color: #f3f4f6;
	color: #4b5563;
}

.product-modal-body {
	padding: 20px;
	max-height: 400px;
	overflow-y: auto;
}

#modal-product-description {
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}

/* Messages */
.order-messages {
	margin-bottom: 24px;
}

.order-messages .success-message,
.order-messages .error-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-weight: 400;
	font-size: 14px;
}

.order-messages .success-message {
	background-color: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.order-messages .error-message {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Field Error Messages */
.order-section .error-message {
	color: #ef4444;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

/* Rabatt-Nachricht */
.discount-message {
	padding: 10px 12px;
	border-radius: 4px;
	margin-top: 10px;
	font-size: 13px;
	display: none;
}

.discount-row .discount-message {
	grid-column: 1 / -1;
	margin-top: 10px;
}

.discount-message.success {
	background-color: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.discount-message.error {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Alte Styles entfernen */
.order-summary-box {
	display: none;
}

.section-divider {
	display: none;
}

/* ==========================================================================
   Login-Formular - Vereinheitlichtes Design
   ========================================================================== */

/* Login verwendet jetzt das Standard-Form-Design */
.shopmachine-form-container .form-section {
	/* Nutzt die Standard-Section-Styles */
}

/* Login-spezifische Styles */
.form-info {
	text-align: center;
	margin-top: 15px;
	color: #666;
	font-size: 14px;
}

.shopmachine-login-footer {
	text-align: center;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #e5e7eb;
	font-size: 14px;
	color: #6b7280;
}

.shopmachine-login-footer a {
	color: #0D5D8D;
	text-decoration: underline;
}

.shopmachine-login-footer a:hover {
	color: #0a4a6e;
	text-decoration: none;
}

/* Ladeanimation */
.shopmachine-login-form.loading {
	position: relative;
	pointer-events: none;
	opacity: 0.6;
}

.shopmachine-login-form.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0D5D8D;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.shopmachine-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.dashboard-header {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-header h1 {
	margin: 0 0 20px 0;
	color: #333;
}

.shopmachine-info p {
	margin: 5px 0;
	color: #666;
}

.shopmachine-id {
	font-size: 14px;
}

/* Statistik-Boxen */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.stat-box {
	background: #ffffff !important;
	background-image: none !important;
	background-gradient: none !important;
	border: 1px solid #000000 !important;
	border-radius: 8px;
	padding: 25px;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: none !important;
	transition: none !important;
}

.stat-icon {
	color: #000000 !important;
	flex-shrink: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.stat-icon img {
	display: block !important;
	width: 40px !important;
	height: 40px !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.stat-content {
	flex: 1;
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: #000000 !important;
	line-height: 1;
}

.stat-label {
	font-size: 14px;
	color: #000000 !important;
	margin-top: 5px;
}

/* Info-Boxen */
.dashboard-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.info-box {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-box h3 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 18px;
}

.info-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
	border-bottom: none;
}

.info-label {
	color: #666;
}

.info-value {
	color: #333;
	font-weight: 500;
}

.url-box {
	display: flex;
	margin: 15px 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.url-box input {
	flex: 1;
	padding: 10px 15px;
	border: none;
	background: #f8f9fa;
	font-size: 14px;
}

.copy-btn {
	padding: 10px 20px;
	background: #0D5D8D;
	color: white;
	border: none;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.3s;
}

.copy-btn:hover {
	background: #0a4a6e;
}

.copy-btn.copied {
	background: #28a745;
}

.copy-btn.copied::after {
	content: " ✓";
}

.info-note {
	font-size: 14px;
	color: #666;
	font-style: italic;
}

/* Bestelltabelle */
.dashboard-orders {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-orders h2 {
	margin: 0 0 20px 0;
	color: #333;
}

.no-orders {
	text-align: center;
	padding: 40px;
	color: #666;
}

.orders-table-wrapper {
	overflow-x: auto;
}

.orders-table {
	width: 100%;
	border-collapse: collapse;
}

.orders-table th,
.orders-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}

.orders-table th {
	background: #f8f9fa;
	font-weight: 600;
	color: #333;
}

.orders-table tbody tr:hover {
	background: #f8f9fa;
}

.text-right {
	text-align: right !important;
}

.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 20px;
	font-weight: 500;
}

.status-pending {
	background: #fff3cd;
	color: #856404;
}

.status-completed {
	background: #d4edda;
	color: #155724;
}

.status-cancelled {
	background: #f8d7da;
	color: #721c24;
}

.status-paid {
	background: #e6f3ff;
	color: #1e3a8a;
}

.orders-table tfoot {
	font-weight: 600;
}

.orders-table tfoot th {
	background: #4F5F6A;
	color: white;
}

/* Status-Legende */
.status-legend {
	margin-top: 15px;
	font-size: 12px;
}

.legend-title {
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.legend-items {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.legend-badge {
	font-size: 10px;
	padding: 4px 8px;
}

.legend-description {
	font-size: 12px;
	color: #666;
}

/* Footer */
.dashboard-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: #f8f9fa;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
}

.session-info {
	color: #666;
	font-size: 14px;
}

#session-timer {
	font-weight: 600;
	color: #333;
}

/* ==========================================================================
   Animationen
   ========================================================================== */

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
	.shopmachine-order-container {
		padding: 10px;
	}
	
	.shopmachine-order-form {
		padding: 20px;
	}
	
	.order-section {
		padding: 20px;
		margin-bottom: 16px;
	}
	
	.section-title {
		font-size: 18px;
	}
	
	.order-section .form-row.two-columns,
	.order-section .form-row.three-columns {
		flex-direction: column;
		gap: 0;
	}
	
	.order-section .form-row.three-columns .form-group:first-child {
		flex: 1;
	}
	
	.shopmachine-order-form .button {
		width: 100%;
		justify-content: center;
	}
	
	/* Tabelle auf mobilen Geräten */
	.product-table-container {
		overflow-x: auto;
		margin: 0 -20px;
		padding: 0 20px;
	}
	
	.product-order-table {
		min-width: 500px;
		font-size: 13px;
	}
	
	.product-order-table th,
	.product-order-table td {
		padding: 8px 6px;
	}
	
	.product-row .quantity-input {
		width: 50px;
		padding: 4px;
	}
	
	.form-row {
		flex-direction: column;
	}
	
	.dashboard-stats {
		grid-template-columns: 1fr;
	}
	
	.dashboard-info {
		grid-template-columns: 1fr;
	}
	
	.orders-table {
		font-size: 14px;
	}
	
	.orders-table th,
	.orders-table td {
		padding: 8px;
	}
	
	.dashboard-footer {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.shopmachine-order-container {
		padding: 10px;
	}
	
	.shopmachine-order-form {
		padding: 15px;
		border-radius: 8px;
	}
	
	.order-section {
		padding: 15px;
	}
	
	.order-section input[type="text"],
	.order-section input[type="email"],
	.order-section input[type="tel"],
	.order-section select {
		font-size: 16px; /* Verhindert Zoom auf iOS */
	}
	
	.product-order-table {
		font-size: 12px;
	}
	
	.product-order-table th,
	.product-order-table td {
		padding: 6px 4px;
	}
	
	.shopmachine-form-container {
		padding: 10px;
	}
	
	.shopmachine-login-container {
		margin: 20px auto;
		padding: 10px;
	}
	
	.shopmachine-login-wrapper {
		padding: 20px;
	}
	
	.shopmachine-login-title {
		font-size: 20px;
	}
	
	.shopmachine-dashboard {
		padding: 10px;
	}
	
	.dashboard-header {
		padding: 20px;
	}
	
	.stat-box {
		padding: 20px;
	}
	
	.stat-value {
		font-size: 24px;
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.button,
	.add-product-btn,
	.remove-product-btn,
	.copy-btn,
	.dashboard-footer {
		display: none !important;
	}
	
	.dashboard-stats,
	.dashboard-info,
	.dashboard-orders {
		break-inside: avoid;
	}
}