/**
 * wcpc-styles.css
 * Einzige CSS-Datei für den WCPC-Druckkalkulator.
 * Zusammenführung von wcpc-frontend.css + wcpc-calculator.css + wcpc-layout-v8.css
 * Stand: v8.1 – alle Konflikte zugunsten aktueller Werte aufgelöst.
 */

/* ==========================================================================
   1. MODAL & OVERLAY
   ========================================================================== */

.wcpc-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Basis-Wrapper */
.wcpc-modal-wrapper {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

/* Accordion-Layout-Variante: Breite + Höhe */
.wcpc-modal-wrapper.wcpc-accordion-layout {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    width: 95vw;
    max-width: 1400px;
}

.wcpc-modal-close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 36px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    z-index: 50;
    transition: color 0.2s;
}
.wcpc-modal-close:hover { color: #333; }

/* ==========================================================================
   2. GRID-LAYOUT (2fr Konfigurator / 1fr Berechnung)
   ========================================================================== */

.wcpc-calculator-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wcpc-grid-accordion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 20px 12px;
    align-items: start;
    overflow: hidden;
}

/* Linke Spalte */
.wcpc-column-config {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.wcpc-column-config::-webkit-scrollbar { width: 5px; }
.wcpc-column-config::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Rechte Spalte */
.wcpc-column-calc {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.wcpc-column-calc::-webkit-scrollbar { width: 5px; }
.wcpc-column-calc::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ==========================================================================
   3. ACCORDION-BOXEN (Links: Produkte / Druckmotiv)
   ========================================================================== */

.wcpc-compact-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 14px;
    overflow: hidden;
}

/* Header – grüner Balken */
.wcpc-compact-header {
    background: #1f8a3a;
    color: #fff;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.wcpc-compact-header .wcpc-acc-icon {
    color: #fff;
    font-size: 16px;
    transition: transform 0.2s ease;
}

/* .wcpc-accordion-header ist dieselbe Rolle wie .wcpc-compact-header –
   beide Klassen werden am selben Element gesetzt, deshalb hier gemeinsam: */
.wcpc-compact-header.wcpc-accordion-header {
    background: #1f8a3a;
    color: #fff;
    font-weight: 700;
}
.wcpc-compact-header.wcpc-accordion-header:hover {
    background: #186e30;
}
.wcpc-accordion-item.active .wcpc-compact-header.wcpc-accordion-header {
    background: #1f8a3a;
    border-bottom: none;
}
.wcpc-compact-header.wcpc-accordion-header span,
.wcpc-compact-header.wcpc-accordion-header .wcpc-acc-icon {
    color: #fff;
}

.wcpc-accordion-item {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
.wcpc-accordion-item:last-child { border-bottom: none; }

/* Inhalt: geschlossen = ausgeblendet, Icon dreht sich */
.wcpc-accordion-content {
    display: none;
    padding: 14px 16px;
    background: #fff;
}
.wcpc-accordion-item.active .wcpc-accordion-content { display: block; }
.wcpc-accordion-item:not(.active) .wcpc-accordion-content { display: none !important; }
.wcpc-accordion-item:not(.active) .wcpc-acc-icon { transform: rotate(180deg); }

.wcpc-acc-icon {
    font-size: 18px;
    color: #777;
    transition: transform 0.3s;
}
.wcpc-accordion-item.active .wcpc-acc-icon { transform: rotate(180deg); }

.wcpc-compact-body { padding: 14px 16px; }

/* ==========================================================================
   4. PRODUKT-META (Bild + Name in linker Spalte)
   ========================================================================== */

.wcpc-product-meta-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.wcpc-product-thumb img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
}
.wcpc-product-name {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 3px;
    color: #222;
}
.wcpc-product-code {
    font-size: 11px;
    color: #888;
}

.wcpc-calc-variant-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

/* ==========================================================================
   5. VARIANTEN-SWATCHES
   ========================================================================== */

.wcpc-swatch-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, 50px);
    gap: 6px;
    flex-wrap: unset;
}

.wcpc-swatch {
    border: 2px solid #eee;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5px;
}
.wcpc-swatch:hover { border-color: #ccc; }
.wcpc-swatch.selected { border-color: #1f8a3a; box-shadow: 0 0 0 2px rgba(31,138,58,0.2); }

/* Bild-Swatches */
.wcpc-swatch.wcpc-swatch-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    transition: border-color 0.15s;
}
.wcpc-swatch.wcpc-swatch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wcpc-swatch.wcpc-swatch-image .wcpc-swatch-label-inside { display: none; }
.wcpc-swatch.wcpc-swatch-image.selected,
.wcpc-swatch.wcpc-swatch-image:hover { border-color: #1f8a3a; }

/* Text/Größen-Swatches */
.wcpc-swatch.wcpc-swatch-label {
    width: 50px;
    height: 50px;
    min-height: 50px !important;
    padding: 0 !important;
    font-size: 11px !important;
    border-radius: 4px;
    border: 1px solid #ddd !important;
    background: #f7f7f7 !important;
    color: #444 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-weight: 600;
}
.wcpc-swatch.wcpc-swatch-label:hover {
    border-color: #1f8a3a !important;
    background: #f0faf4 !important;
    color: #1f8a3a !important;
}
.wcpc-swatch.wcpc-swatch-label.selected {
    border-color: #1f8a3a !important;
    background: #1f8a3a !important;
    color: #fff !important;
}

.wcpc-swatch-label-inside {
    position: absolute;
    bottom: 8px; left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #666;
    line-height: 1.1;
    padding: 0 5px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   6. DRUCKPOSITIONEN – Text-only Tiles
   ========================================================================== */

.wcpc-visual-select-wrapper,
#wcpc-position-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#wcpc-position-grid.wcpc-visual-select-wrapper {
    gap: 6px;
}

.wcpc-position-tile {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: auto;
    min-height: unset;
    min-width: unset;
}
.wcpc-position-tile:hover {
    border-color: #1f8a3a;
    background: #f0faf4;
    box-shadow: 0 0 0 2px rgba(31,138,58,0.10);
}
.wcpc-position-tile.selected {
    border-color: #1f8a3a;
    background: #1f8a3a;
    box-shadow: 0 0 0 2px rgba(31,138,58,0.18);
}
.wcpc-position-tile .wcpc-tile-image { display: none; }
.wcpc-position-tile .wcpc-tile-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0;
}
.wcpc-position-tile.selected .wcpc-tile-label { color: #fff; }

.wcpc-position-tile.wcpc-tile-none {
    border-style: dashed;
}
.wcpc-position-tile.wcpc-tile-none .wcpc-tile-label {
    color: #999;
    font-weight: 400;
}
.wcpc-position-tile.wcpc-tile-none.selected .wcpc-tile-label { color: #fff; }

/* ==========================================================================
   7. DRUCKTECHNIKEN – Media-Cards
   ========================================================================== */

.wcpc-technique-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.wcpc-group-header { display: none; }
.wcpc-tech-meta, .wcpc-color-badge, .wcpc-color-num { display: none !important; }

.wcpc-technique-tile.wcpc-tech-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.wcpc-technique-tile.wcpc-tech-card:hover {
    border-color: #1f8a3a;
    box-shadow: 0 0 0 2px rgba(31,138,58,0.12);
}
.wcpc-technique-tile.wcpc-tech-card.selected {
    border-color: #1f8a3a;
    background: #f0faf4;
    box-shadow: 0 0 0 2px rgba(31,138,58,0.2);
}

.wcpc-tech-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.wcpc-tech-card-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}
.wcpc-tech-card-img--placeholder .dashicons {
    font-size: 32px;
    color: #bbb;
    width: 32px;
    height: 32px;
}
.wcpc-tech-card-body { padding: 8px 6px; flex: 1; }
.wcpc-tech-card-name { font-size: 12px; font-weight: 700; color: #222; margin-bottom: 4px; line-height: 1.2; }
.wcpc-tech-card-meta { display: flex; flex-direction: column; gap: 2px; }
.wcpc-tech-card-colors { font-size: 10px; font-weight: 600; color: #444; line-height: 1.3; }
.wcpc-tech-card-dim { font-size: 10px; color: #666; line-height: 1.3; }

/* ==========================================================================
   8. PARAMETER-BUTTONS (Farben nach Technikauswahl)
   ========================================================================== */

#wcpc-param-container { margin-top: 14px; }

.wcpc-param-group { margin-bottom: 12px; }
.wcpc-param-group:last-child { margin-bottom: 0; }

.wcpc-param-label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
    display: block;
}

.wcpc-param-tiles { display: flex; flex-wrap: wrap; gap: 6px; }

.wcpc-parameter-tile {
    padding: 7px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1;
}
.wcpc-parameter-tile:hover {
    border-color: #1f8a3a;
    background: #f0faf4;
    color: #1f8a3a;
}
.wcpc-parameter-tile.active {
    border-color: #1f8a3a;
    background: #1f8a3a;
    color: #fff;
}

/* ==========================================================================
   9. STAFFELPREISE + MENGENFELD
   ========================================================================== */

.wcpc-qty-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.wcpc-qty-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}
.wcpc-qty-input-row label {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
.wcpc-qty-input-row input { width: 90px; }
.wcpc-qty-input-row #wcpc-quantity.wcpc-input {
    width: 110px;
    max-width: 110px;
    flex: 0 0 110px;
}

.wcpc-scale-note { font-size: 11px; color: #999; margin-top: 4px; }
.wcpc-scale-wrapper { margin-top: 10px; }

.wcpc-quantity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
    border: none;
}
.wcpc-quantity-table th {
    background: transparent;
    padding: 6px 0;
    text-align: left;
    color: #999;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}
.wcpc-quantity-table td { padding: 6px 0; border: none; color: #333; }
.wcpc-quantity-table tr[data-qty]:hover { background: #f9f9f9; cursor: pointer; }
.wcpc-quantity-table tr.selected { background: transparent; font-weight: 700; color: #1f8a3a; }
.wcpc-quantity-table tr.selected td:first-child:before { content: "• "; color: #1f8a3a; margin-right: 5px; }

/* ==========================================================================
   10. DRUCKMOTIV-HEADER (Vorschau-Block + Setname)
   ========================================================================== */

.wcpc-motiv-header-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.wcpc-motiv-preview {
    width: 70px; height: 70px;
    background: #1f8a3a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wcpc-motiv-preview-placeholder {
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    text-align: center;
}
.wcpc-motiv-meta { flex: 1; min-width: 0; }
.wcpc-motiv-label { font-size: 11px; color: #888; margin-bottom: 2px; }
.wcpc-motiv-setname { font-weight: 700; font-size: 14px; color: #222; margin-bottom: 7px; }

.wcpc-printset-name { width: 100%; margin-bottom: 4px; }

.wcpc-motiv-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.wcpc-motiv-action-link {
    font-size: 12px;
    color: #1565c0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.wcpc-motiv-action-link:hover { color: #0d47a1; text-decoration: underline; }
.wcpc-motiv-action-link .dashicons { font-size: 14px; width: 14px; height: 14px; }

.wcpc-upload-hint { font-size: 11px; color: #999; margin-top: 4px; line-height: 1.3; }
.wcpc-vis-note {
    font-size: 11px; color: #666;
    background: #f8f8f8;
    border-left: 3px solid #ccc;
    padding: 7px 10px;
    border-radius: 0 4px 4px 0;
    margin: 10px 0 0;
    line-height: 1.45;
}

/* ==========================================================================
   11. KONFIGURATIONS-SEKTIONEN (innerhalb Druckmotiv)
   ========================================================================== */

.wcpc-config-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.wcpc-config-section-title { font-weight: 700; font-size: 13px; color: #222; margin-bottom: 12px; }
.wcpc-section-label { font-weight: 700; font-size: 12px; color: #444; margin: 12px 0 7px; }

/* ==========================================================================
   12. RECHTE SPALTE – ONLINE-BERECHNUNG
   ========================================================================== */

.wcpc-calc-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 12px;
}
.wcpc-calc-header {
    background: #1f8a3a;
    padding: 11px 14px;
}
.wcpc-calc-header h4 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.wcpc-calc-body { padding: 0 14px 14px; }

.wcpc-calc-section { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.wcpc-calc-section:last-of-type { border-bottom: none; }

/* Zusammenfassung: gerahmte Tabelle wie Promotron */
.wcpc-calc-summary .wcpc-price-table {
    border: 1px solid #ddd !important;
    margin-top: 4px !important;
}
.wcpc-calc-summary .wcpc-price-table td {
    border-bottom: 1px solid #eee !important;
    padding: 6px 8px !important;
}
.wcpc-calc-summary .wcpc-row-total td {
    border-bottom: none !important;
    background: #fafafa !important;
}
.wcpc-calc-section-title {
    font-weight: 700;
    font-size: 14px;
    color: #1f8a3a;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 8px;
}
.wcpc-calc-product-title { font-size: 13px; color: #333; font-weight: 600; margin-bottom: 6px; }

/* Preistabelle */
.wcpc-price-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 15px !important;
    border: none !important;
    background: transparent !important;
}
.wcpc-price-table td,
.wcpc-price-table th {
    border: none !important;
    background: transparent !important;
    padding: 5px 0 !important;
}
.wcpc-row-sub td { font-size: 14px !important; color: #555 !important; vertical-align: top !important; }
.wcpc-price-value {
    text-align: right !important;
    font-weight: 700 !important;
    color: #333 !important;
    white-space: nowrap !important;
    padding-left: 10px !important;
}
.wcpc-row-total td {
    padding-top: 12px !important;
    border-top: 2px solid #333 !important;
    font-size: 16px !important;
    color: #333 !important;
    vertical-align: middle !important;
}
.wcpc-grand-total-value {
    text-align: right !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #333 !important;
    white-space: nowrap !important;
    padding-left: 10px !important;
}
.wcpc-grand-total-value { display: block; font-size: 18px; font-weight: 700; color: #111; }
#wcpc-row-handling td { color: #888 !important; font-style: italic !important; padding-bottom: 4px !important; }

.wcpc-per-unit-display { font-size: 11px; color: #888; margin-top: 4px; text-align: right; }
.wcpc-tax-info { font-size: 11px; color: #888; text-align: right; margin-top: -10px; margin-bottom: 20px; line-height: 1.3; }

/* ==========================================================================
   13. CTA-BUTTON
   ========================================================================== */

.wcpc-apply-config-btn,
#wcpc-apply-config-button.button.alt,
.wcpc-apply-config-btn.button.alt {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: center;
    background: #1f8a3a;
    border-color: #1f8a3a;
    color: #fff;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s;
    text-transform: uppercase;
    border: none;
}
.wcpc-apply-config-btn:hover,
#wcpc-apply-config-button.button.alt:hover,
.wcpc-apply-config-btn.button.alt:hover {
    background: #156e2f;
    border-color: #156e2f;
}
.wcpc-apply-config-btn:disabled,
#wcpc-apply-config-button.button.alt:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wcpc-reset-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

/* ==========================================================================
   14. LOGO-UPLOAD
   ========================================================================== */

.wcpc-sidebar-upload-btn {
    background: #fff;
    border: 2px solid #1f8a3a;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    width: auto;
}
.wcpc-sidebar-upload-btn:hover { background: #f0faf4; border-color: #156e2f; }

.wcpc-upload-success {
    display: block;
    background: #e6fffa;
    border: 1px solid #b2f5ea;
    color: #2c7a7b;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.wcpc-remove-logo { color: #c53030; margin-left: 5px; text-decoration: none; font-weight: normal; }
.wcpc-remove-logo:hover { text-decoration: underline; }
.wcpc-upload-error { color: #c53030; font-size: 12px; font-weight: 600; }

/* ==========================================================================
   15. TRUST-BOX + LIEFERINFO
   ========================================================================== */

.wcpc-trust-box-simple { margin-top: 15px; }
.wcpc-trust-box-simple ul {
    margin: 0;
    padding: 10px 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wcpc-trust-box-simple li {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
}
.wcpc-trust-box-simple .dashicons {
    color: #1f8a3a;
    font-size: 14px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.wcpc-delivery-info {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.wcpc-delivery-info .dashicons {
    font-family: "dashicons";
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 1;
    color: #166534;
    display: inline-block;
}

/* ==========================================================================
   16. MULTI-SET / DRUCKSETS
   ========================================================================== */

.wcpc-multiset-add-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 1px dashed #d0d0d0;
    margin-top: 10px;
}
.wcpc-multiset-add-btn {
    background: #fff !important;
    border: 2px solid #1f8a3a !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s !important;
    line-height: 1.4 !important;
}
.wcpc-multiset-add-btn:hover {
    background: #f0faf4 !important;
    border-color: #156e2f !important;
}
.wcpc-multiset-add-status { font-size: 12px; font-weight: 600; }

.wcpc-multiset-panel { margin-top: 15px; }
.wcpc-multiset-panel-header {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

/* Set-Card */
.wcpc-set-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #1f8a3a;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.wcpc-set-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}
.wcpc-set-card-titles { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.wcpc-set-card-name { font-size: 13px; font-weight: 700; color: #222; }
.wcpc-set-card-subtitle { font-size: 11px; color: #666; }
.wcpc-set-card-variants { font-size: 11px; color: #555; margin: 6px 0 4px; line-height: 1.5; }
.wcpc-set-card-qty-total { font-weight: 600; color: #333; }
.wcpc-set-card-qty-row { padding-left: 8px; }
.wcpc-set-card-logo { font-size: 11px; margin-bottom: 4px; }
.wcpc-set-card-logo--set { color: #2e7d32; }
.wcpc-set-card-logo--none { color: #999; }

.wcpc-set-remove {
    background: none !important;
    border: none !important;
    color: #bbb !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 2px !important;
    cursor: pointer !important;
    flex-shrink: 0;
    margin-top: -2px;
    transition: color 0.15s !important;
    box-shadow: none !important;
}
.wcpc-set-remove:hover { color: #c53030 !important; }

/* Preisvorschau innerhalb Card */
.wcpc-set-preview { font-size: 12px; color: #666; }
.wcpc-preview-loading { font-style: italic; color: #aaa; }
.wcpc-preview-pending { color: #bbb; }
.wcpc-preview-error   { color: #e53e3e; }
.wcpc-preview-result  { display: flex; flex-direction: column; gap: 2px; }
.wcpc-preview-unit    { font-size: 14px; font-weight: 700; color: #333; }
.wcpc-preview-setup   { font-size: 11px; color: #888; }

/* Submit */
.wcpc-multiset-submit-btn {
    background: #1f8a3a !important;
    color: #fff !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.wcpc-multiset-submit-btn:hover { background: #156e2f !important; }
.wcpc-multiset-submit-btn:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }

/* Gesamtpreis-Box */
.wcpc-summary-box {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 14px;
    margin-top: 10px;
    margin-bottom: 2px;
}
.wcpc-summary-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #888; margin-bottom: 4px; }
.wcpc-summary-meta { font-size: 11px; color: #aaa; margin-bottom: 8px; }
.wcpc-summary-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wcpc-summary-table td { padding: 3px 0; color: #555; vertical-align: middle; }
.wcpc-summary-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wcpc-summary-total-row td { padding-top: 7px; border-top: 1px solid #ddd; color: #333; font-size: 15px; }
.wcpc-summary-loading { font-size: 12px; color: #aaa; font-style: italic; padding: 8px 0; }

/* ==========================================================================
   17. HELPER / DIVERSE
   ========================================================================== */

.wcpc-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}
.wcpc-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.wcpc-error-box { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; padding: 12px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.wcpc-input, .wcpc-select { padding: 10px; border: 1px solid #ccc; border-radius: 4px; width: 100%; }
.wcpc-stock-info { margin-top: 5px; font-size: 12px; font-weight: 600; color: #28a745; }
.wcpc-stock-out-of-stock { color: #dc3545; }

.wcpc-status { margin-top: 10px; font-size: 12px; padding: 6px 10px; border-radius: 3px; background: #f0f0f0; color: #555; }
.wcpc-status--error { background: #fff3f3; color: #c62828; border: 1px solid #ffcdd2; }
.wcpc-status--loading { background: #f5f5f5; color: #666; }
.wcpc-hidden { display: none !important; }
.wcpc-atc-locked { opacity: 0.5; cursor: not-allowed !important; pointer-events: none; }

.wcpc-spinner {
    display: inline-block;
    width: 10px; height: 10px;
    border: 2px solid #ccc;
    border-top-color: #555;
    border-radius: 50%;
    animation: wcpc-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}
@keyframes wcpc-spin { to { transform: rotate(360deg); } }

/* Zoom & Lightbox */
.wcpc-zoom-icon {
    position: absolute; top: 5px; right: 5px;
    width: 24px; height: 24px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #777;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s;
}
.wcpc-zoom-icon:before { content: "\f179"; font-family: "dashicons"; font-size: 14px; line-height: 1; }
.wcpc-zoom-icon:hover { background: #1f8a3a; color: #fff; border-color: #1f8a3a; transform: scale(1.1); }

#wcpc-lightbox-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 100000;
    display: none;
    justify-content: center; align-items: center;
    cursor: zoom-out;
}
#wcpc-lightbox-image { max-width: 90vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.5); background: #fff; cursor: default; }
#wcpc-lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: #fff; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
#wcpc-lightbox-close:hover { opacity: 1; }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */

@media (max-width: 849px) {
    .wcpc-grid-accordion { grid-template-columns: 1fr; }
    .wcpc-column-calc { order: 2; margin-top: 20px; position: static; }
}

@media (max-width: 549px) {
    .wcpc-grid-accordion { grid-template-columns: 1fr; padding: 12px; }
    .wcpc-modal-wrapper.wcpc-accordion-layout { max-height: 100vh; width: 100vw; border-radius: 0; }
}


/* =========================================================================
   SEKTION 19: v2 Live Configurator
   ========================================================================= */

/* --- v2 Live-Sidebar --- */
.wcpc-v2-live-section { border-top: 2px solid #e0e0e0; padding-top: 10px; margin-top: 10px; }
.wcpc-v2-article-table { width: 100%; }
.wcpc-v2-subtotal-row td { border-top: 1px solid #ddd; padding-top: 6px; }

/* --- v2 single-axis: aktive Zeilen (2-Spalten-Grid, analog Matrix) --- */
.wcpc-v2-active-rows { margin-top: 10px; }
.wcpc-v2-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 8px 10px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.wcpc-v2-row-main {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: center;
}
.wcpc-v2-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.wcpc-v2-row .wcpc-v2-color-indicator {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}
.wcpc-v2-row .wcpc-v2-color-dot {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
}
.wcpc-v2-row-label {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.wcpc-v2-row-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.wcpc-v2-row-qty {
    width: 110px !important;
    max-width: 110px;
    text-align: center;
}
.wcpc-v2-row-remove { background: none; border: none; color: #c62828; font-size: 18px; cursor: pointer; padding: 0 4px; line-height: 1; flex-shrink: 0; }
.wcpc-v2-row-remove:hover { color: #b71c1c; }
.wcpc-swatch.wcpc-v2-active { outline: 3px solid #1976d2; outline-offset: 2px; }

/* --- v2 single-axis: Responsive --- */
@media (max-width: 549px) {
    .wcpc-v2-row-main {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .wcpc-v2-row-input-wrap {
        align-items: flex-start;
    }
}

/* --- v2 matrix: Grid-Tabelle --- */
.wcpc-v2-matrix-grid { margin-top: 12px; overflow-x: auto; }
.wcpc-v2-matrix-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wcpc-v2-matrix-table th { background: #f5f5f5; padding: 6px 4px; text-align: center; font-weight: 700; font-size: 11px; border: 1px solid #ddd; white-space: nowrap; }
.wcpc-v2-matrix-table td { padding: 3px; border: 1px solid #ddd; text-align: center; }
.wcpc-v2-matrix-corner { text-align: left !important; font-size: 10px; color: #888; }
.wcpc-v2-matrix-color { text-align: left !important; font-weight: 600; padding-left: 8px !important; white-space: nowrap; }
.wcpc-v2-matrix-qty { width: 52px; text-align: center; padding: 4px 2px; border: 1px solid #ccc; border-radius: 3px; font-size: 12px; -moz-appearance: textfield; }
.wcpc-v2-matrix-qty::-webkit-inner-spin-button, .wcpc-v2-matrix-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wcpc-v2-matrix-qty:focus { border-color: #1976d2; outline: none; box-shadow: 0 0 0 2px rgba(25,118,210,0.15); }
.wcpc-v2-matrix-qty:disabled { background: #f0f0f0; color: #bbb; cursor: not-allowed; }
.wcpc-v2-matrix-na { color: #ccc; font-size: 11px; }
.wcpc-v2-matrix-oos { background: #fff5f5; }

/* =========================================================================
   SEKTION 20: v2-UI-Bereinigung — Legacy-Ausblendung per Modus
   =========================================================================
   Greift wenn .wcpc-v2-mode-{mode} auf dem Wrapper gesetzt ist.
   Block A vNext: plain ist jetzt ebenfalls integriert.
   ========================================================================= */

/* --- GEMEINSAM: alle drei Modi --- */

/* Rechte Seite: Alt-Produktsektion (Staffelpreise + Artikelpreis) ausblenden */
.wcpc-v2-mode-plain .wcpc-legacy-products,
.wcpc-v2-mode-single-axis .wcpc-legacy-products,
.wcpc-v2-mode-matrix .wcpc-legacy-products {
    display: none !important;
}

/* Linke Seite: Alt-Mengenfeld ausblenden — NUR bei single-axis + matrix */
/* Plain behält das Mengenfeld (Eingabe erfolgt dort, nicht pro Row/Grid) */
.wcpc-v2-mode-single-axis .wcpc-qty-section,
.wcpc-v2-mode-matrix .wcpc-qty-section {
    display: none !important;
}

/* --- NUR MATRIX: progressive Farbzeilen (Promotron-Stil) --- */

.wcpc-v2-matrix-row {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    padding: 10px 12px 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.wcpc-v2-matrix-row-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    flex-shrink: 0;
}
.wcpc-v2-color-indicator {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}
.wcpc-v2-color-dot {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
}
.wcpc-v2-matrix-row-label {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}
.wcpc-v2-matrix-row .wcpc-v2-row-remove {
    background: none;
    border: none;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.wcpc-v2-matrix-row .wcpc-v2-row-remove:hover { color: #c53030; }

/* Größen-Tabelle innerhalb der Farbzeile (rechte Spalte) */
.wcpc-v2-size-table {
    flex: 1;
    min-width: 0;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}
.wcpc-v2-size-table th {
    padding: 2px 0 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    min-width: 44px;
}
.wcpc-v2-size-table td {
    padding: 0 2px 2px;
    text-align: center;
}
.wcpc-v2-size-table .wcpc-v2-matrix-qty {
    width: 44px;
    text-align: center;
    padding: 5px 2px;
    border: 1px solid #ccc;
    font-size: 13px;
    -moz-appearance: textfield;
}
.wcpc-v2-size-table .wcpc-v2-matrix-qty::-webkit-inner-spin-button,
.wcpc-v2-size-table .wcpc-v2-matrix-qty::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}
.wcpc-v2-size-table .wcpc-v2-matrix-qty:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.15);
}
.wcpc-v2-size-table .wcpc-v2-matrix-qty:disabled {
    background: #f0f0f0; color: #bbb; cursor: not-allowed;
}

/* --- v2 Staffelpreis-Link + Popup --- */
.wcpc-v2-scale-link {
    display: inline-block;
    font-size: 12px;
    color: #1f8a3a;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 6px;
}
.wcpc-v2-scale-link:hover { text-decoration: underline; }

.wcpc-v2-scale-popup {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 13px;
}
.wcpc-v2-scale-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.wcpc-v2-scale-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}
.wcpc-v2-scale-popup-close:hover { color: #333; }

.wcpc-v2-scale-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.wcpc-v2-scale-table th {
    text-align: left;
    padding: 4px 0;
    color: #888;
    font-weight: 600;
    font-size: 11px;
    border-bottom: 1px solid #eee;
}
.wcpc-v2-scale-table td {
    padding: 4px 0;
    color: #333;
}
.wcpc-v2-scale-note {
    font-size: 11px;
    color: #999;
    margin: 6px 0 0;
}

/* --- v2 Single-Axis Rows --- */
.wcpc-v2-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.wcpc-v2-row:last-child { border-bottom: none; }
.wcpc-v2-row-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    min-width: 80px;
}
.wcpc-v2-row-remove {
    background: none;
    border: none;
    color: #bbb;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.wcpc-v2-row-remove:hover { color: #c53030; }

/* --- MOBILE: Matrix-Zeilen stacken --- */
@media (max-width: 600px) {
    .wcpc-v2-matrix-row {
        flex-direction: column;
        gap: 6px;
    }
    .wcpc-v2-matrix-row-header {
        flex-direction: row;
        width: 100%;
        min-width: unset;
    }
    .wcpc-v2-matrix-row-label {
        text-align: left;
        flex: 1;
    }
    .wcpc-v2-size-table {
        width: 100%;
        overflow-x: auto;
    }
}

/* --- v2 Stock-Labels unter Inputs --- */
.wcpc-v2-stock-row td {
    padding: 2px 2px 0;
    text-align: center;
    vertical-align: top;
}
.wcpc-v2-stock-label {
    display: block;
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}
.wcpc-v2-stock-ok {
    color: #2e7d32;
}
.wcpc-v2-stock-oos {
    color: #c53030;
}
.wcpc-v2-stock-unmanaged {
    color: #888;
}
.wcpc-v2-stock-error {
    color: #c53030;
    font-weight: 700;
}

/* v2 Single-Axis: Inline Stock */
.wcpc-v2-row-input-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.wcpc-v2-stock-inline {
    min-height: 14px;
}

/* Invalid-State bei Übermenge */
.wcpc-v2-qty-invalid {
    border-color: #c53030 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 2px rgba(197,48,48,0.15) !important;
}
