/*
 * Konfigurator Pro, Produktseite. Nur Klassen mit Präfix .kfp-, keine Regel an Kern-Klassen.
 * Farben: #5B215E (Violett), #AA146D (Magenta), #FEBC00 (Gold); Rot nur für gewählte gesperrte Werte.
 * 390 px: Rahmen als outline (verbraucht keine Breite), Texte brechen um, Beträge bleiben rechts.
 */

.kfp-konfigurator,
.kfp-felder {
    max-width: 100%;
}

/* Preisblock unter dem Produktpreis */
.kfp-preisbox {
    box-sizing: border-box;
    max-width: 100%;
    margin: 8px 0 14px;
    padding: 10px 12px;
    border: 1px solid #e6dbe7;
    border-left: 3px solid #5B215E;
    border-radius: 4px;
    background: #fbf8fb;
    font-size: 0.875rem;
    line-height: 1.45;
}

.kfp-preisbox.kfp-richtpreis {
    border-left-color: #AA146D;
}

.kfp-preisbox.kfp-ungueltig {
    opacity: 0.6;
}

.kfp-preisbox-titel {
    margin-bottom: 6px;
    font-weight: 600;
    color: #5B215E;
}

.kfp-zeile {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 2px 0;
}

.kfp-zeile-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kfp-zeile-betrag {
    flex: 0 0 auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.kfp-aufpreis .kfp-zeile-text {
    color: #444;
}

.kfp-summe {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid #e6dbe7;
    font-weight: 700;
    color: #5B215E;
}

.kfp-richtpreis .kfp-summe {
    color: #AA146D;
}

.kfp-anmerkung {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6c6c6c;
    overflow-wrap: anywhere;
}

/* Gesperrte Werte */
.kfp-gesperrt {
    opacity: 0.45;
    cursor: not-allowed !important;
}

.option-swatch.kfp-gesperrt {
    background-image: linear-gradient(to top right, transparent calc(50% - 1px), #AA146D calc(50% - 1px), #AA146D calc(50% + 1px), transparent calc(50% + 1px));
}

.option-image-swatch.kfp-gesperrt {
    outline: 2px dashed #AA146D;
    outline-offset: -2px;
}

.option-radio-label.kfp-gesperrt {
    text-decoration: line-through;
}

.kfp-gesperrt-gewaehlt {
    outline: 2px solid #c62828 !important;
    outline-offset: 2px;
}

select.kfp-gesperrt-gewaehlt {
    border-color: #c62828 !important;
    outline-offset: 0;
}

/* Fehlende Pflichtwahl */
.kfp-fehlt {
    outline: 2px solid #FEBC00;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Texte unter einer Option */
.kfp-notizen {
    margin-top: 6px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.kfp-notiz {
    padding: 2px 0 2px 8px;
    border-left: 3px solid transparent;
    overflow-wrap: anywhere;
}

.kfp-notiz + .kfp-notiz {
    margin-top: 3px;
}

.kfp-notiz-fehler {
    border-left-color: #c62828;
    color: #b71c1c;
}

.kfp-notiz-pflicht {
    border-left-color: #FEBC00;
    color: #6b4a00;
    font-weight: 600;
}

.kfp-notiz-hinweis {
    border-left-color: #5B215E;
    color: #5B215E;
}

/* Grund der Sperre und Antwort des Warenkorbs über dem Kaufknopf */
.kfp-grund,
.kfp-meldung {
    box-sizing: border-box;
    max-width: 100%;
    margin: 8px 0;
    padding: 8px 10px;
    border-left: 3px solid #AA146D;
    border-radius: 4px;
    background: #fbeef4;
    color: #7a0e4c;
    font-size: 0.8125rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.kfp-grund[hidden],
.kfp-meldung[hidden],
.kfp-felder[hidden] {
    display: none;
}

@media (max-width: 575.98px) {
    .kfp-preisbox {
        padding: 8px 10px;
    }

    .kfp-zeile {
        gap: 8px;
    }
}

/* Maß-Helfer über den Stufen-Dropdowns (Preis nach Maß). */
.kfp-mass { margin: 0 0 6px; }
.kfp-mass-label { display: block; font-weight: 600; margin: 0 0 2px; }
.kfp-mass-feld { max-width: 220px; }
.kfp-mass-hilfe { display: block; color: #555; margin-top: 2px; }
