.wtb-add-to-cart-radio {
    --wtb-radio-border: #d0d0d0;
    --wtb-radio-disabled-opacity: 0.35;

    /* ── Variations-Tabelle (sichtbare Selects) ── */

    form {
        display: flex;
        flex-direction: column;
        gap: 40px;

        @media(max-width: 1024px) {
            gap: 32px;
        }

        .wtb-add-to-cart {
            display: flex;
            gap: 12px;
            justify-content: start;
            align-items: center;

            button {
                padding: 14px 20px;
                border-radius: 50px;
                background: var(--e-global-color-39dd569);
                font-family: var(--e-global-typography-0bf6c45-font-family), Sans-serif;
                font-size: var(--e-global-typography-0bf6c45-font-size);
                font-weight: var(--e-global-typography-0bf6c45-font-weight);
                text-decoration: var(--e-global-typography-0bf6c45-text-decoration);
                line-height: var(--e-global-typography-0bf6c45-line-height);
                border-color: var(--e-global-color-39dd569);
                text-transform: none;

                &:hover {
                    background: var(--e-global-color-571a1ca);
                }


            }

            .single_variation_wrap {
                @media(max-width: 767px) {
                    width: 100%;
                }
            }
        }

        .wtb-product-price {
            margin: 0;

            .woocommerce-de_price_taxrate {
                margin-top: 12px;
            }

            .price *,
            .woocommerce-Price-amount bdi,
            .german-market-from-price-prefix {
                color: var(--e-global-color-a34d29c, #3A3023);
                font-family: Manrope;
                font-size: 32px;
                font-style: normal;
                font-weight: 700;
                line-height: 110%;

                @media(max-width: 767px) {
                    font-size: 24px;
                }
            }

            .wgm-info,
            .wgm-info * {
                font-family: var(--e-global-typography-db1d1e5-font-family), Sans-serif;
                font-size: var(--e-global-typography-db1d1e5-font-size);
                font-weight: var(--e-global-typography-db1d1e5-font-weight);
                text-transform: var(--e-global-typography-db1d1e5-text-transform);
                line-height: var(--e-global-typography-db1d1e5-line-height);
                color: var(--e-global-color-785cc86);
            }
        }

        .variations {
            width: 100%;
            border: none;
            border-collapse: collapse;
            margin-bottom: 16px;
            margin: 0;
            max-width: 350px;

            tr,
            td,
            th {
                border: none !important;
            }
        }

        .wtb-attribute-group {
            margin: 0;
        }

    }


    /* ── Select / Dropdown ── */
    .wtb-attr-select-row {
        td.value {
            padding: 0 0 10px 0;
            vertical-align: top;
        }

        select {
            width: 100%;
            max-width: 350px;
            padding: 12px 40px 12px 12px;
            border: 1px solid var(--e-global-color-39dd569);
            border-radius: 12px;
            font-family: var(--e-global-typography-primary-font-family), sans-serif;
            font-size: 16px;
            font-weight: 400;
            color: #131927;
            background-color: transparent;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 6L1 1' stroke='%23526e80' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 6L11 1' stroke='%23526e80' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            cursor: pointer;
            display: block;

            &:focus {
                outline: none;
                border-color: var(--e-global-color-39dd569);
                box-shadow: 0 0 0 3px rgba(82, 110, 128, 0.15);
            }
        }
    }
}


/* ── Versteckte Select-Rows (WC-JS braucht sie im DOM) ── */
.wtb-attr-radio-row {
    display: none !important;
}

/* ── Größen-Hilfetext oberhalb Dropdown ── */
.wtb-size-guide-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;

    a.wtb-size-guide-link {
        font-family: var(--e-global-typography-db1d1e5-font-family), Sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--e-global-color-a34d29c);
        text-decoration: underline;
        text-underline-offset: 2px;
        cursor: pointer;
        line-height: 140%;

        &:hover {
            opacity: 0.75;
        }
    }
}

/* ── Attributgruppe ── */
.wtb-attribute-group {
    margin-bottom: 20px;
}

.wtb-attribute-label {
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--e-global-color-a34d29c);
    line-height: 140%;
    margin-bottom: 12px;
}

/* ── Pill-Radio-Optionen (Standard) ── */
.wtb-radio-options {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px !important;
    row-gap: 12px !important;
    justify-content: start;

}

.wtb-radio-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    user-select: none;

    input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;

        &:checked+.wtb-radio-label {
            background-color: var(--e-global-color-28ee1f3);
            border-color: var(--e-global-color-28ee1f3);
            color: var(--e-global-color-50a9ba5);
        }
    }

    &:hover .wtb-radio-label {
        border-color: var(--e-global-color-28ee1f3);
    }

    /* ── Nicht verfügbar ── */
    &.is-disabled {
        opacity: var(--wtb-radio-disabled-opacity);
        cursor: not-allowed;
        pointer-events: none;

        .wtb-radio-label {
            text-decoration: line-through;
        }
    }
}

.wtb-radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    min-width: 44px;
    border: 1px solid var(--wtb-radio-border);
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.2;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

/* ── Swatch-Optionen ── */
.wtb-swatch-options {
    gap: 32px;
}

.wtb-swatch-option {
    flex-direction: column;
    align-items: center;
    gap: 8px;

    &:hover .wtb-swatch-color {
        border-color: rgba(0, 0, 0, 0.35);
    }

    input[type="radio"]:checked~.wtb-swatch-color {
        border-color: #221c13;
        outline-color: #221c13;
    }

    /* ── Nicht verfügbar ── */
    &.is-disabled .wtb-swatch-color {
        opacity: var(--wtb-radio-disabled-opacity);
        position: relative;

        &::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top right,
                    transparent calc(50% - 0.75px),
                    rgba(0, 0, 0, 0.35) calc(50% - 0.75px) calc(50% + 0.75px),
                    transparent calc(50% + 0.75px));
            border-radius: inherit;
        }
    }
}

.wtb-swatch-color {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: var(--swatch-bg, #d9d9d9);
    border: 1px solid transparent;
    transition: border-color 0.15s ease, outline-color 0.15s ease;
    cursor: pointer;
}

.wtb-swatch-name {
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--e-global-color-a34d29c);
    line-height: 140%;
    text-align: center;
    white-space: break-spaces;
    width: 66px;
    hyphens: auto;
}

/* ── Produktpreis ── */
.wtb-product-price {
    margin-bottom: 16px;

    .price {
        font-family: var(--e-global-typography-primary-font-family), sans-serif;
        font-size: 24px;
        font-weight: 700;
        color: var(--e-global-color-a34d29c);
        line-height: 1.2;
    }

    ins {
        text-decoration: none;
    }

    del {
        font-size: 16px;
        font-weight: 400;
        opacity: 0.5;
        margin-right: 6px;
    }
}

/* ── Preisdifferenz ── */
.wtb-price-diff {
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--e-global-color-a34d29c);
    line-height: 140%;
    text-align: center;
    white-space: pre-wrap;
    white-space: nowrap;
    margin-top: -8px;
    white-space: break-spaces;
    width: 66px;
}

/* ── Bild-Swatch ── */
.wtb-swatch-image {
    background-size: cover;
    background-position: center;
    background-color: transparent;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    border-radius: 50%;
}

/* ── Bild in Pill-Radio ── */
.wtb-radio-img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.wtb-radio-label:has(.wtb-radio-img) {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
}

/* ── Mengenfeld ── */
.wtb-quantity-wrap {
    margin: 0;

    .quantity {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .qty {
        width: 64px;
        padding: 8px 10px;
        border: 1px solid var(--wtb-radio-border);
        border-radius: 6px;
        font-size: 1rem;
        text-align: center;
        height: 50px !important;
    }
}

/* ── Button-Bereich ── */

/* WooCommerce versteckt single_variation_wrap per JS — bei unserem Widget immer sichtbar */
.wtb-add-to-cart-radio .single_variation_wrap {
    display: block !important;
}

.single_variation_wrap {
    .single_variation {
        margin-bottom: 12px;
        font-size: 0.875rem;
    }

    .single_add_to_cart_button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.15s ease;

        &.disabled {
            opacity: 0.45;
            cursor: not-allowed;
            pointer-events: none;
        }
    }
}