
/* Wrapper around the swatch row (length + menge) */
.ehd-len-wrap{
    position:relative;
    display:flex;
    align-items:center;
    width:100%;
    max-width:520px;
    gap:0;
    padding:0;
    margin:6px 0;
}
.ehd-len-wrap .cfvsw-swatches-container{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    scroll-behavior:smooth;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -ms-overflow-style:none;
    gap:6px !important;
    padding:2px 4px !important;
    flex:1 1 auto;
    min-width:0;
    margin:0 !important;
}
.ehd-len-wrap .cfvsw-swatches-container::-webkit-scrollbar{display:none}
.ehd-len-wrap .cfvsw-swatches-container .cfvsw-swatches-option{
    flex:0 0 auto !important;
    scroll-snap-align:center;
}
.ehd-len-arrow{
    width:32px; height:32px;
    flex:0 0 32px;
    display:flex; align-items:center; justify-content:center;
    border:1px solid #4a1f29;
    background:#4a1f29;
    color:#fff;
    border-radius:50%;
    cursor:pointer;
    font:600 18px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    padding:0; margin:0;
    transition:background .18s, border-color .18s, opacity .18s, transform .12s, box-shadow .18s;
    user-select:none;
    -webkit-tap-highlight-color:transparent;
    box-shadow:0 2px 6px rgba(74,31,41,0.25);
}
.ehd-len-arrow:hover{
    background:#2a0e12;
    border-color:#2a0e12;
    color:#fff;
    box-shadow:0 3px 10px rgba(74,31,41,0.4);
}
.ehd-len-arrow:active{ transform:scale(.92) }
.ehd-len-arrow.is-disabled{
    opacity:0.32; pointer-events:none; cursor:default; box-shadow:none;
}
.ehd-len-arrow.prev{ margin-right:6px }
.ehd-len-arrow.next{ margin-left:6px }

/* Mobile: edge-to-edge layout — Pfeile am Bildschirmrand, Zahlen können seitlich angeschnitten sein.
   Wir sprengen das Parent-Container (td.value, table.variations) aktiv, damit's wirklich bis zum Bildschirmrand geht. */
@media (max-width:780px){
    /* Parent-Container die Breite freigeben */
    body .variations,
    body .variations tbody,
    body .variations tr,
    body .variations td.value,
    body .variations th.label{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        padding:0 !important;
        margin:0 !important;
    }
    body .variations td.value{ overflow:visible !important; }
    body .variations th.label{ font-weight:600; padding-top:8px !important; padding-bottom:4px !important }
    body .variations th.label .ehd-len-spanne{ float:right; margin-left:10px; padding:2px 10px; border-radius:999px; background:rgba(99,44,59,.08); color:#632C3B; font-size:12.5px; font-weight:700; line-height:1.6; white-space:nowrap }
    html[data-theme="dark"] body .variations th.label .ehd-len-spanne{ background:rgba(232,185,198,.14); color:#E8B9C6 }
    /* Carousel-Wrap selbst */
    body .ehd-len-wrap{
        max-width:none !important;
        width:100vw !important;
        position:relative !important;
        left:50% !important;
        right:50% !important;
        margin-left:-50vw !important;
        margin-right:-50vw !important;
        padding:0 6px !important;
        box-sizing:border-box !important;
    }
    body .ehd-len-wrap .cfvsw-swatches-container{
        scroll-snap-type:x proximity;
        max-width:100% !important;
    }
    .ehd-len-arrow{ width:30px; height:30px; flex-basis:30px; font-size:16px }
    .ehd-len-arrow.prev{ margin-right:4px }
    .ehd-len-arrow.next{ margin-left:4px }
}
@media (max-width:480px){
    body .ehd-len-wrap{ padding:0 4px !important }
    .ehd-len-arrow{ width:28px; height:28px; flex-basis:28px; font-size:15px }
    .ehd-len-arrow.prev{ margin-right:3px }
    .ehd-len-arrow.next{ margin-left:3px }
}

