/* NosatoProductOptions: Optionsfelder im Kaufbereich */
.nosato-po {
    margin: 0 0 1rem;
}
.nosato-po-section {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
    padding: .875rem 0 .25rem;
    margin: 0;
    min-width: 0;
}
.nosato-po-section:first-child {
    border-top: 0;
    padding-top: 0;
}
.nosato-po-section-title {
    float: left;
    width: 100%;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    padding: 0;
}
.nosato-po-field {
    margin-bottom: .75rem;
    clear: both;
}
.nosato-po-field-label {
    font-size: 1rem;
    margin-bottom: .5rem;
}
.nosato-po-field-label b {
    font-weight: 700;
}
.nosato-po-options {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    padding: 4px;
    margin: -4px;
}

/* Text-Buttons */
.nosato-po-option.is-button {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 44px;
    padding: .375rem 1rem;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: .9375rem;
    line-height: 1.2;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nosato-po-option.is-button:hover {
    border-color: rgba(0, 0, 0, .6);
}
.nosato-po-input:checked + .nosato-po-option.is-button {
    border-color: #126d1a;
    box-shadow: 0 0 0 1px #126d1a;
    font-weight: 700;
}
.nosato-po-surcharge {
    font-size: .8125rem;
    font-weight: 400;
    opacity: .75;
}

/* Farbpunkte */
.nosato-po-option.is-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .18);
    cursor: pointer;
    position: relative;
    transition: box-shadow .15s ease;
}
.nosato-po-option.is-dot:hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, .3);
}
.nosato-po-input:checked + .nosato-po-option.is-dot,
.nosato-po-input:focus-visible + .nosato-po-option {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #126d1a;
}
/* "keine": weisser Punkt mit Schraegstrich */
.nosato-po-option.is-dot.is-none {
    background: #fff;
}
.nosato-po-option.is-dot.is-none::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(0, 0, 0, .45);
    transform: translateX(-50%) rotate(45deg);
}
.nosato-po-option.is-dot.is-marble {
    background-image: url("../img/marmor.png");
    background-size: cover;
}
.nosato-po-price-hint {
    margin: .25rem 0 0;
    font-size: .9375rem;
}
@media (max-width: 767.98px) {
    .nosato-po-option.is-dot {
        width: 40px;
        height: 40px;
    }
}

/* 0.2.0: "keine" ausgeblendet, wenn das Feld gerade Pflicht ist */
.nosato-po-option[hidden] { display: none !important; }
.nosato-po-field.is-required-now .nosato-po-selected:empty::after { content: "bitte wählen"; color: #b3261e; font-weight: 400; }

/* 0.3.0: Aufpreis ausblenden, solange das Feld im Grundpreis enthalten ist */
.nosato-po-field.is-required-now[data-free-when-forced] .nosato-po-surcharge { display: none; }

/* 0.5.0: Kompakte Darstellung, nur Handy */
.nosato-po-sum { display: none; }
@media (max-width: 767.98px) {
    /* A: Farbe als Zeile, aufklappbar */
    .nosato-po.is-compact-colors .nosato-po-field.is-type-color .nosato-po-selected { display: none; }
    .nosato-po.is-compact-colors .nosato-po-field.is-type-color .nosato-po-options { display: none; margin-top: .5rem; }
    .nosato-po.is-compact-colors .nosato-po-field.is-type-color.is-open .nosato-po-options { display: flex; }
    .nosato-po.is-compact-colors .nosato-po-sum {
        display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 52px;
        padding: 6px 14px 6px 8px; background: #fff; color: #222; font: inherit; text-align: left;
        border: 1px solid rgba(0, 0, 0, .18); border-radius: 26px; cursor: pointer;
    }
    .nosato-po.is-compact-colors .is-open > .nosato-po-sum { border-color: #126d1a; box-shadow: 0 0 0 1px #126d1a; }
    .nosato-po.is-compact-colors .nosato-po-sum:focus-visible { outline: 2px solid #126d1a; outline-offset: 2px; }
    .nosato-po-sum-dot { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); background-size: cover; }
    .nosato-po-sum-dot.is-empty { border: 2px dashed #9a9a9a; background: transparent; }
    .nosato-po-sum-dot.is-marble { background-image: url("../img/marmor.png"); }
    .nosato-po-sum-text { flex: 1; font-weight: 600; }
    .nosato-po-sum.is-missing .nosato-po-sum-text { color: #b3261e; font-weight: 400; }
    .nosato-po-sum-action { font-size: .875rem; color: #126d1a; font-weight: 600; }
    .nosato-po-sum-chevron { width: 10px; height: 10px; border-right: 2px solid #126d1a; border-bottom: 2px solid #126d1a; transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s ease; }
    .is-open > .nosato-po-sum .nosato-po-sum-chevron { transform: rotate(-135deg) translate(-3px, -3px); }

    /* Kompakte Figur-Buttons */
    .nosato-po[data-compact-buttons] .nosato-po-section { padding-top: .625rem; }
    .nosato-po[data-compact-buttons] .nosato-po-section-title { margin-bottom: .25rem; }
    .nosato-po[data-compact-buttons] .nosato-po-field { margin-bottom: .5rem; }
    .nosato-po[data-compact-buttons] .nosato-po-field-label { margin-bottom: .375rem; }
    .nosato-po[data-compact-buttons] .nosato-po-field.is-type-choice .nosato-po-options { gap: .375rem; }
    .nosato-po[data-compact-buttons] .nosato-po-option.is-button { min-height: 38px; padding: .25rem .75rem; font-size: .875rem; }
    .nosato-po[data-compact-buttons] .nosato-po-option.is-button .nosato-po-surcharge { font-size: .75rem; }
}
