/* ---------------------------------------------------------------------------
 * Sitzbänke configurator – icon style for design selection attributes
 *
 * Targets:
 *   - varianten_sitzflaechen_design  (Sitzflächen Design)
 *   - varianten_sitzflaechen_material (Sitzflächen Material)
 *   - varianten_rueckenlehnen_design (Rückenlehnen Design)
 *   - varianten_serie_sitzflaeche   (Serie Sitzfläche)
 *   - varianten_sockel_fuss_design  (Sockel | Fuß Design, image swatches only)
 *
 * Sockel design uses the same 74px card when a visual swatch image exists.
 * Text-only options keep the original pill buttons. It is excluded from the
 * two-row mobile grid — it usually has few options and sits beside Sockel
 * Farbe in the `.sockel-different-design` layout.
 *
 * Each option renders as a rounded white card holding the swatch icon, with
 * the option label sitting close underneath the card. Active option is
 * marked with a red border (no dot indicator).
 *
 * On mobile (<= 1023px) the cards lay out in two rows that share a single
 * horizontal scroll container so they swipe together. The existing
 * `configurator-mobile-swatches.js` keeps the selected card centered.
 *
 * On mobile, horizontal option rows get 50px of end space so the last item
 * can scroll fully into view, matching MAG-4418 swiper slidesOffsetAfter.
 * Flex rows: ::after; two-row design grids: padding-right.
 * ------------------------------------------------------------------------- */

.swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options,
.swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options,
.swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options,
.swatch-attribute.varianten_sockel_fuss_design .swatch-attribute-options {
    gap: 10px;
    flex-wrap: wrap;
}

.swatch-attribute.varianten_rueckenlehnen_material .variations-shapes,
.swatch-attribute.varianten_sitzflaechen_material .variations-shapes,
.swatch-attribute.varianten_sitzflaechen_design .variations-shapes,
.swatch-attribute.varianten_rueckenlehnen_design .variations-shapes,
.swatch-attribute.varianten_serie_sitzflaeche .variations-shapes,
.swatch-attribute.varianten_sockel_fuss_design .variations-shapes {
    width: auto;
    max-width: none;
    min-width: 0;
    background: transparent;
    padding: 0;
    gap: 4px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    border-radius: 8px !important;
    border: 1px solid #cfd8e4 !important;
    background-color: #fff !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-sizing: border-box;
    padding: 6px !important;
    margin: 0 auto;
    box-shadow: none !important;
    display: block;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option.bg-color-variants,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option.bg-color-variants,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option.bg-color-variants {
    border-color: #d80000 !important;
}

/*
 * Selected design tile also gets a check in the middle of the card. Same
 * white-on-dark-outline check the category card options use (MAG-4522) - the
 * swatch photos underneath range from light to dark, so a plain white check
 * would disappear on the light ones.
 */
.swatch-attribute.varianten_rueckenlehnen_material .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option.bg-color-variants::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5 9 17 19.5 6.5' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.5 12.5 9 17 19.5 6.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option .whitespace-nowrap,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option .whitespace-nowrap,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option .whitespace-nowrap,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option .whitespace-nowrap,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option .whitespace-nowrap,
.swatch-attribute.varianten_rueckenlehnen_material .swatch-option .swatch-inline-text,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option .swatch-inline-text,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option .swatch-inline-text,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option .swatch-inline-text,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option .swatch-inline-text {
    display: none !important;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option.selected-option-dot::after,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option.selected-option-dot::after,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option.selected-option-dot::after,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option.selected-option-dot::after,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option.selected-option-dot::after,
.swatch-attribute.varianten_rueckenlehnen_material .swatch-option-visual.selected-option-dot::after,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option-visual.selected-option-dot::after,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option-visual.selected-option-dot::after,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option-visual.selected-option-dot::after,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option-visual.selected-option-dot::after {
    content: none !important;
    display: none !important;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option-text,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option-text,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option-text,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option-text,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option-text {
    display: block !important;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: #5a647c;
    white-space: nowrap;
    max-width: 74px;
    width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    border-radius: 8px !important;
    border: 1px solid #cfd8e4 !important;
    background-color: #fff !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-sizing: border-box;
    padding: 6px !important;
    margin: 0 auto;
    box-shadow: none !important;
    display: block;
}

.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch.bg-color-variants {
    border-color: #d80000 !important;
}

.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch.selected-option-dot::after,
.swatch-attribute.varianten_sockel_fuss_design .swatch-option-visual.color-swatch.selected-option-dot::after {
    content: none !important;
    display: none !important;
}

.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch ~ .swatch-option-text {
    display: block !important;
    margin: 4px 0 0;
    padding: 0;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    color: #5a647c;
    white-space: nowrap;
    max-width: 74px;
    width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sitzbanke-split-two-attributes .spacing-variations .swatch-attribute.varianten_sockel_fuss_design:has(.swatch-option.color-swatch) .swatch-attribute-options {
    height: auto !important;
}

/*
 * Product CSS locks split-two rows to 2.5rem. Farbe circles already fill that
 * height, so the selected red ring and checkmark are clipped. Let the row grow.
 */
.sitzbanke-split-two-attributes .spacing-variations .swatch-attribute.farbe-attribute .swatch-attribute-options {
    height: auto !important;
}

@media (max-width: 1023px) {
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options {
        display: grid !important;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: row;
        grid-auto-columns: calc((100% - 40px) / 6);
        column-gap: 8px;
        row-gap: 8px;
        width: 100%;
        box-sizing: border-box;
        align-items: start;
        padding-left: 0 !important;
        padding-right: var(--swatch-scroll-end-space, 50px) !important;
        flex-wrap: unset !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options::-webkit-scrollbar,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options::-webkit-scrollbar,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options::-webkit-scrollbar,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options::-webkit-scrollbar,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options::-webkit-scrollbar {
        display: none;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative,
    .swatch-attribute.varianten_sockel_fuss_design .swatch-attribute-options > .relative {
        min-width: 0;
        width: 100%;
        flex: unset;
        scroll-snap-align: start;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative > div,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative > div,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative > div,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative > div,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative > div,
    .swatch-attribute.varianten_sockel_fuss_design .swatch-attribute-options > .relative > div {
        width: 100%;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 1),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 1),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 1),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 2),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 2),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 2),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 3),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 3),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 3),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 4),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 4),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 4),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 5),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 5),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 5),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 6),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 6),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 6),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 1),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 2),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 3),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 4),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 5),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 6),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 1),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 2),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 3),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 4),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 5),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 6) {
        grid-row: 1;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 7),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 7),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 7),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 8),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 8),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 8),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 9),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 9),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 9),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 10),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 10),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 10),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n + 11),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n + 11),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n + 11),
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options > .relative:nth-child(12n),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options > .relative:nth-child(12n),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options > .relative:nth-child(12n),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 7),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 8),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 9),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 10),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n + 11),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-child(12n),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 7),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 8),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 9),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 10),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n + 11),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options > .relative:nth-child(12n) {
        grid-row: 2;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))),
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))),
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))),
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))),
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))) {
        grid-template-rows: auto;
        grid-auto-flow: column;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))) > .relative,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))) > .relative,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))) > .relative,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))) > .relative,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options:not(:has(> .relative:nth-child(8 of .relative:not(.hidden)))) > .relative {
        grid-row: 1 !important;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-option,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-option,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-option,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-option,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-option {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 / 1;
        padding: 3px !important;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-option.bg-color-variants::after,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-option.bg-color-variants::after,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-option.bg-color-variants::after,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-option.bg-color-variants::after,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-option.bg-color-variants::after {
        width: 24px;
        height: 24px;
    }

    .swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 55px !important;
        height: auto !important;
        min-height: 55px !important;
        max-height: 55px !important;
        aspect-ratio: 1 / 1;
        padding: 3px !important;
    }

    .swatch-attribute.varianten_sockel_fuss_design .swatch-attribute-options > .relative {
        max-width: 55px;
    }

    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-of-type(-n + 9) {
        grid-row: 1 !important;
    }

    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options > .relative:nth-of-type(n + 10) {
        grid-row: 2 !important;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .swatch-option-text,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-option-text,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-option-text,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-option-text,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-option-text,
    .swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch ~ .swatch-option-text {
        margin-top: 4px;
        min-width: 0;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        font-size: 11px;
        line-height: 13px;
        align-self: stretch;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .variations-shapes,
    .swatch-attribute.varianten_sitzflaechen_material .variations-shapes,
    .swatch-attribute.varianten_sitzflaechen_design .variations-shapes,
    .swatch-attribute.varianten_rueckenlehnen_design .variations-shapes,
    .swatch-attribute.varianten_serie_sitzflaeche .variations-shapes,
    .swatch-attribute.varianten_sockel_fuss_design .variations-shapes {
        width: 100%;
        min-width: 0;
        max-width: none;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding-left: 0 !important;
    }

    .swatch-attribute.varianten_rueckenlehnen_material .gradient-variants,
    .swatch-attribute.varianten_sitzflaechen_material .gradient-variants,
    .swatch-attribute.varianten_sitzflaechen_design .gradient-variants,
    .swatch-attribute.varianten_rueckenlehnen_design .gradient-variants,
    .swatch-attribute.varianten_serie_sitzflaeche .gradient-variants {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .sockel-different-design .spacing-variations {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .sockel-different-design .spacing-variations > .swatch-attribute:not(.farbe-attribute) {
        grid-column: 1;
    }

    .sockel-different-design .spacing-variations > .swatch-attribute.farbe-attribute {
        grid-column: 2;
        grid-row: 1 / -1;
    }

    .sockel-different-design .swatch-attribute.varianten_sockel_farbe.farbe-attribute .swatch-attribute-options {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible;
        padding-bottom: 4px !important;
        padding-top: 4px !important;
    }

    .sockel-different-design .swatch-attribute.varianten_sockel_fuss_farbe.farbe-attribute .swatch-attribute-options {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible;
        padding-bottom: 4px !important;
        padding-top: 4px !important;
    }

    .sockel-different-design .swatch-attribute.varianten_sockel_fuss_farbe.farbe-attribute .gradient-variants {
        height: 100%;
    }

    .sockel-different-design .swatch-attribute.varianten_sockel_farbe.farbe-attribute .gradient-variants {
        height: 100%;
    }

    /*
     * The `.swatch-attribute` wrapper always stays in the DOM - only its inner
     * content is hidden (x-show sets an inline display:none, x-if renders
     * nothing). So an attribute with no visible content still occupies a grid
     * item and keeps the left track alive, which strands Sockel Farbe in the
     * right half with an empty left half. Drop the two column layout unless a
     * non-Farbe attribute actually has visible content.
     */
    .sockel-different-design .spacing-variations:not(:has(
        > .swatch-attribute:not(.farbe-attribute):not(.hidden)
          > *:not(template):not([style*="display: none"]):not([style*="display:none"])
    )) {
        display: flex;
        flex-direction: column;
    }

    .sockel-different-design .gradient-variants {
        top: 28px;
    }
}

:root {
    --swatch-scroll-end-space: 50px;
}

@media (max-width: 1023px) {
    .swatch-attribute-options {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Rings and pill borders sit outside the option box; keep them inside the clip. */
        padding-top: 4px;
        padding-bottom: 4px;
        /* items-center + overflow-y:hidden clips flex children equally on top and bottom. */
        align-items: flex-start;
    }

    /*
     * Farbe selected state draws a ring and checkmark outside the circle box.
     * overflow-y:hidden clips them on mobile; match the Raumtrenner MAG-0 fix.
     */
    .swatch-attribute.farbe-attribute .swatch-attribute-options {
        overflow-y: visible;
        height: auto !important;
    }

    .swatch-attribute-options::-webkit-scrollbar {
        display: none;
    }

    .swatch-attribute-options::after,
    .configurator-tab-view .scrollbar-hide::after {
        content: '';
        flex: 0 0 var(--swatch-scroll-end-space, 50px);
        min-width: var(--swatch-scroll-end-space, 50px);
        width: var(--swatch-scroll-end-space, 50px);
        height: 1px;
        pointer-events: none;
        grid-row: 1 / -1;
    }

    /* Two-row design grids use padding-right instead. LED is a column toggle, so
     * flex-basis: 50px would become 50px of empty height under the option. */
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options::after,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options::after,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options::after,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options::after,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options::after,
    .led-attribute-mobile-first .swatch-attribute-options::after,
    .swatch-attribute-options:has(.led-mobile-option)::after,
    .led-no-scroll-spacer::after {
        content: none !important;
        display: none !important;
        flex: none !important;
        flex-basis: 0 !important;
        min-width: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }
}

@media (min-width: 1024px) {
    .sockel-different-design .group-wrapper .spacing-variations {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.configurator-options .swatch-attribute:not(.farbe-attribute):not(.varianten_rueckenlehnen_material):not(.varianten_sitzflaechen_material):not(.varianten_sitzflaechen_design):not(.varianten_rueckenlehnen_design):not(.varianten_serie_sitzflaeche) .swatch-option.bg-color-variants:not(.color-swatch):not(.image-swatch) {
    background: #fff !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1d1d1f !important;
    color: #1d1d1f;
    font-weight: 600 !important;
}

.configurator-options .swatch-attribute:not(.farbe-attribute) .swatch-option.bg-color-variants:not(.color-swatch):not(.image-swatch) .swatch-inline-text {
    color: #1d1d1f;
    font-weight: 600;
}

.configurator-options .swatch-attribute.farbe-attribute .swatch-option.color-swatch.bg-color-variants {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1d1d1f !important;
}

.configurator-options .swatch-attribute.farbe-attribute .check-selected svg {
    display: none;
}

.configurator-options .swatch-attribute.farbe-attribute .check-selected::after {
    content: "";
    display: block;
    width: 12px;
    height: 6px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, .45));
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option.bg-color-variants,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option.bg-color-variants,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch.bg-color-variants {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1d1d1f !important;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option.bg-color-variants::after,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option.bg-color-variants::after {
    content: none;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option.bg-color-variants ~ .swatch-option-text,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option.bg-color-variants ~ .swatch-option-text,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option.bg-color-variants ~ .swatch-option-text,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option.bg-color-variants ~ .swatch-option-text,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option.bg-color-variants ~ .swatch-option-text,
.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch.bg-color-variants ~ .swatch-option-text {
    color: #1d1d1f;
    font-weight: 600;
}

@media (max-width: 1023px) {
    .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options,
    .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options,
    .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options,
    .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options,
    .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options,
    .swatch-attribute.varianten_sockel_fuss_design .swatch-attribute-options {
        padding-left: 4px !important;
        scroll-padding-left: 4px;
    }
}

.configurator-options .swatch-attribute:is([class*="hoehe"], .varianten_sockel_design, .varianten_sockel_fuss_design, .varianten_sockel_material, .varianten_sockel_fuss_material, .varianten_saeulenbreite, .varianten_groesse, .varianten_tragkraft) .swatch-attribute-options {
    gap: 8px;
}

.configurator-options .swatch-attribute:is([class*="hoehe"], .varianten_sockel_design, .varianten_sockel_fuss_design, .varianten_sockel_material, .varianten_sockel_fuss_material, .varianten_saeulenbreite, .varianten_groesse, .varianten_tragkraft) .variations-shapes {
    padding-left: 0;
}

@media (max-width: 1023px) {
    .configurator-options .sitzbanke-split-two-attributes .spacing-variations .swatch-attribute:is([class*="hoehe"], .varianten_sockel_design, .varianten_sockel_fuss_design, .varianten_sockel_material, .varianten_sockel_fuss_material, .varianten_saeulenbreite, .varianten_groesse, .varianten_tragkraft):not(.farbe-attribute) .swatch-attribute-options {
        height: auto !important;
        flex-wrap: nowrap !important;
        padding-left: 4px !important;
        scroll-padding-left: 4px;
    }
}

.configurator-options .swatch-attribute:is([class*="hoehe"], .varianten_sockel_design, .varianten_sockel_fuss_design, .varianten_sockel_material, .varianten_sockel_fuss_material, .varianten_saeulenbreite, .varianten_groesse, .varianten_tragkraft) .swatch-option:not(.color-swatch):not(.image-swatch) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px #d2d2d7 !important;
    color: #1d1d1f;
    font-weight: 400 !important;
    transition: box-shadow .15s ease;
}

.configurator-options .swatch-attribute:is([class*="hoehe"], .varianten_sockel_design, .varianten_sockel_fuss_design, .varianten_sockel_material, .varianten_sockel_fuss_material, .varianten_saeulenbreite, .varianten_groesse, .varianten_tragkraft) .swatch-option:not(.color-swatch):not(.image-swatch):hover {
    box-shadow: inset 0 0 0 1px #9ca3af !important;
}

.configurator-options .swatch-attribute:is([class*="hoehe"], .varianten_sockel_design, .varianten_sockel_fuss_design, .varianten_sockel_material, .varianten_sockel_fuss_material, .varianten_saeulenbreite, .varianten_groesse, .varianten_tragkraft) .swatch-option.bg-color-variants:not(.color-swatch):not(.image-swatch) {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1d1d1f !important;
    font-weight: 600 !important;
}

.configurator-options .swatch-attribute:is([class*="hoehe"], .varianten_sockel_design, .varianten_sockel_fuss_design, .varianten_sockel_material, .varianten_sockel_fuss_material, .varianten_saeulenbreite, .varianten_groesse, .varianten_tragkraft) .swatch-inline-text {
    color: #1d1d1f;
    font-size: 14.5px;
    line-height: 18px;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option,
.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch {
    border: 0 !important;
    border-radius: 22% !important;
    padding: 0 !important;
    background-size: 112% !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06) !important;
    overflow: hidden;
}

.swatch-attribute.varianten_rueckenlehnen_material .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sitzflaechen_material .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sitzflaechen_design .swatch-option.bg-color-variants,
.swatch-attribute.varianten_rueckenlehnen_design .swatch-option.bg-color-variants,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option.bg-color-variants,
.swatch-attribute.varianten_sockel_fuss_design .swatch-option.color-swatch.bg-color-variants {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1d1d1f !important;
}

.swatch-attribute.varianten_sitzflaechen_design .swatch-option,
.swatch-attribute.varianten_serie_sitzflaeche .swatch-option {
    background-size: contain !important;
}

.configurator-options .options-groups > div:not(.sockel-different-design):not(.sitzbanke-split-two-attributes) .spacing-variations > .swatch-attribute:not(.hidden):has(.swatch-option) {
    margin-bottom: 0 !important;
}

.configurator-options .options-groups > div:not(.sockel-different-design):not(.sitzbanke-split-two-attributes) .spacing-variations > .swatch-attribute:not(.hidden):has(.swatch-option) ~ .swatch-attribute:not(.hidden):has(.swatch-option) {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ececf0;
}

.configurator-options .swatch-attribute .product-option-label {
    padding-bottom: 10px !important;
    line-height: 16px;
}

.configurator-options .swatch-attribute .product-option-label > span {
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.configurator-options .swatch-attribute .product-option-label > span.selected-option-value {
    color: #6e6e73 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

@media (min-width: 1024px) {
    .configurator-options .options-groups:not(#_) {
        row-gap: 8px !important;
    }

    .configurator-options .options-groups .group-wrapper {
        margin-bottom: 0 !important;
    }

    .configurator-options > #configurator_wrapper {
        margin-top: -4px;
    }
}

@media (max-width: 1023px) {
    .configurator-options .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options:not(#_),
    .configurator-options .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options:not(#_),
    .configurator-options .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options:not(#_),
    .configurator-options .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options:not(#_),
    .configurator-options .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options:not(#_) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        column-gap: 8px;
        row-gap: 12px;
        overflow: visible;
        scroll-snap-type: none;
        padding-right: 4px !important;
    }

    .configurator-options .swatch-attribute.varianten_rueckenlehnen_material .swatch-attribute-options:not(#_) > .relative,
    .configurator-options .swatch-attribute.varianten_sitzflaechen_material .swatch-attribute-options:not(#_) > .relative,
    .configurator-options .swatch-attribute.varianten_sitzflaechen_design .swatch-attribute-options:not(#_) > .relative,
    .configurator-options .swatch-attribute.varianten_rueckenlehnen_design .swatch-attribute-options:not(#_) > .relative,
    .configurator-options .swatch-attribute.varianten_serie_sitzflaeche .swatch-attribute-options:not(#_) > .relative {
        grid-row: auto !important;
    }
}

.configurator-options:has(> .configurator-tab-view):has(> .options-groups > .led-attribute-mobile-first) > .configurator-tab-view:not(#_) {
    border-radius: 16px;
    padding-bottom: 8px;
}

.configurator-options .options-groups > .led-attribute-mobile-first > .group-wrapper:not(#_) {
    margin-top: 0;
    padding: 14px 16px;
    border-radius: 16px;
}

.configurator-options .options-groups > .led-attribute-mobile-first > .group-wrapper .spacing-variations:not(#_) {
    padding: 0 !important;
}

.configurator-options .led-attribute-mobile-first .swatch-attribute-options:not(#_) {
    padding-left: 0;
}

.configurator-options .led-mobile-option:not(#_) {
    min-height: 52px;
    gap: 14px;
}

.configurator-options .led-mobile-option .led-mobile-icon:not(#_) {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
}

.configurator-options .led-mobile-option .led-mobile-icon:not(#_)::before {
    inset: 4px;
}

.configurator-options .led-mobile-option .led-mobile-icon:not(#_)::after {
    font-size: 13px;
    letter-spacing: .02em;
}

.configurator-options .led-mobile-option .led-mobile-text:not(#_) {
    gap: 3px;
}

.led-mobile-title-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.configurator-options .led-mobile-option .led-mobile-title:not(#_) {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.led-info-btn {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: #8e8e93;
    cursor: help;
}

.led-info-btn svg {
    width: 18px;
    height: 18px;
}

.led-info-btn:hover,
.led-info-btn[aria-expanded="true"] {
    color: #1d1d1f;
}

.led-info-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    width: max-content;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1d1d1f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 17px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
}

.configurator-options .led-mobile-option .led-mobile-subtitle:not(#_) {
    color: #86868b;
    font-size: 13px;
    font-weight: 400;
    line-height: 17px;
}

.configurator-options .led-mobile-option .led-toggle:not(#_) {
    flex-basis: 48px;
    width: 48px;
    height: 28px;
    background: #e5e5ea;
}

.configurator-options .led-mobile-option .led-toggle-knob:not(#_) {
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
}

.configurator-options .led-mobile-option .led-toggle-on:not(#_) {
    background: #34c759;
}

.configurator-options .led-mobile-option .led-toggle-on .led-toggle-knob:not(#_) {
    transform: translateX(20px);
}

@media (min-width: 1024px) {
    .configurator-options:has(> .configurator-tab-view):has(> .options-groups > .led-attribute-mobile-first) > .configurator-tab-view:not(#_) {
        padding-bottom: 16px;
    }

    .configurator-options .options-groups > .led-attribute-mobile-first > .group-wrapper:not(#_) {
        padding: 16px 20px;
    }
}

.configurator-options .sockel-different-design .swatch-attribute .product-option-label,
.configurator-options .sitzbanke-split-two-attributes .swatch-attribute .product-option-label {
    display: block !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.configurator-options label.group > input.peer[type="checkbox"] + span:not(.led-toggle) {
    border: 1px solid #d2d2d7 !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.configurator-options label.group:hover > input.peer[type="checkbox"]:not(:checked) + span:not(.led-toggle) {
    border-color: #86868b !important;
}

.configurator-options label.group > input.peer[type="checkbox"]:checked + span:not(.led-toggle) {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1d1d1f;
}

.configurator-options label.group > input.peer[type="checkbox"]:checked + span svg {
    color: #1d1d1f !important;
}

@media (min-width: 1024px) {
    .configurator-options .swatch-attribute:is(.varianten_rueckenlehnen_material, .varianten_sitzflaechen_material, .varianten_sitzflaechen_design, .varianten_rueckenlehnen_design, .varianten_serie_sitzflaeche) .swatch-attribute-options:not(#_) {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 12px 8px;
    }

    .configurator-options .swatch-attribute:is(.varianten_rueckenlehnen_material, .varianten_sitzflaechen_material, .varianten_sitzflaechen_design, .varianten_rueckenlehnen_design, .varianten_serie_sitzflaeche) .swatch-attribute-options > div:not(#_),
    .configurator-options .swatch-attribute:is(.varianten_rueckenlehnen_material, .varianten_sitzflaechen_material, .varianten_sitzflaechen_design, .varianten_rueckenlehnen_design, .varianten_serie_sitzflaeche) .swatch-attribute-options > div > div:not(#_),
    .configurator-options .swatch-attribute:is(.varianten_rueckenlehnen_material, .varianten_sitzflaechen_material, .varianten_sitzflaechen_design, .varianten_rueckenlehnen_design, .varianten_serie_sitzflaeche) .variations-shapes:not(#_) {
        width: 100%;
        min-width: 0;
        padding-left: 0;
    }

    .configurator-options .swatch-attribute:is(.varianten_rueckenlehnen_material, .varianten_sitzflaechen_material, .varianten_sitzflaechen_design, .varianten_rueckenlehnen_design, .varianten_serie_sitzflaeche) .swatch-option:not(#_) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1;
        border-radius: 22% !important;
    }

    .configurator-options .swatch-attribute:is(.varianten_rueckenlehnen_material, .varianten_sitzflaechen_material, .varianten_sitzflaechen_design, .varianten_rueckenlehnen_design, .varianten_serie_sitzflaeche) .swatch-option-text:not(#_) {
        width: 100%;
        max-width: 100%;
    }
}
