/**
 * TVW Frontend – zentrale CSS-Datei (MU-Plugins)
 * Enthält: Matrix, Design-Simulate-Modal, Anfrage-Seite, Zoom, Upload, Warenkorb.
 * Künftig alle TVW-Frontend-Styles hier pflegen.
 */

/* ========== Matrix – Gesamtpreis nur bei Kauf/Muster ========== */
.tvw-matrix-price-line { display: none !important; }
body.tvw-mode-kauf .tvw-matrix-price-line,
body.tvw-mode-muster .tvw-matrix-price-line { display: inline-block !important; }

/* ========== Produktkacheln – Preiszeile ========== */
.tvw-price-legal {
    display: block;
    font-size: 0.65em;
    color: #6b7280;
    margin-top: 2px;
}

/* ========== Warenkorb / Checkout ========== */
.woocommerce-cart-form .product-thumbnail img,
.woocommerce table.cart .product-thumbnail img,
.et_pb_wc_cart_products table.cart .product-thumbnail img {
    max-width: 50px;
    width: 50px;
    height: auto;
    object-fit: contain;
}

/* ========== Checkout – Durchstyling ========== */

/* 2-Spalten-Layout: links Kundendaten, rechts Bestellübersicht/Zahlung */
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    align-items: start;
}

.woocommerce-checkout form.checkout #customer_details,
.woocommerce-checkout form.checkout .col2-set {
    grid-column: 1;
}
/* Linke Spalte: col-1 (Billing) und col-2 (Shipping + Zusätzliche Infos) untereinander, je 100% Breite */
.woocommerce-checkout form.checkout .col2-set {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.woocommerce-checkout form.checkout .col2-set .col-1,
.woocommerce-checkout form.checkout .col2-set .col-2 {
    width: 100%;
    max-width: 100%;
    float: none;
}
/* Blöcke mit durchgehendem Hintergrund wie Bestellübersicht */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
}
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 20px;
}
.woocommerce-checkout form.checkout #order_review_heading,
.woocommerce-checkout form.checkout #order_review {
    grid-column: 2;
}
.woocommerce-checkout form.checkout #order_review_heading {
    margin-top: 0;
}
/* Zusätzliche Informationen: unter Rechnungsadresse, dezenter */
.woocommerce-checkout .woocommerce-additional-fields {
    margin-top: 20px;
}
/* Zusätzliche Infos: etwas dezenter, aber gleicher Font/Stil */
.woocommerce-checkout .woocommerce-additional-fields h3 {
    font-size: 1rem;
    color: #6b7280;
    padding-bottom: 6px;
    border-bottom: 2px solid #9ca3af;
}
.woocommerce-checkout .woocommerce-additional-fields .form-row {
    padding-bottom: 10px;
}
.woocommerce-checkout .woocommerce-additional-fields textarea {
    min-height: 70px !important;
    font-size: 14px;
}
@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }
    .woocommerce-checkout form.checkout #customer_details,
    .woocommerce-checkout form.checkout .col2-set,
    .woocommerce-checkout form.checkout #order_review_heading,
    .woocommerce-checkout form.checkout #order_review {
        grid-column: 1;
    }
}

/* Einheitliche Überschriften: gleicher Font, gleiche Unterstreichung */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #202A34;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #202A34;
}

.woocommerce-checkout form .form-row {
    padding: 0 0 14px;
    margin: 0;
}

.woocommerce-checkout form .form-row label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout form .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-checkout form .form-row input.input-text:focus,
.woocommerce-checkout form .form-row select:focus,
.woocommerce-checkout form .form-row textarea:focus {
    border-color: #202A34;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(32, 42, 52, 0.15);
}

.woocommerce-checkout form .form-row textarea {
    min-height: 100px;
    resize: vertical;
}

/* Zahlungsbereich */
.woocommerce-checkout #payment {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    padding: 20px !important;
    margin: 20px 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: 0;
    padding: 0;
    margin: 0 0 16px;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: 0;
}

.woocommerce-checkout #payment .payment_method_bacs .payment_box {
    background: #fff !important;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px 16px !important;
    margin: 10px 0 0;
    font-size: 14px;
    color: #4b5563;
}

/* Bestellübersicht-Box */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 12px 16px;
    border-color: #e5e7eb;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    background: #f9fafb;
    font-weight: 600;
    color: #202A34;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.1rem;
    font-weight: 600;
    background: #f0f7f4;
    border-top: 2px solid #9a8d84;
}

/* Entfernen-Kreuz über dem linken Packshot (Kassenseite) – kein kleines Zusatzbild */
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    position: relative;
}
.woocommerce-checkout .tvw-checkout-packshot-remove-wrap {
    position: absolute;
    right: 100%;
    margin-right: -22px;
    top: -6px;
    z-index: 2;
}
.woocommerce-checkout .tvw-checkout-item-name {
    display: inline-block;
}
.woocommerce-checkout .tvw-checkout-remove-item {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    color: #991b1b;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: background 0.2s, color 0.2s;
}
.woocommerce-checkout .tvw-checkout-remove-item:hover {
    background: #991b1b;
    color: #fff;
}

/* Place-Order-Button */
.woocommerce-checkout .tvw-checkout-weiter-shoppen-wrap {
    margin: 0 0 12px;
}
.woocommerce-checkout .tvw-checkout-weiter-shoppen {
    display: block;
    width: 100%;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
    text-decoration: none !important;
    color: #202A34 !important;
    background: #fff !important;
    border: 2px solid #202A34 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}
.woocommerce-checkout .tvw-checkout-weiter-shoppen:hover {
    background: #f8fafc !important;
    color: #202A34 !important;
    border-color: #2d3a47 !important;
}

.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: #202A34 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce-checkout #place_order:hover {
    background: #2d3a47 !important;
}

/* Checkbox AGB */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Datei-Upload-Bereich (tvw-checkout-upload-wcajax.php) */
.woocommerce-checkout .tvw-upload {
    margin: 24px 0;
    padding: 0;
}

.woocommerce-checkout .tvw-upload .tvw-upload__head {
    margin-bottom: 12px;
}

.woocommerce-checkout .tvw-upload .tvw-upload__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #202A34;
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid #202A34;
}

.woocommerce-checkout .tvw-upload .tvw-upload__meta {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.woocommerce-checkout .tvw-upload .tvw-upload__drop {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}

.woocommerce-checkout .tvw-upload .tvw-upload__drop:hover,
.woocommerce-checkout .tvw-upload .tvw-upload__drop:focus-within {
    border-color: #202A34;
    background: #f8fafc;
}

.woocommerce-checkout .tvw-upload .tvw-upload__drop-line1 {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.woocommerce-checkout .tvw-upload .tvw-upload__btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    background: #202A34 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.woocommerce-checkout .tvw-upload .tvw-upload__btn:hover {
    background: #2d3a47 !important;
}

.woocommerce-checkout .tvw-upload .tvw-upload__hint {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* ========== Matrix + Design-Simulator Pop-up (tvw-matrix-2-0.php) ========== */
.tvw-packshot-display,
.tvw-designer-wrapper { margin-bottom: 20px; text-align: left; background: #fff; padding: 25px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; }
.tvw-designer-trigger-hint { margin: 0 0 16px; padding: 12px 16px; font-size: 14px; color: #fff; line-height: 1.5; background: #202A34; border-radius: 6px; }
.tvw-designer-modal { position: fixed; inset: 0; z-index: 2147483647 !important; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.tvw-designer-modal .tvw-designer-close-x { position: fixed; top: 24px; right: 24px; z-index: 2147483647 !important; }
.tvw-designer-modal[aria-hidden="false"] { display: flex; }
/* Modal offen: Matrix bewusst unter das Modal zwingen (Divi/Theme überschreiben) */
body.tvw-modal-open .tvw-matrix-wrapper,
body.tvw-modal-open .tvw-matrix-actions { z-index: 0 !important; }
.tvw-designer-modal-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0.6); cursor: pointer; pointer-events: none; }
.tvw-designer-modal-box { position: relative; z-index: 2; background: #fff; border-radius: 6px 6px 16px 16px; width: 100%; max-width: 95vw; height: 90vh; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.25); pointer-events: auto; }
.tvw-designer-modal-header {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: #202a34;
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
}
.tvw-designer-close-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; border: 0; background: #e5e7eb; border-radius: 50%; font-size: 26px; font-weight: 400; line-height: 1; cursor: pointer; color: #374151; z-index: 100; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; pointer-events: auto; }
.tvw-designer-close-x:hover { background: #d1d5db; color: #111; }
.tvw-designer-menubar { display: flex; flex-direction: column; flex-wrap: wrap; align-items: stretch; gap: 10px; padding: 12px 16px; background: #202A34; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.tvw-designer-menubar-btn {
	background: rgba(255,255,255,0.15);
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition: background 0.2s;
	padding-top: 10px;
	padding-right: 16px;
	padding-bottom: 10px;
	padding-left: 16px;
}
.tvw-designer-menubar-btn:hover { background: rgba(255,255,255,0.25); }
.tvw-designer-menubar-btn-ok { background: #16a34a; color: #fff; }
.tvw-designer-menubar-btn-ok:hover { background: #15803d; }
.tvw-designer-menubar .tvw-designer-menubar-btn-buy-without { background: #9a8d84; color: #fff; }
.tvw-designer-menubar .tvw-designer-menubar-btn-buy-without:hover { background: #8a7d74; }
.tvw-designer-menubar-copy .tvw-designer-menubar-btn-buy-without { background: #202a34; color: #fff; }
.tvw-designer-menubar-copy .tvw-designer-menubar-btn-buy-without:hover { background: #2d3a47; }
.tvw-designer-menubar-btn .tvw-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: middle; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: tvw-spin 0.7s linear infinite; }
@keyframes tvw-spin { to { transform: rotate(360deg); } }
.tvw-designer-menubar-link { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 12px; border-radius: 6px; transition: background 0.2s; }
.tvw-designer-menubar-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.tvw-designer-menubar-copy { background: transparent; border: none; padding: 12px 0; }
.tvw-designer-menubar-copy { flex-direction: column; align-items: stretch; }
.tvw-designer-menubar-in-left { margin-bottom: 16px; }
.tvw-designer-inline { display: block; width: 100%; flex: 1; min-height: 0; overflow-y: auto; padding: 24px; }
.tvw-designer-inline .tvw-simulate-title { margin: 0 0 16px; }
.tvw-designer-hint-no-print-box {
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.tvw-designer-hint-no-print-box:hover {
    background: #eeeeee;
    border-color: #d1d5db;
}
.tvw-designer-hint-no-print-box .tvw-designer-hint-no-print {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #202a34;
    text-align: center;
    line-height: 1.35;
}
.tvw-designer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.tvw-simulate-design-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 20px; background: #202A34; color: #fff; border: 0; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.tvw-simulate-design-btn:hover { background: #101012; }
.tvw-simulate-icon { font-size: 20px; }
.tvw-simulate-hint { margin: 8px 0 0; font-size: 12px; color: #6b7280; }
.tvw-simulate-modal { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.tvw-simulate-modal[aria-hidden="false"] { display: flex; }
.tvw-simulate-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.tvw-simulate-box { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 95vw; height: 90vh; max-height: 90vh; display: flex; flex-direction: column; padding: 24px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); box-sizing: border-box; overflow: hidden; }
.tvw-simulate-box-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.tvw-simulate-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; padding: 0; border: 0; background: #f3f4f6; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: #374151; z-index: 2; }
.tvw-simulate-close:hover { background: #e5e7eb; }
.tvw-simulate-title { margin: 0 0 4px; font-size: 1.25rem; }
.tvw-simulate-subtitle { margin: 0 0 12px; font-size: 13px; color: #6b7280; }
.tvw-simulate-helper-text { margin: 0 0 16px; font-size: 12px; color: #4b5563; }
.tvw-simulate-slot { margin-bottom: 16px; }
.tvw-simulate-slot:last-child { margin-bottom: 0; }
.tvw-simulate-layout { display: flex; gap: 24px; flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.tvw-simulate-left { flex: 1 1 50%; max-width: 50%; min-width: 0; display: flex; flex-direction: column; gap: 20px; min-height: 0; overflow-y: auto; }
.tvw-simulate-right { flex: 1 1 50%; max-width: 50%; min-width: 0; }
/* Upload Front/Back: schmal untereinander, ab ca. 520px nebeneinander (Mobile First) */
.tvw-simulate-uploads-row {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: stretch;
}
@media (min-width: 520px) {
	.tvw-simulate-uploads-row {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 16px;
	}
	.tvw-simulate-uploads-row .tvw-simulate-upload-block {
		flex: 1 1 0;
		min-width: 0;
	}
}
.tvw-simulate-uploads-row .tvw-simulate-upload-block {
	flex: 1;
	min-width: 0;
	background: #f5f5f5;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 16px;
	box-sizing: border-box;
}
.tvw-simulate-preview-switch-left { display: flex; flex-wrap: wrap; gap: 10px; }
.tvw-simulate-preview-switch-inline { display: block; }
.tvw-simulate-preview-switch-inline .tvw-simulate-preview-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: #202a34;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}
.tvw-simulate-preview-switch-inline .tvw-simulate-preview-btn:hover { background: #2d3a47; color: #fff; }
.tvw-simulate-preview-switch-left .tvw-simulate-preview-btn {
    padding: 8px 16px; background: #202A34; color: #fff; border: 0; border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tvw-simulate-preview-switch-left .tvw-simulate-preview-btn:hover { background: #2d3a47; color: #fff; }
.tvw-simulate-preview-switch-left .tvw-simulate-preview-btn.active { background: #202A34; color: #fff; }
.tvw-simulate-preview-switch-right { display: flex; flex-wrap: wrap; gap: 10px; }
.tvw-simulate-preview-switch-right .tvw-simulate-preview-btn {
	padding: 8px 16px; background: #202A34; color: #fff; border: 0; border-radius: 6px;
	font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.tvw-simulate-preview-switch-right .tvw-simulate-preview-btn:hover { background: #2d3a47; color: #fff; }
.tvw-simulate-preview-switch-right .tvw-simulate-preview-btn.active { background: #202A34; color: #fff; }
.tvw-simulate-colors-label { font-weight: 600; font-size: 14px; color: #111; flex-shrink: 0; }
.tvw-simulate-colors { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.tvw-simulate-color-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid #e5e7eb; transition: all 0.2s; flex-shrink: 0; }
.tvw-simulate-color-thumb:hover,
.tvw-simulate-color-thumb.active {
	box-shadow: 0 1px 8px rgba(37,99,235,0.3);
	border-top-color: #202A34;
	border-right-color: #202A34;
	border-bottom-color: #202A34;
	border-left-color: #202A34;
}
.tvw-simulate-right { flex: 1 1 50%; max-width: 50%; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f9fafb; border-radius: 6px; padding: 24px; overflow: hidden; }
.tvw-simulate-view-switch { display: flex; gap: 8px; margin-bottom: 12px; flex-shrink: 0; }
.tvw-simulate-view-btn { padding: 8px 16px; border: 2px solid #e5e7eb; background: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: #6b7280; transition: all 0.2s; }
.tvw-simulate-view-btn:hover {
	color: #202A34;
	border-top-color: #202A34;
	border-right-color: #202A34;
	border-bottom-color: #202A34;
	border-left-color: #202A34;
}
.tvw-simulate-view-btn.active {
	color: #fff;
	background-color: #9A8D84;
	border-top-color: #9A8D84;
	border-right-color: #9A8D84;
	border-bottom-color: #9A8D84;
	border-left-color: #9A8D84;
}
.tvw-simulate-preview { flex: 1; width: 100%; min-height: 420px; max-height: 800px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tvw-simulate-product-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.tvw-simulate-product-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; display: block; }
.tvw-simulate-preview-hint { margin: 10px 0 0; padding: 0; font-size: 12px; color: #9ca3af; text-align: center; line-height: 1.4; flex-shrink: 0; }
.tvw-simulate-logo-overlay { position: absolute; top: 16%; left: 50%; transform: translate(-50%, 0) scale(1); width: 48%; height: 32%; min-height: 100px; background-size: contain; background-position: center; background-repeat: no-repeat; cursor: move; user-select: none; }
.tvw-simulate-logo-overlay.has-logo { opacity: 1; }
/* Resize-Griff: Ecke mit zwei Linien (wie in gängigen Resizern) */
.tvw-logo-resize-handle {
	position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; cursor: se-resize; z-index: 2; box-sizing: border-box;
	border: 2px solid #202a34; border-left: none; border-top: none; background: #fff; border-radius: 0 0 4px 0;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
}
.tvw-logo-resize-handle::before {
	content: ''; position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px;
	border-right: 2px solid #202a34; border-bottom: 2px solid #202a34; border-radius: 0 0 2px 0;
}
.tvw-logo-resize-handle:hover { background: #e8e8e8; }

/* Rotate-Griff: über dem Logo, Kreis mit Pfeil-Andeutung */
.tvw-logo-rotate-handle {
	position: absolute; top: -14px; left: 50%; margin-left: -14px; width: 28px; height: 28px; cursor: grab; z-index: 2; box-sizing: border-box;
	background: #fff; border: 2px solid #202a34; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: #202a34;
}
.tvw-logo-rotate-handle:active { cursor: grabbing; }
.tvw-logo-rotate-handle:hover { background: #e8e8e8; }
.tvw-logo-rotate-handle::after { content: '↻'; font-size: 16px; }
.tvw-simulate-options-bar .tvw-simulate-rotate-row { color: rgba(255,255,255,0.95); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tvw-simulate-options-bar .tvw-simulate-rotate-row input[type="range"] { flex: 1; min-width: 80px; }
.tvw-simulate-hidden { display: none !important; }
.tvw-simulate-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0); }
.tvw-upload-status { font-size: 12px; margin-top: 5px; color: #666; }
/* Optionen-Balken (wie Zusammenfassungsseite: Zurück zum Artikel / Weiter shoppen) */
.tvw-simulate-options-bar {
	background: #202A34;
	padding: 12px 16px;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}
.tvw-simulate-options-bar .tvw-simulate-scale-row,
.tvw-simulate-options-bar .tvw-simulate-size-qty-row,
.tvw-simulate-options-bar .tvw-simulate-placement-row { color: rgba(255,255,255,0.95); }
.tvw-simulate-options-bar .tvw-simulate-placement-error {
	display: block;
	margin-top: 10px;
	padding: 12px 16px;
	background: #b91c1c;
	color: #fff;
	font-size: 14px;
	border-radius: 6px;
	text-align: center;
}
/* Resize-Elemente im Balken in #9a8d84 */
.tvw-simulate-options-bar input[type="range"] {
	flex: 1;
	min-width: 80px;
	accent-color: #9a8d84;
}
.tvw-simulate-options-bar input[type="range"]::-webkit-slider-runnable-track { background: #9a8d84; height: 6px; border-radius: 6px; }
.tvw-simulate-options-bar input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #9a8d84; border: 2px solid #fff; cursor: pointer; margin-top: -5px; }
.tvw-simulate-options-bar input[type="range"]::-moz-range-track { background: #9a8d84; height: 6px; border-radius: 6px; }
.tvw-simulate-options-bar input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #9a8d84; border: 2px solid #fff; cursor: pointer; }
.tvw-simulate-options-bar select {
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #9a8d84;
	background: #ffffff;
	color: #111827;
	font-size: 13px;
	max-width: 100%;
	accent-color: #9a8d84;
}
.tvw-simulate-scale-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.95); }
.tvw-simulate-scale-row input[type="range"] { flex: 1; min-width: 80px; }
/* Größe + Stückzahl in einer Reihe, im Stil des Options-Balkens */
.tvw-simulate-size-qty-row {
	display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; color: rgba(255,255,255,0.95);
}
.tvw-simulate-size-block,
.tvw-simulate-qty-block { display: flex; flex-direction: column; gap: 6px; }
.tvw-simulate-field-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.9; }
.tvw-simulate-size-block select,
.tvw-simulate-qty-block input[type="number"] {
	min-width: 90px; padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(154,141,132,0.5);
	background: #fff; color: #111; font-size: 14px; font-weight: 500;
}
.tvw-simulate-qty-block input[type="number"] { max-width: 80px; text-align: center; }
.tvw-simulate-options-bar .tvw-simulate-size-error { margin-top: 6px; }
.tvw-simulate-placement-row { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.95); }
.tvw-simulate-placement-row select { padding: 6px 10px; border-radius: 6px; border: 1px solid #e5e7eb; font-size: 13px; max-width: 100%; }
.tvw-simulate-placement-error {
	margin-top: 10px;
	padding: 12px 16px;
	background: #b91c1c;
	color: #fff;
	font-size: 14px;
	border-radius: 6px;
	text-align: center;
}
.tvw-simulate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; flex-shrink: 0; }
.tvw-simulate-action-btn {
	flex: 1;
	min-width: 180px;
	padding: 12px 20px;
	border: 0;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	color: #fff;
	background-color: #9A8D84;
}
.tvw-simulate-action-btn:hover {
	transform: translateY(-1px);
	background-color: #006600;
}
.tvw-simulate-action-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.tvw-simulate-close-btn { flex-shrink: 0; margin-top: 12px; }
@media (max-width: 768px) {
    .tvw-simulate-layout { flex-direction: column; }
    .tvw-simulate-preview { min-height: 320px; }
}
.tvw-simulate-upload-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 2px dashed #d1d5db;
	border-radius: 6px;
	padding: 20px 14px;
	min-height: 100px;
	text-align: center;
	cursor: pointer;
	color: #6b7280;
	font-size: 14px;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
	background-color: #cccccc;
}
.tvw-simulate-upload-zone-title { font-weight: 600; color: #374151; font-size: 14px; }
.tvw-simulate-upload-drop { font-size: 13px; line-height: 1.35; color: #6b7280; max-width: 220px; }
.tvw-simulate-upload-hint { font-size: 11px; color: #9ca3af; }
.tvw-simulate-upload-zone:hover { border-color: #202A34; color: #202A34; }
.tvw-simulate-upload-zone:hover .tvw-simulate-upload-zone-title { color: #202A34; }
.tvw-simulate-upload-zone.is-dragover {
	border-color: #202A34;
	border-style: solid;
	background-color: #e8eaf0;
	color: #111827;
}
.tvw-simulate-upload-zone.is-dragover .tvw-simulate-upload-zone-title { color: #202A34; }
.tvw-simulate-clear-logo { margin-top: 8px; padding: 6px 12px; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 8px; font-size: 13px; cursor: pointer; }
.tvw-simulate-close-btn {
	margin-top: 16px;
	width: 100%;
	padding: 12px;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	background-color: #202A34;
}
.tvw-packshot-gallery { margin-bottom: 20px; text-align: center; }
.tvw-packshot-main-wrap { position: relative; display: inline-block; width: 100%; max-width: 100%; }
.tvw-packshot-main { position: relative; }
.tvw-gallery-prev,
.tvw-gallery-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; padding: 0; margin: 0;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.5); color: #111;
    font-size: 24px; line-height: 1; cursor: pointer; z-index: 5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: background 0.2s, box-shadow 0.2s;
}
.tvw-gallery-prev:hover,
.tvw-gallery-next:hover { background: rgba(255,255,255,0.9); box-shadow: 0 2px 16px rgba(0,0,0,0.1); }
.tvw-gallery-prev { left: 12px; }
.tvw-gallery-next { right: 12px; }
.tvw-packshot-main img { max-width: 100%; height: 100%; object-fit: contain; border-radius: 6px; transition: all 0.4s ease; }
.tvw-packshot-thumbs { display: flex; justify-content: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.tvw-view-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid #f0f0f0; transition: all 0.2s; opacity: 0.7; }
.tvw-view-thumb:hover { transform: translateY(-2px); opacity: 1; border-color: #ddd; }
.tvw-view-thumb.active {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	opacity: 1;
	border-top-color: #202A34;
	border-right-color: #202A34;
	border-bottom-color: #202A34;
	border-left-color: #202A34;
}
.tvw-packshot-info { margin-top: 15px; font-size: 15px; color: #111; font-weight: 600; }
.tvw-packshot-selected { outline: 1px solid #202A34; }

/* ========== Matrix-Tabelle, Upload-Bereich, Aktionen ========== */
.tvw-matrix-wrapper { margin: 30px 0; font-family: 'Outfit', 'Inter', sans-serif; color: #111; }
.tvw-table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    background: #fff;
}
/* Matrix wie TVW 2026: Tabelle volle Breite, Mengenzellen min-width, Input kompakt mit max-width */
.tvw-matrix-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tvw-matrix-table th,
.tvw-matrix-table td { padding: 10px 6px; border-bottom: 1px solid rgba(0,0,0,0.03); text-align: center; }
.tvw-matrix-table .col-color-info { padding-left: 12px; padding-right: 12px; }
.tvw-matrix-table thead th {
    background: #fcfcfc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #888;
}
/* Größe über jedem Mengenfeld (gleicher Stil wie Tabellenheader, Orientierung bei langen Tabellen) */
.tvw-qty-size-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #888;
    margin-bottom: 4px;
}
.col-color-info { display: flex; align-items: center; gap: 10px; text-align: left !important; overflow: hidden; }
.tvw-color-thumb { flex-shrink: 0; }
.tvw-color-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvw-matrix-table th.col-color,
.tvw-matrix-table td:first-child { width: 175px; min-width: 175px; max-width: 175px; border-right: 1px solid rgba(0,0,0,0.05); }
.tvw-matrix-table td.col-qty { min-width: 52px; }
.tvw-color-thumb {
    width: 40px; height: 40px; border-radius: 6px; cursor: pointer; object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tvw-color-thumb:hover { transform: scale(1.15) rotate(2deg); z-index: 10; }
.tvw-color-label { font-size: 13px; font-weight: 600; color: #333; }
/* Rechteckig: breiter, flacher – TopTex KPL Matrix */
.tvw-qty-input {
    width: 100%; max-width: 52px; padding: 2px 6px; border: 1px solid #ccc; border-radius: 4px;
    text-align: center; font-weight: 600; font-size: 13px; line-height: 1.2;
    color: #222; background: #fff; box-sizing: border-box;
}
.tvw-qty-input:hover { border-color: #999; }
.tvw-qty-input:focus { border-color: #202a34; background: #fff; outline: none; box-shadow: 0 0 0 1px rgba(32,42,52,0.2); }
.tvw-qty-input[value="0"],
.tvw-qty-input:placeholder-shown { color: #666; }
.tvw-qty-input::-webkit-inner-spin-button,
.tvw-qty-input::-webkit-outer-spin-button {
    opacity: 0.7;
    background: #eee;
    border-left: 1px solid #ccc;
    height: 100%;
}

/* TopTex KPL: Matrix-Input erzwingen (Produktseite) – überschreibt Theme/Plugins */
body.single-product .tvw-matrix-wrapper .tvw-matrix-table .tvw-qty-input {
    width: 100% !important;
    max-width: 52px !important;
    min-width: 40px !important;
    padding: 2px 6px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #222 !important;
    -webkit-text-fill-color: #222 !important;
    background: #fff !important;
    opacity: 1 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}
body.single-product .tvw-matrix-wrapper .tvw-matrix-table td.col-qty {
    min-width: 52px !important;
}

/* Mobil/Tablet: Matrix horizontal scrollen statt zusammenzudruecken (table-layout:fixed + width:100%) */
@media (max-width: 992px) {
	.tvw-table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		max-width: 100%;
	}
	.tvw-table-scroll .tvw-matrix-table {
		width: max-content;
		min-width: 100%;
		table-layout: auto;
	}
	.tvw-matrix-table th.col-size,
	.tvw-matrix-table td.col-qty {
		min-width: 4.25rem;
	}
	.tvw-matrix-table th.col-color,
	.tvw-matrix-table td:first-child {
		min-width: 8.75rem;
		max-width: none;
		width: auto;
	}
	.tvw-matrix-table thead th {
		white-space: nowrap;
	}
	.col-color-info {
		overflow: visible;
	}
	.tvw-matrix-table .tvw-color-label {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}
	body.single-product .tvw-matrix-wrapper .tvw-matrix-table td.col-qty {
		min-width: 4.25rem !important;
	}
	/* Touch-Ziele + 16px gegen iOS-Zoom bei Fokus */
	body.single-product .tvw-matrix-wrapper .tvw-matrix-table .tvw-qty-input {
		width: 3rem !important;
		max-width: none !important;
		min-width: 2.75rem !important;
		min-height: 2.5rem !important;
		padding: 0.35rem 0.3rem !important;
		font-size: 1rem !important;
		line-height: 1.25 !important;
		box-sizing: border-box !important;
	}
}

.tvw-matrix-table .na { opacity: 0.2; font-size: 12px; }

/* Nicht lieferbar: roter Rahmen nur um das Eingabefeld, nicht um die ganze Zelle/Zeile */
.tvw-matrix-cell-outofstock { border: none; }
.tvw-matrix-cell-outofstock .tvw-qty-input {
    border: 1px solid rgba(153,27,27,0.5);
    pointer-events: none;
    background: #fafafa;
}
.tvw-matrix-row-color { cursor: pointer; transition: background 0.2s; }
.tvw-matrix-row-color:hover { background: rgba(0,0,0,0.03); }
.tvw-matrix-row-selected { background: rgba(32,42,52,0.06); outline: 2px solid #202A34; outline-offset: -2px; }

.tvw-matrix-intro { margin: 0 0 16px; font-size: 14px; color: #444; line-height: 1.5; }
.tvw-matrix-intro strong { color: #111; }
.tvw-upload-section { margin-bottom: 30px; }
.tvw-upload-section-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tvw-upload-section-title { font-weight: 700; font-size: 15px; color: #111; }
.tvw-upload-simulate-hint { padding: 8px 14px; font-size: 13px; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; border-radius: 8px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.tvw-upload-simulate-hint:hover { background: #e0e7ff; }
.tvw-upload-zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 600px) { .tvw-upload-zones { grid-template-columns: repeat(4, 1fr); } }
.tvw-upload-zone { display: flex; flex-direction: column; gap: 8px; }
.tvw-upload-zone .tvw-upload-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 16px; text-align: center; gap: 4px;
}
.tvw-upload-zone-label { font-weight: 600; font-size: 14px; color: #111; display: block; }
.tvw-upload-zone-hint { font-size: 11px; color: #888; }
.tvw-matrix-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0); }
.tvw-upload-box {
    border: 2px dashed #e0e0e0; border-radius: 16px; padding: 30px;
    text-align: center; cursor: pointer; transition: all 0.3s;
    background: rgba(250,250,250,0.5);
    display: flex; align-items: center; justify-content: center; gap: 20px;
}
.tvw-upload-box:hover { border-color: #111; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.tvw-upload-icon { font-size: 32px; filter: grayscale(1); }
.tvw-upload-text { font-size: 14px; color: #444; text-align: left; line-height: 1.4; }
.tvw-upload-text strong { display: block; margin-bottom: 2px; font-size: 15px; }
.tvw-upload-text span { color: #888; font-size: 12px; }

.tvw-file-list { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 10px; }
.tvw-file-list:has(.tvw-file-item) .tvw-file-list-empty-hint { display: none !important; }
.tvw-file-item {
    background: #fff; border: 1px solid #eee; padding: 8px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04); animation: tvw-fadeIn 0.3s ease;
}
.tvw-file-item-thumb { flex-shrink: 0; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: center; background: #f9f9f9; }
.tvw-file-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvw-file-item-placeholder { font-size: 10px; font-weight: 700; color: #6b7280; }
.tvw-file-item-name { flex: 1; min-width: 0; word-break: break-word; }
@keyframes tvw-fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.tvw-file-item.loading { opacity: 0.7; border-style: dashed; }
.tvw-file-remove {
    cursor: pointer; color: #ff4d4d; font-size: 18px; line-height: 1;
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.2s;
}
.tvw-file-remove:hover { background: #fff0f0; }

.tvw-matrix-logo-hint { margin: 16px 0; padding: 14px 18px; background: #16a34a; color: #fff; border-radius: 8px; font-size: 15px; font-weight: 600; }
.tvw-matrix-actions {
    display: flex; align-items: center; justify-content: space-between; padding: 25px;
    border: 0; border-radius: 6px; background: #202A34; color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: sticky; bottom: 20px; z-index: 100;
}
.tvw-matrix-actions-top {
    margin-bottom: 16px;
    position: relative;
    bottom: auto;
}
.tvw-summary { font-size: 16px; font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
.tvw-matrix-summary-line { display: block; }
.tvw-summary strong { color: #fff; border-bottom: 2px solid rgba(255,255,255,0.3); font-size: 18px; }

.tvw-btn-primary {
    background: #fff; color: #9a8d84; border: 2px solid #9a8d84; padding: 14px 32px;
    border-radius: 6px; font-weight: 700; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
}
.tvw-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.tvw-btn-primary:hover:not(:disabled) { transform: scale(1.05) translateY(-2px); box-shadow: 0 10px 20px rgba(154,141,132,0.3); color: #7d7269; border-color: #7d7269; }

.tvw-btn-secondary {
    background: transparent; color: #9a8d84; border: 2px solid #9a8d84; padding: 12px 28px;
    border-radius: 6px; font-weight: 600; cursor: pointer; margin-left: 12px;
    transition: all 0.2s ease; font-size: 14px;
}
.tvw-btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.tvw-btn-secondary:hover:not(:disabled) { background: rgba(154,141,132,0.15); color: #7d7269; border-color: #7d7269; }

/* ========== Textil-Anfrage-Seite (tvw-textil-anfrage-page.php) ========== */
.tvw-anfrage-wrap { width: 100%; max-width: 1500px; margin: 0 auto; padding: 16px; box-sizing: border-box; }
.tvw-anfrage-title { margin: 0 0 12px 0; font-size: 1.5rem; }
.tvw-anfrage-status { margin: 10px 0 16px 0; padding: 12px 16px; border-radius: 10px; }
.tvw-anfrage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tvw-anfrage-left { min-width: 0; }
.tvw-anfrage-right { min-width: 0; }
.tvw-anfrage-form-title { margin: 0 0 16px 0; font-weight: 600; color: #111; font-size: 1.1rem; }
.tvw-anfrage-form-title span { display: block; font-weight: 500; opacity: 0.9; }
.tvw-anfrage-form { background: #f9fafb; padding: 20px; border-radius: 6px; border: 1px solid #e5e7eb; }
.tvw-anfrage-form label { display: block; margin-bottom: 12px; }
.tvw-anfrage-form label span { display: block; margin-bottom: 4px; font-weight: 500; }
.tvw-anfrage-form .tvw-anfrage-fields-table td { width: 50%; }
@media (max-width: 520px) {
    .tvw-anfrage-form .tvw-anfrage-fields-table,
    .tvw-anfrage-form .tvw-anfrage-fields-table tbody,
    .tvw-anfrage-form .tvw-anfrage-fields-table tr { display: block !important; }
    .tvw-anfrage-form .tvw-anfrage-fields-table td { display: block !important; width: 100% !important; padding: 0 0 12px 0 !important; }
}
.tvw-anfrage-form input,
.tvw-anfrage-form textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #d1d5db; box-sizing: border-box; }
.tvw-anfrage-form .tvw-anfrage-consent { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; }
.tvw-anfrage-form .tvw-anfrage-consent input { width: auto; margin-top: 4px; }
.tvw-anfrage-submit { margin-top: 12px; padding: 12px 20px; border-radius: 10px; border: 0; background: #111; color: #fff; cursor: pointer; font-weight: 600; }
@media (max-width: 768px) { .tvw-anfrage-grid { grid-template-columns: 1fr; } }

/* ========== Produktbild-Zoom (tvw-product-image-zoom.php) ========== */
.tvw-zoom-wrap { position: relative; cursor: crosshair; overflow: hidden; }
.tvw-zoom-wrap .tvw-zoom-pane {
    display: none;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}
.tvw-zoom-wrap.tvw-zoom-active .tvw-zoom-pane { display: block; }
.tvw-zoom-wrap .tvw-zoom-pane img {
    position: absolute;
    max-width: none;
    display: block;
}
.woo-variation-gallery-slider-wrapper.tvw-zoom-wrap { display: block; }
.tvw-packshot-main.tvw-zoom-wrap { display: block; }

/* ========== TVW Produktfilter (tvw-produktfilter.php) – horizontal mit Dropdowns, TopTex-Style ========== */
.tvw-produktfilter--horizontal {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	padding: 12px 16px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(32,42,52,0.06);
}
.tvw-produktfilter__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}
.tvw-produktfilter__field {
	display: flex;
	align-items: center;
	gap: 8px;
}
.tvw-produktfilter__label {
	font-size: 13px;
	font-weight: 600;
	color: #202A34;
	margin: 0;
	white-space: nowrap;
}
.tvw-produktfilter__select {
	padding: 8px 32px 8px 12px;
	font-size: 14px;
	color: #374151;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 6px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23202A34' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	min-width: 140px;
	transition: border-color 0.2s, background-color 0.2s;
}
.tvw-produktfilter__select:hover {
	border-color: #9A8D84;
}
.tvw-produktfilter__select:focus {
	outline: none;
	border-color: #202A34;
}
.tvw-produktfilter__reset-link {
	font-size: 13px;
	font-weight: 600;
	color: #9A8D84;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}
.tvw-produktfilter__reset-link:hover {
	color: #202A34;
	background: #f9fafb;
}
@media (max-width: 600px) {
	.tvw-produktfilter__form { flex-direction: column; align-items: stretch; }
	.tvw-produktfilter__field { flex-direction: column; align-items: stretch; }
	.tvw-produktfilter__select { min-width: 100%; }
}

/* ========== Produktblock „Publikum“ (Divi Library) – Matrix-Style ==========
   Vorlage: Matrix (Rahmen, Hintergründe, Schatten). Outfit/Inter, #202A34, #9a8d84. */
.tvw-product-block-publikum {
	max-width: 100%;
	font-family: 'Outfit', 'Inter', sans-serif;
	color: #111;
	line-height: 1.5;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.03);
	padding: 24px;
}
.tvw-product-block-publikum .tvw-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: #202a34;
	letter-spacing: -0.01em;
}
.tvw-product-block-publikum .tvw-bullets {
	list-style: none;
	padding: 14px 18px;
	margin: 0 0 1rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}
.tvw-product-block-publikum .tvw-bullets li {
	padding-left: 1.25rem;
	position: relative;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
	color: #444;
}
.tvw-product-block-publikum .tvw-bullets li:last-child { margin-bottom: 0; }
.tvw-product-block-publikum .tvw-bullets li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #9a8d84;
	font-weight: bold;
}
.tvw-product-block-publikum .tvw-specs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 12px 16px;
	background: #fcfcfc;
	border: 1px solid rgba(0,0,0,0.05);
	border-radius: 10px;
}
.tvw-product-block-publikum .tvw-weight {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #333;
}
.tvw-product-block-publikum .tvw-weight-icon {
	width: 1.1em;
	height: 1.1em;
	fill: #9a8d84;
	flex-shrink: 0;
}
.tvw-product-block-publikum .tvw-product-cert-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.tvw-product-block-publikum .tvw-badge {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	font-size: 0.78rem;
	font-weight: 700;
	border-radius: 8px;
	background: #fff;
	color: #202a34;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.tvw-product-block-publikum .tvw-product-alternatives {
	font-size: 0.9rem;
	color: #444;
	margin-bottom: 1rem;
	padding: 12px 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	line-height: 1.5;
}
.tvw-product-block-publikum .tvw-product-alternatives a {
	color: #1d4ed8;
	text-decoration: none;
	font-weight: 500;
}
.tvw-product-block-publikum .tvw-product-alternatives a:hover {
	text-decoration: underline;
	color: #1e40af;
}
.tvw-product-block-publikum .tvw-composition {
	font-size: 0.95rem;
	margin-bottom: 1rem;
	padding: 12px 16px;
	background: #fcfcfc;
	border: 1px solid rgba(0,0,0,0.05);
	border-radius: 10px;
	color: #444;
}
.tvw-product-block-publikum .tvw-variant-hint {
	font-size: 0.85rem;
	color: #666;
	margin-top: 0.5rem;
}

/* Farbpalette (Matrix-Look: Rahmen, Schatten wie .tvw-table-scroll / .tvw-color-thumb) */
.tvw-product-block-publikum .tvw-product-colors-info,
.tvw-product-colors-info {
	margin-bottom: 1rem;
	padding: 18px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.05);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.tvw-product-block-publikum .tvw-product-colors-info-label,
.tvw-product-colors-info-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
	color: #888;
	margin-bottom: 12px;
}
.tvw-product-block-publikum .tvw-product-colors-info-inner,
.tvw-product-colors-info-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}
.tvw-product-block-publikum .tvw-product-color-item,
.tvw-product-color-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}
.tvw-product-block-publikum .tvw-product-color-packshot,
.tvw-product-color-packshot {
	display: block;
	object-fit: contain;
	max-width: 100%;
	height: auto;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: box-shadow 0.2s;
}
.tvw-product-block-publikum .tvw-product-color-placeholder,
.tvw-product-color-placeholder {
	display: block;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.tvw-product-block-publikum .tvw-product-color-name,
.tvw-product-color-name {
	font-size: 12px;
	font-weight: 600;
	color: #333;
}

/* Verfügbare Größen (gleicher Kasten-Stil) */
.tvw-product-block-publikum .tvw-product-sizes-info,
.tvw-product-sizes-info {
	margin-bottom: 0;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.05);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.03);
	font-size: 0.95rem;
}
.tvw-product-block-publikum .tvw-product-sizes-info-label,
.tvw-product-sizes-info-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
	color: #888;
	margin-right: 0.5rem;
}
.tvw-product-block-publikum .tvw-product-sizes-info-list,
.tvw-product-sizes-info-list {
	color: #111;
	font-weight: 600;
}

/* ========== Versandkosten-Tabelle (Kundenansicht) ========== */
.tvw-versandkosten-tabelle {
	font-family: 'Outfit', 'Inter', sans-serif;
	width: 100%;
	max-width: 560px;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.03);
	overflow: hidden;
}
.tvw-versandkosten-tabelle th,
.tvw-versandkosten-tabelle td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tvw-versandkosten-tabelle thead th {
	background: #fcfcfc;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
	color: #888;
}
.tvw-versandkosten-tabelle tbody tr:last-child td {
	border-bottom: none;
}
.tvw-versandkosten-tabelle tbody tr:hover {
	background: rgba(0,0,0,0.02);
}
.tvw-versandkosten-tabelle td {
	font-size: 0.95rem;
	color: #111;
}
.tvw-versandkosten-tabelle .tvw-versand-region {
	font-weight: 600;
	color: #202a34;
}
.tvw-versandkosten-tabelle .tvw-versand-hinweis {
	margin-top: 10px;
	font-size: 0.9rem;
	color: #666;
}
.tvw-versandkosten-tabelle-wrapper {
	margin: 1rem 0;
}
.tvw-versandkosten-tabelle-wrapper .tvw-versand-titel {
	font-size: 1rem;
	font-weight: 700;
	color: #202a34;
	margin-bottom: 8px;
}
