/* SAV Configurator UI */
.sav-configurator {
    margin: 24px 0;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.sav-configurator__title {
    margin: 0 0 18px 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #1f2937;
}
.sav-configurator__options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
@media (min-width: 600px) {
    .sav-configurator__options { grid-template-columns: 1fr 1fr; }
}
.sav-configurator__option {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sav-configurator__label {
    font-size: 0.86em;
    font-weight: 500;
    color: #4b5563;
}
.sav-configurator__select {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95em;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.sav-configurator__select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.sav-configurator__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    font-size: 1.1em;
}
.sav-configurator__price-label {
    color: #4b5563;
    font-weight: 500;
}
.sav-configurator__price {
    font-size: 1.4em;
    font-weight: 700;
    color: #111827;
}
.sav-configurator__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.sav-configurator__trust span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #7c2d12;
    border: 1px solid #fed7aa;
    font-size: .85em;
    font-weight: 650;
}
/* Hide the default WC price when configurator is active */
.single-product .sav-configurator + button,
.single-product .sav-configurator ~ .single_add_to_cart_button { margin-top: 12px; }

/* CRO Task 1.2: Maesspruefung am Laengenfeld (kompakt, nahe am Feld) */
.sav-measure-help {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #f6fdf8;
    border: 1px solid rgba(18, 140, 75, 0.3);
    border-radius: 8px;
}
.sav-measure-help__text { margin: 0 0 8px; font-size: 13.5px; line-height: 1.4; color: #2b2f38; }
.sav-measure-help__text strong { color: #0f7a41; }
.sav-measure-help__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sav-measure-help__wa {
    display: inline-flex; align-items: center;
    background: #25d366; color: #fff; font-weight: 700; font-size: 13.5px;
    padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.sav-measure-help__wa:hover { background: #1da851; color: #fff; }
.sav-measure-help__guide { font-size: 13px; color: #0f7a41; text-decoration: underline; }

/* CRO Task 2.3 (Teil 2): objektive Sicherheits-Badges auf der Produktseite.
   Gleiche Optik wie die Standalone-Step-2-Badges; configurator.css fuehrt keine
   CSS-Variablen, daher hier die literalen Farbwerte. */
.sav-card__security {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0 0;
}
.sav-security-badge {
    display: inline-flex;
    align-items: baseline;
    padding: 3px 9px;
    background: #f4f7fb;
    color: #24405e;
    font-size: 0.74em;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #d7e2ef;
}
.sav-security-badge__sub {
    font-style: normal;
    font-weight: 400;
    color: #6b7280;
    margin-left: 2px;
}

/* Express-Gate: PayPal/Apple-Pay-Buttons sind gesperrt, bis die Konfiguration vollstaendig
   und vom Server bestaetigt ist. Der harte Schutz liegt server-seitig (Capture+Validate);
   das hier ist die sichtbare, klick-blockierende Sperre. */
.sav-express-locked {
    pointer-events: none !important;
    opacity: .5 !important;
    filter: grayscale(.7);
    cursor: not-allowed;
}
/* Platzhalter "Bitte waehlen" dunkler als der Browser-Default (Lesbarkeit) */
.sav-configurator__select:invalid { color: #555; }
/* Hinweis, warum Express noch gesperrt ist; verschwindet sobald konfiguriert */
.sav-configurator__gate-note {
    display: none;
    margin: .5em 0 0;
    font-size: .85em;
    line-height: 1.35;
    color: #8a6d00;
    background: #fff8e1;
    border: 1px solid #ffe39e;
    border-radius: 6px;
    padding: .45em .6em;
}
.sav-configurator:not(.sav-configurator--ready) .sav-configurator__gate-note { display: block; }
