/* ==========================================================================
   LOKALE DSGVO-KONFORME SCHRIFTART: FREDOKA BOLD
   ========================================================================== */
@font-face {
  font-family: 'Fredoka Local';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fredoka-v17-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   BASIS-LAYOUT & DYNAMISCHES GRID
   ========================================================================== */

/* Basis-Layout: Untereinander auf dem Handy */
.config-grid-layout { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 20px; 
}

/* Tablet & Desktop: Zwei Spalten nebeneinander */
@media (min-width: 768px) { 
    .config-grid-layout { 
        grid-template-columns: 1fr 1fr; 
        align-items: stretch; /* Zwingt beide Hauptspalten auf exakt die gleiche Höhe */
    } 
    
    /* Zwingt die rechte Spalte (Perlen + Notizen), sich über die volle Höhe zu strecken */
    .config-grid-layout > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: 100%;
    }
    
    /* Macht die Anmerkungs-Box flexibel */
    .config-grid-layout > div:last-child .skt-config-box:last-child {
        display: flex;
        flex-direction: column;
        flex: 1; /* Füllt den verbleibenden Platz nach unten komplett aus */
    }
    
    /* Das Textfeld füllt jetzt den gesamten, neu gewonnenen Platz elastisch aus */
    #skt-customer-notes {
        flex: 1;
        height: auto !important; /* Überschreibt die feste Höhe aus dem Template */
        min-height: 82px;
    }
}

/* ==========================================================================
   KOMPONENTEN & FIXES (VORSCHAU, WARENKORB & DRAG-AND-DROP)
   ========================================================================== */

/* Fix für die Ketten-Vorschau (Handy-Scrollen) */
#preview-container {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Sanftes Scrollen für iPhone */
    padding: 0 40px; 
    position: relative;
}

.skt-live-watermark {
    position: absolute;
    inset: 0 0 auto;
    height: 180px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
    pointer-events: none;
    user-select: none;
    opacity: var(--skt-watermark-opacity, 0.10);
}

.skt-live-watermark span {
    color: #7f3f4d;
    font-size: var(--skt-watermark-font-size, 14px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    transform: rotate(-16deg);
}

@media (max-width: 520px) {
    .skt-live-watermark {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skt-live-watermark span:nth-child(3) {
        display: none;
    }
}

/* Verhindert, dass die Perlen auf dem Handy zusammengedrückt werden */
#live-chain {
    background-color: white !important;
    display: flex !important;
    visibility: visible !important;
}

/* Verhindert, dass Lazy Loading das Bild im Warenkorb "leer" lässt */
.skip-lazy {
    opacity: 1 !important;
    display: block !important;
}

/* Verhindert Text-Markierung beim Verschieben (Drag & Drop) */
#parts-list-ui div { 
    touch-action: none; 
    user-select: none; 
    -webkit-user-select: none; 
}

/* Sichtbare Einfügeposition beim Drag & Drop im Reihenfolge-Manager. */
#parts-list-ui .skt-sort-item {
    overflow: visible;
}

#parts-list-ui .skt-sort-item.skt-is-dragging {
    opacity: 0.48 !important;
}

#parts-list-ui .skt-sort-item.skt-drop-before,
#parts-list-ui .skt-sort-item.skt-drop-after {
    box-shadow: 0 0 0 2px rgba(255, 59, 136, 0.20) !important;
}

#parts-list-ui .skt-sort-item.skt-drop-before::before,
#parts-list-ui .skt-sort-item.skt-drop-after::before {
    content: "";
    position: absolute;
    top: -6px;
    bottom: -6px;
    width: 5px;
    border-radius: 999px;
    background: var(--skt-accent, #ff3b88);
    box-shadow: 0 0 0 2px #fff, 0 0 9px rgba(255, 59, 136, 0.55);
    pointer-events: none;
    z-index: 80;
}

#parts-list-ui .skt-sort-item.skt-drop-before::before {
    left: -9px;
}

#parts-list-ui .skt-sort-item.skt-drop-after::before {
    right: -9px;
}

#parts-list-ui .skt-sort-item.skt-drop-blocked {
    box-shadow: inset 0 0 0 2px #d63638 !important;
    opacity: 0.72;
}

/* Klick-Effekt für Buttons */
#btn-add-linse:active, #btn-add-rund:active, #btn-add-hexagon:active, 
button[onclick="addLetterPart()"]:active, button[onclick="addMotivPart()"]:active { 
    transform: scale(0.96); 
    background-color: #f0f0f0 !important; 
    transition: transform 0.1s; 
}
    
/* Macht die Konfigurator-Details im Warenkorb lesbarer */
.wc-item-meta {
    display: block;
    margin-top: 5px;
}

.wc-item-meta li {
    display: block !important; /* Erzwingt Zeilenumbruch pro Detail */
    margin-bottom: 2px;
}

.wc-item-meta li strong {
    color: #555; /* Etwas dunkler für besseren Kontrast */
}

/* Verhindert, dass die Pfeile den Klick am Desktop "verschlucken" */
.move-left, .move-right, .remove-part {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto !important;
}

/* ==========================================================================
   BUCHSTABENART: KUNSTSTOFF, SILIKON UND HOLZ
   ========================================================================== */

.skt-letter-material-wrap {
    margin-bottom: 15px;
}

.skt-letter-material-label {
    display: block;
    margin: 0 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
}

.skt-letter-material-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 38px 10px 12px;
    border: 1px solid var(--skt-accent);
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    box-sizing: border-box;
}

.skt-letter-material-select:focus {
    outline: 2px solid var(--skt-accent);
    outline-offset: 1px;
}

.skt-letter-material-price-hint {
    min-height: 17px;
    margin-top: 5px;
    padding: 0 2px;
    color: #777;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .skt-letter-material-select {
        min-height: 46px;
        font-size: 15px;
    }
}

/* Holz-Buchstaben in heller Buchenoptik – vollständig per CSS, ohne Bilddatei. */
.skt-letter-bead.skt-letter-bead-wood {
    background-color: #d8b37a !important;
    background-image:
        repeating-linear-gradient(8deg, rgba(105, 70, 36, 0.13) 0, rgba(105, 70, 36, 0.13) 1px, transparent 1px, transparent 6px),
        linear-gradient(135deg, #f0d5a5 0%, #d8b37a 48%, #c89659 100%) !important;
    border-color: #9f7445 !important;
    color: #3e2a18 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 5px 8px rgba(255,255,255,.18), 0 1px 2px rgba(69,42,20,.16) !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.42) !important;
}

/* ==========================================================================
   WARENKORB: RESPONSIVE KONFIGURATOR-VORSCHAU
   Nur der Konfigurator erhält die größere Thumbnail-Darstellung.
   ========================================================================== */
.woocommerce-cart tr.skt-configurator-cart-item td.product-thumbnail {
    width: clamp(260px, 24vw, 380px) !important;
    min-width: clamp(260px, 24vw, 380px) !important;
    max-width: clamp(260px, 24vw, 380px) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    vertical-align: middle !important;
    overflow: visible !important;
}

.woocommerce-cart tr.skt-configurator-cart-item .skt-cart-preview-wrap {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
}

.woocommerce-cart tr.skt-configurator-cart-item img.skt-cart-preview-image {
    display: block !important;
    width: clamp(240px, 21vw, 340px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 12px auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    float: none !important;
}

@media screen and (max-width: 768px) {
    .woocommerce-cart tr.skt-configurator-cart-item td.product-thumbnail {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        overflow: visible !important;
    }

    .woocommerce-cart tr.skt-configurator-cart-item img.skt-cart-preview-image {
        width: min(92vw, 520px) !important;
        max-width: min(92vw, 520px) !important;
        min-width: 0 !important;
        margin: 16px auto !important;
    }
}


/* Produkt-Dropdowns mit Vorschaubild – 6.2.2 */
.skt-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.skt-rich-select {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 20;
}

.skt-rich-select.is-open { z-index: 1000; }

.skt-rich-select-trigger,
.skt-rich-select-option {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--skt-accent);
    background: #fff;
    color: #333;
    text-align: left;
}

.skt-rich-select-trigger {
    min-height: 48px;
    padding: 6px 9px;
    border-radius: 8px;
    cursor: pointer;
}

.skt-rich-select-current {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.skt-rich-select-arrow { flex: 0 0 auto; font-size: 18px; line-height: 1; }

.skt-rich-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(330px, 48vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--skt-accent);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.skt-rich-select.is-open .skt-rich-select-menu { display: block; }

.skt-rich-select-option {
    min-height: 54px;
    padding: 7px 9px;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    cursor: pointer;
}

.skt-rich-select-option:last-child { border-bottom: 0; }
.skt-rich-select-option:hover,
.skt-rich-select-option[aria-selected="true"] { background: #f7f7f7; }
.skt-rich-select-option:disabled { opacity: .48; cursor: not-allowed; }

.skt-rich-select-image {
    width: 38px;
    height: 38px;
    min-width: 38px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.skt-rich-select-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.skt-rich-select-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.skt-rich-select-name { font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skt-rich-select-status { margin-top: 2px; font-size: 10px; line-height: 1.15; color: #777; }
.skt-rich-select-check { flex: 0 0 auto; font-weight: 700; }

#clip-variant-select + .skt-rich-select { margin-bottom: 15px; }

@media (max-width: 600px) {
    .skt-rich-select-menu {
        max-height: min(280px, 42vh);
        max-width: calc(100vw - 34px);
    }
    .skt-rich-select-trigger { min-height: 44px; padding: 5px 7px; }
    .skt-rich-select-option { min-height: 48px; padding: 5px 7px; }
    .skt-rich-select-image { width: 32px; height: 32px; min-width: 32px; }
    .skt-rich-select-name { font-size: 11px; }
    .skt-rich-select-status { font-size: 9px; }
}

/* In vorhandenen Flex-Zeilen teilt sich das Rich-Dropdown den Platz sauber. */
.skt-rich-select { flex: 1 1 0; }


/* Motivauswahl: breite Bildliste mit Suche, geschlossene Auswahl ohne Miniaturbild. */
.skt-rich-select--motiv-main .skt-rich-select-trigger {
    min-height: 40px;
}
.skt-rich-select--motiv-main .skt-rich-select-menu {
    width: min(560px, calc(100vw - 32px));
    right: auto;
    max-height: min(520px, 68vh);
}
.skt-rich-select--motiv-main .skt-rich-select-option {
    min-height: 74px;
    padding: 8px 10px;
}
.skt-rich-select--motiv-main .skt-rich-select-image {
    width: 58px;
    height: 58px;
    min-width: 58px;
}
.skt-rich-select--motiv-main .skt-rich-select-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 13px;
}
.skt-rich-select--motiv-main .skt-rich-select-status { font-size: 11px; }
.skt-rich-select-search-wrap {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 9px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.skt-rich-select-search {
    display: block;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 8px 11px;
    border: 1px solid var(--skt-accent);
    border-radius: 8px;
    background: #fff;
    color: #333;
    font: inherit;
}
.skt-rich-select-search:focus {
    outline: 2px solid color-mix(in srgb, var(--skt-accent) 28%, transparent);
    outline-offset: 1px;
}
.skt-rich-select-option[hidden] { display: none !important; }
#motiv-preview-img.skt-motiv-preview-change { animation: sktMotivPreviewIn .18s ease-out; }
@keyframes sktMotivPreviewIn {
    from { opacity: .2; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .skt-rich-select--motiv-main.skt-legacy-popup.is-open .skt-rich-select-menu {
        position: fixed;
        z-index: 100000;
        top: 8vh;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        max-height: 84vh;
        border-radius: 12px;
        box-shadow: 0 14px 46px rgba(0,0,0,.28);
    }
    .skt-rich-select--motiv-main .skt-rich-select-option {
        min-height: 72px;
        padding: 7px 9px;
    }
    .skt-rich-select--motiv-main .skt-rich-select-image {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
    .skt-rich-select--motiv-main .skt-rich-select-name { font-size: 12px; }
    .skt-rich-select--motiv-main .skt-rich-select-status { font-size: 10px; }
}

/* Motiv- und Variantenauswahl: Desktop-Dialog, mobil als Bottom Sheet. */
html.skt-motiv-sheet-open,
body.skt-motiv-sheet-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.skt-motiv-sheet-open {
    touch-action: none;
}

/* Der Dialog selbst und seine scrollbaren Listen bleiben bedienbar. */
body.skt-motiv-sheet-open .skt-rich-select.is-open .skt-rich-select-menu,
body.skt-motiv-sheet-open .skt-rich-select.is-open .skt-rich-select-dialog-options,
body.skt-motiv-sheet-open .skt-rich-select.is-open .skt-rich-select-bead-options {
    touch-action: pan-y;
}

body.skt-motiv-sheet-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, .46);
    animation: sktSheetBackdropIn .2s ease-out;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant).is-open {
    z-index: 99999;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-menu,
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant).is-open .skt-rich-select-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(900px, calc(100vw - 48px));
    max-width: none;
    height: min(78vh, 720px);
    max-height: calc(100vh - 48px);
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
    transform: translate(-50%, -48%) scale(.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease-out, opacity .2s ease-out, visibility 0s linear .2s;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant).is-open .skt-rich-select-menu {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .2s ease-out, opacity .2s ease-out;
}
.skt-rich-select-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 66px;
    padding: 12px 20px;
    border-bottom: 1px solid #e9e9e9;
    background: #fff;
    font-size: 18px;
}
.skt-rich-select-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font: 700 27px/1 sans-serif;
    cursor: pointer;
}
.skt-rich-select-sheet-close:hover,
.skt-rich-select-sheet-close:focus-visible {
    background: #e7e7e7;
    outline: none;
}
.skt-rich-select-dialog-options {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 16px;
    background: #fff;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-option {
    min-height: 86px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-option + .skt-rich-select-option {
    margin-top: 6px;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-option:hover:not(:disabled),
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-option[aria-selected="true"] {
    background: color-mix(in srgb, var(--skt-accent) 10%, #fff);
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-image {
    width: 66px;
    height: 66px;
    min-width: 66px;
    border-radius: 10px;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 15px;
    line-height: 1.35;
}
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-status {
    margin-top: 4px;
    font-size: 12px;
}

@media (max-width: 600px) {
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-menu,
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant).is-open .skt-rich-select-menu {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: min(88vh, 760px);
        height: min(88svh, 760px);
        max-height: calc(100vh - 20px);
        max-height: calc(100svh - 20px);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -14px 45px rgba(0, 0, 0, .3);
        transform: translateY(105%);
        opacity: 1;
        transition: transform .24s ease-out, visibility 0s linear .24s;
    }
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant).is-open .skt-rich-select-menu {
        transform: translateY(0);
        transition: transform .24s ease-out;
    }
    .skt-rich-select-sheet-header {
        min-height: 58px;
        padding: max(10px, env(safe-area-inset-top)) 16px 10px;
        font-size: 16px;
    }
    .skt-rich-select-sheet-close {
        width: 38px;
        height: 38px;
        font-size: 25px;
    }
    .skt-rich-select-dialog-options {
        padding: 6px 8px max(12px, env(safe-area-inset-bottom));
    }
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-option {
        min-height: 74px;
        padding: 8px 10px;
        border-radius: 9px;
    }
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-option + .skt-rich-select-option {
        margin-top: 2px;
    }
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-image {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-name { font-size: 12px; }
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-status { font-size: 10px; }
}
@keyframes sktSheetBackdropIn { from { opacity: 0; } to { opacity: 1; } }

/* 6.2.7: bewusste Variantenauswahl statt automatischer Vorauswahl */
.skt-rich-select--motiv-variant .skt-rich-select-placeholder {
    opacity: .72;
    font-weight: 600;
}

/* 6.3.4: Mobile Motive etwas größer; Zwischenräume steuert weiterhin nur „visueller Abstand“. */
.skt-renderchain-motiv-slot {
    overflow: visible;
}

@media (max-width: 600px) {
    #live-chain .skt-renderchain-motiv-slot {
        width: 56px !important;
        height: 56px !important;
        flex-basis: 56px !important;
    }

    #live-chain .skt-renderchain-motiv-slot img.skt-renderchain-product-image {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}


/* 6.3.8: Motivauswahl verwendet denselben Dialog wie die Variantenauswahl. */
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-search-wrap {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    padding: 10px 14px;
}
.skt-rich-select-motiv-options {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 10px 14px 16px;
}
@media (max-width: 600px) {
    :is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant) .skt-rich-select-search-wrap { padding: 8px; }
    .skt-rich-select-motiv-options { padding: 6px 8px max(12px, env(safe-area-inset-bottom)); }
}


/* Kompakter mobiler Bedienbereich – 6.3.10 */
.skt-config-actions { position: relative; }
.skt-action-icon { line-height: 1; }

@media (max-width: 600px) {
    #schnullerketten-konfigurator {
        padding: 12px !important;
    }

    .skt-config-actions {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: center;
        gap: 6px !important;
        margin: 0 0 9px !important;
        padding: 0 !important;
    }

    .skt-config-actions .skt-action {
        min-width: 0;
        width: 100%;
        min-height: 36px;
        padding: 5px 7px !important;
        margin: 0 !important;
        justify-content: center !important;
        font-size: 11px !important;
        line-height: 1.1;
        gap: 4px !important;
        white-space: normal;
        text-align: center;
        box-shadow: none !important;
    }

    .skt-config-actions .skt-action-clear { grid-column: 1 / 5; grid-row: 1; }
    .skt-config-actions .skt-action-load  { grid-column: 5 / 9; grid-row: 1; }

    .skt-config-actions .skt-action-undo,
    .skt-config-actions .skt-action-redo {
        position: static;
        width: 32px !important;
        height: 32px;
        min-height: 32px;
        padding: 0 !important;
        border-radius: 10px !important;
        background: #fff !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .skt-config-actions .skt-action-undo { grid-column: 9 / 11; grid-row: 1; justify-self: center; }
    .skt-config-actions .skt-action-redo { grid-column: 11 / 13; grid-row: 1; justify-self: center; }

    .skt-config-actions .skt-action-undo .skt-action-label,
    .skt-config-actions .skt-action-redo .skt-action-label { display: none; }

    .skt-config-actions .skt-action-help {
        grid-column: 1 / 7;
        grid-row: 2;
        min-height: 34px;
        padding-block: 4px !important;
        font-size: 11px !important;
    }

    .skt-config-actions .skt-action-prices {
        grid-column: 7 / 13;
        grid-row: 2;
        min-height: 34px;
        padding-block: 4px !important;
        font-size: 11px !important;
    }

    .skt-config-actions .skt-action-help > span {
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px;
        font-size: 9px !important;
    }

    .skt-config-actions .skt-action-preview {
        grid-column: 1 / -1;
        grid-row: 3;
        width: max-content;
        max-width: 100%;
        min-height: 32px;
        padding: 4px 13px !important;
        justify-self: center;
    }
}


/* ========================================================================== 
   6.3.12 – KOMPAKTER REIHENFOLGE-MANAGER AUF SMARTPHONES
   Die sichtbaren Karten werden kleiner; alle wichtigen Touch-Ziele bleiben
   mindestens etwa 42–44 px groß.
   ========================================================================== */
@media (max-width: 767px) {
    #parts-manager {
        padding: 12px 10px !important;
        margin-bottom: 16px !important;
        border-radius: 13px !important;
    }

    #parts-manager > label {
        margin-bottom: 6px !important;
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    #parts-list-ui {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 4px !important;
        align-items: stretch !important;
    }

    #parts-list-ui .skt-sort-item {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 84px !important;
        padding: 6px 4px !important;
        border-radius: 9px !important;
        cursor: grab;
    }

    #parts-list-ui .skt-sort-item-letter {
        min-height: 76px !important;
        gap: 2px !important;
    }

    #parts-list-ui .skt-sort-item-letter strong {
        font-size: 17px !important;
        line-height: 1 !important;
    }

    #parts-list-ui .skt-sort-item-letter span {
        font-size: 8px !important;
        line-height: 1.1 !important;
        margin-top: 3px !important;
    }

    #parts-list-ui .move-buttons {
        width: 100% !important;
        justify-content: center !important;
        gap: 3px !important;
        margin: 0 0 3px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 42px !important;
        min-width: 0 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 6px !important;
        font-size: 11px !important;
        line-height: 32px !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }

    #parts-list-ui .skt-sort-product-image {
        width: 28px !important;
        height: 28px !important;
    }

    #parts-list-ui .remove-part {
        position: absolute !important;
        left: 50% !important;
        bottom: -7px !important;
        transform: translateX(-50%) !important;
        width: 44px !important;
        height: 28px !important;
        min-width: 44px !important;
        min-height: 28px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 999px !important;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }

    #parts-list-ui .skt-sort-item-product {
        margin-bottom: 7px !important;
    }
}

@media (max-width: 380px) {
    #parts-list-ui {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ========================================================================== 
   6.3.13 – FESTES, KOMPAKTES MOBIL-GRID FÜR DEN REIHENFOLGE-MANAGER
   Rein visuelle Anpassung: Drag & Drop, Pfeile, Löschen und Regeln bleiben
   vollständig in der bestehenden JavaScript-Logik.
   ========================================================================== */
@media (max-width: 767px) {
    #parts-manager {
        padding: 10px 8px !important;
    }

    #parts-list-ui {
        grid-template-columns: repeat(auto-fill, 76px) !important;
        justify-content: center !important;
        align-items: start !important;
        gap: 8px !important;
        padding: 3px 0 8px !important;
    }

    #parts-list-ui .skt-sort-item {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        min-height: 78px !important;
        padding: 5px 3px !important;
        box-sizing: border-box !important;
    }

    #parts-list-ui .skt-sort-item-letter {
        min-height: 78px !important;
    }

    #parts-list-ui .skt-sort-item-letter strong {
        font-size: 16px !important;
    }

    #parts-list-ui .skt-sort-item-letter span {
        font-size: 8px !important;
        margin-top: 2px !important;
    }

    #parts-list-ui .move-buttons {
        gap: 4px !important;
        margin-bottom: 2px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        line-height: 34px !important;
        font-size: 11px !important;
    }

    #parts-list-ui .skt-sort-product-image {
        width: 27px !important;
        height: 27px !important;
    }

    #parts-list-ui .remove-part {
        bottom: -8px !important;
        width: 42px !important;
        min-width: 42px !important;
        height: 28px !important;
        min-height: 28px !important;
    }

    #parts-list-ui .skt-sort-item-product {
        margin-bottom: 8px !important;
    }
}

@media (max-width: 359px) {
    #parts-list-ui {
        grid-template-columns: repeat(auto-fill, 72px) !important;
        gap: 7px !important;
    }

    #parts-list-ui .skt-sort-item {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 32px !important;
        min-width: 32px !important;
    }
}

/* ========================================================================== 
   6.3.14 – DICHTER, INHALTSBASIERTER REIHENFOLGE-MANAGER AUF MOBILGERÄTEN
   Nur Darstellung: bestehende Drag-, Pfeil-, Lösch- und Undo/Redo-Logik bleibt.
   ========================================================================== */
@media (max-width: 767px) {
    #parts-manager {
        min-height: 0 !important;
        height: auto !important;
        padding: 10px 8px 12px !important;
    }

    #parts-manager > label {
        display: block !important;
        margin: 0 0 8px !important;
    }

    #parts-list-ui {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, 68px) !important;
        grid-auto-rows: max-content !important;
        justify-content: start !important;
        align-content: start !important;
        align-items: start !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 2px 2px !important;
        overflow: visible !important;
    }

    #parts-list-ui .skt-sort-item {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 5px 3px !important;
        align-self: start !important;
    }

    #parts-list-ui .skt-sort-item-letter {
        height: 68px !important;
        min-height: 68px !important;
        padding: 5px 3px !important;
        gap: 0 !important;
    }

    #parts-list-ui .skt-sort-item-letter strong {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    /* Das Material wird bereits zentral im Bereich „Namen hinzufügen“ angezeigt. */
    #parts-list-ui .skt-sort-item-letter span {
        display: none !important;
    }

    #parts-list-ui .skt-sort-item-product {
        min-height: 92px !important;
        margin: 0 0 8px !important;
        padding: 4px 2px 12px !important;
        justify-content: flex-start !important;
    }

    #parts-list-ui .move-buttons {
        width: 100% !important;
        gap: 3px !important;
        margin: 0 0 4px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 30px !important;
        min-width: 30px !important;
        height: 36px !important;
        min-height: 36px !important;
        line-height: 36px !important;
        font-size: 11px !important;
    }

    #parts-list-ui .skt-sort-product-image {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
    }

    #parts-list-ui .remove-part {
        bottom: -7px !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 27px !important;
        min-height: 27px !important;
        line-height: 27px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 359px) {
    #parts-list-ui {
        grid-template-columns: repeat(auto-fit, 64px) !important;
        gap: 7px !important;
    }

    #parts-list-ui .skt-sort-item {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
    }

    #parts-list-ui .skt-sort-item-letter {
        height: 64px !important;
        min-height: 64px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 28px !important;
        min-width: 28px !important;
    }
}

/* ========================================================================== 
   6.3.15 – TATSÄCHLICH KOMPAKTE MOBILE REIHENFOLGE-KARTEN
   Ausschließlich Darstellung. Die vorhandenen Klick-, Drag-, Lösch- und
   Undo/Redo-Handler bleiben unverändert.
   ========================================================================== */
@media (max-width: 767px) {
    #parts-manager {
        padding: 8px 6px 10px !important;
    }

    #parts-manager > label {
        margin-bottom: 6px !important;
        line-height: 1.2 !important;
    }

    #parts-list-ui {
        grid-template-columns: repeat(auto-fill, 56px) !important;
        gap: 6px !important;
        padding: 0 !important;
        justify-content: start !important;
    }

    #parts-list-ui .skt-sort-item {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        padding: 3px 2px !important;
        border-radius: 8px !important;
    }

    #parts-list-ui .skt-sort-item-letter {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 2px !important;
    }

    #parts-list-ui .skt-sort-item-letter strong {
        font-size: 15px !important;
        line-height: 1 !important;
    }

    #parts-list-ui .skt-sort-item-product {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        min-height: 76px !important;
        padding: 3px 1px 10px !important;
        margin-bottom: 5px !important;
    }

    #parts-list-ui .move-buttons {
        gap: 2px !important;
        margin-bottom: 2px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 25px !important;
        min-width: 25px !important;
        height: 27px !important;
        min-height: 27px !important;
        padding: 0 !important;
        border-radius: 5px !important;
        font-size: 10px !important;
        line-height: 27px !important;
    }

    #parts-list-ui .skt-sort-product-image {
        width: 25px !important;
        height: 25px !important;
    }

    #parts-list-ui .remove-part {
        bottom: -5px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 23px !important;
        min-height: 23px !important;
        padding: 0 !important;
        font-size: 11px !important;
        line-height: 23px !important;
    }
}

@media (max-width: 359px) {
    #parts-list-ui {
        grid-template-columns: repeat(auto-fill, 52px) !important;
        gap: 5px !important;
    }

    #parts-list-ui .skt-sort-item,
    #parts-list-ui .skt-sort-item-letter,
    #parts-list-ui .skt-sort-item-product {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
    }

    #parts-list-ui .skt-sort-item-letter {
        height: 56px !important;
        min-height: 56px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 23px !important;
        min-width: 23px !important;
    }
}

/* ========================================================================== 
   6.3.16 – MOBILE SORTIERKARTEN NOCH KOMPAKTER
   Nur optische Anpassung; Drag & Drop, Pfeil- und Löschlogik bleiben gleich.
   ========================================================================== */
@media (max-width: 767px) {
    #parts-list-ui {
        grid-template-columns: repeat(auto-fill, 48px) !important;
        gap: 5px !important;
    }

    #parts-list-ui .skt-sort-item,
    #parts-list-ui .skt-sort-item-letter,
    #parts-list-ui .skt-sort-item-product {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }

    #parts-list-ui .skt-sort-item-letter {
        height: 50px !important;
        min-height: 50px !important;
        padding: 1px !important;
    }

    #parts-list-ui .skt-sort-item-letter strong {
        font-size: 13px !important;
        line-height: 1 !important;
    }

    #parts-list-ui .skt-sort-item-product {
        min-height: 66px !important;
        padding: 2px 1px 8px !important;
        margin-bottom: 3px !important;
    }

    #parts-list-ui .move-buttons {
        gap: 2px !important;
        margin: 0 0 1px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        position: relative !important;
        width: 21px !important;
        min-width: 21px !important;
        height: 22px !important;
        min-height: 22px !important;
        border-radius: 4px !important;
        font-size: 9px !important;
        line-height: 22px !important;
    }

    /* Unsichtbar vergrößerte Trefferfläche, obwohl der Button klein aussieht. */
    #parts-list-ui .move-left::before,
    #parts-list-ui .move-right::before {
        content: "";
        position: absolute;
        inset: -7px -3px;
    }

    #parts-list-ui .skt-sort-product-image {
        width: 23px !important;
        height: 23px !important;
    }

    #parts-list-ui .remove-part {
        left: auto !important;
        right: -3px !important;
        bottom: -4px !important;
        transform: none !important;
        width: 21px !important;
        min-width: 21px !important;
        height: 21px !important;
        min-height: 21px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 10px !important;
        line-height: 21px !important;
    }

    #parts-list-ui .remove-part::before {
        content: "";
        position: absolute;
        inset: -7px;
    }
}

@media (max-width: 359px) {
    #parts-list-ui {
        grid-template-columns: repeat(auto-fill, 46px) !important;
        gap: 4px !important;
    }

    #parts-list-ui .skt-sort-item,
    #parts-list-ui .skt-sort-item-letter,
    #parts-list-ui .skt-sort-item-product {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
    }
}


/* ========================================================================== 
   6.3.17 – MOBILE PERLENAUSWAHL ALS DIALOG + KOMPAKTE FORMENREIHE
   ========================================================================== */
.skt-beads-once-hint { display: none; }

/* Die Farbauswahl verwendet denselben stabilen Dialog wie Motive/Varianten. */
:is(.skt-rich-select--motiv-main, .skt-rich-select--motiv-variant, .skt-rich-select--bead-color).is-open { z-index: 99999; }
:is(.skt-rich-select--bead-color) .skt-rich-select-menu,
:is(.skt-rich-select--bead-color).is-open .skt-rich-select-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 99999;
    top: 50%; left: 50%; right: auto; bottom: auto;
    width: min(900px, calc(100vw - 48px));
    height: min(78vh, 720px);
    max-height: calc(100vh - 48px);
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0,0,0,.34);
    transform: translate(-50%, -48%) scale(.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease-out, opacity .2s ease-out, visibility 0s linear .2s;
}
:is(.skt-rich-select--bead-color).is-open .skt-rich-select-menu {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .2s ease-out, opacity .2s ease-out;
}
.skt-rich-select--bead-color .skt-rich-select-option {
    min-height: 86px;
    margin: 0 0 6px;
    padding: 10px 14px;
    border-radius: 12px;
}
.skt-rich-select--bead-color .skt-rich-select-image {
    width: 66px; height: 66px; min-width: 66px; border-radius: 10px;
}
.skt-rich-select--bead-color .skt-rich-select-name { font-size: 15px; white-space: normal; }
.skt-rich-select--bead-color .skt-rich-select-status { font-size: 12px; }

@media (max-width: 600px) {
    .skt-beads-box { padding: 14px !important; }
    .skt-beads-box > label { margin-bottom: 9px !important; }
    #color-main-select + .skt-rich-select, #crochet-variant-select + .skt-rich-select { width: 100%; margin-bottom: 5px; }
    .skt-rich-select--bead-color .skt-rich-select-trigger {
        min-height: 46px;
        padding: 8px 12px;
        border-radius: 9px;
    }
    .skt-rich-select--bead-color .skt-rich-select-menu,
    .skt-rich-select--bead-color.is-open .skt-rich-select-menu {
        top: auto; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: min(88vh, 760px);
        height: min(88svh, 760px);
        max-height: calc(100vh - 20px);
        max-height: calc(100svh - 20px);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -14px 45px rgba(0,0,0,.3);
        transform: translateY(105%);
        opacity: 1;
        transition: transform .24s ease-out, visibility 0s linear .24s;
    }
    .skt-rich-select--bead-color.is-open .skt-rich-select-menu {
        transform: translateY(0);
        transition: transform .24s ease-out;
    }
    .skt-rich-select-bead-options {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 6px 8px max(12px, env(safe-area-inset-bottom));
    }
    .skt-rich-select--bead-color .skt-rich-select-option {
        min-height: 74px;
        margin-bottom: 2px;
        padding: 8px 10px;
        border-radius: 9px;
    }
    .skt-rich-select--bead-color .skt-rich-select-image {
        width: 54px; height: 54px; min-width: 54px;
    }
    .skt-rich-select--bead-color .skt-rich-select-name { font-size: 12px; }
    .skt-rich-select--bead-color .skt-rich-select-status { font-size: 10px; }

    .skt-beads-once-hint {
        display: block;
        margin: 5px 0 7px;
        text-align: center;
        font-size: 11px;
        line-height: 1.2;
        color: #777;
    }
    .skt-bead-options[hidden] {
        display: none !important;
    }
    .skt-bead-options {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px !important;
    }
    .skt-bead-option {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 104px;
        padding: 7px 4px !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 4px !important;
        text-align: center !important;
    }
    .skt-bead-option img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }
    .skt-bead-option > div {
        align-items: center !important;
        text-align: center !important;
        min-width: 0;
    }
    .skt-bead-option > div > span:first-child {
        font-size: 10px !important;
        line-height: 1.15 !important;
        white-space: normal;
    }
    .skt-bead-option > div > span:nth-child(2) { display: none !important; }
    .skt-bead-option > div > span[id^="stock-"] {
        font-size: 8px !important;
        line-height: 1.1 !important;
    }
}


/* ========================================================================== 
   6.3.19 – GUTHABEN-HINWEIS SICHER INNERHALB DER VORSCHAU
   ========================================================================== */
@media (max-width: 600px) {
    /* Nur den Hinweis positionieren – die Kettenvorschau bleibt unangetastet. */
    #skt-price-note {
        left: 12px !important;
        right: 12px !important;
        bottom: 7px !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
        line-height: 1.08 !important;
        overflow: hidden !important;
    }

    #skt-price-note > span {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    #skt-price-note p {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: inherit !important;
        text-align: center !important;
        white-space: normal !important;
    }
}

/* ========================================================================== 
   6.3.20 – MOBILE VORSCHAU: KETTE FREI UNTER DER LÄNGENANZEIGE
   ========================================================================== */
@media (max-width: 600px) {
    /* Das frühere untere Innenpolster verkleinerte den Flex-Inhaltsbereich und
       schob die komplette Kette nach oben. Der Hinweis bleibt absolut unten,
       daher darf er die Zentrierung der Kette nicht beeinflussen. */
    #preview-container {
        padding: 0 20px !important;
        align-items: center !important;
    }

    #live-chain {
        transform: translateY(7px);
    }

    /* Hinweis bleibt innerhalb des Rahmens und überlagert die Kette nicht. */
    #skt-price-note {
        bottom: 6px !important;
    }
}

/* ========================================================================== 
   6.3.21 – DESKTOP-DIALOGE KOMPAKTER
   ========================================================================== */
@media (min-width: 601px) {
    :is(
        .skt-rich-select--motiv-main,
        .skt-rich-select--motiv-variant,
        .skt-rich-select--bead-color
    ) .skt-rich-select-menu,
    :is(
        .skt-rich-select--motiv-main,
        .skt-rich-select--motiv-variant,
        .skt-rich-select--bead-color
    ).is-open .skt-rich-select-menu {
        width: min(720px, calc(100vw - 64px));
    }
}


/* ========================================================================== 
   7.0.1 – DESKTOP-REIHENFOLGE UND PREISHINWEIS
   ========================================================================== */
@media (min-width: 768px) {
    /* Kompaktere Sortierkarten-Bedienung auf Desktop/Laptop. */
    #parts-list-ui .skt-sort-item-product {
        min-height: 132px !important;
        padding: 10px 10px 34px !important;
    }

    #parts-list-ui .move-buttons {
        gap: 6px !important;
        margin: 0 0 8px !important;
    }

    #parts-list-ui .move-left,
    #parts-list-ui .move-right {
        width: 32px !important;
        min-width: 32px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        border-radius: 5px !important;
        font-size: 11px !important;
        line-height: 28px !important;
    }

    #parts-list-ui .remove-part {
        position: absolute !important;
        left: auto !important;
        right: 8px !important;
        bottom: 8px !important;
        transform: none !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 !important;
        border-radius: 5px !important;
        font-size: 13px !important;
        line-height: 28px !important;
    }

    /* Der Guthabenhinweis bleibt vollständig innerhalb des gestrichelten
       Vorschaurahmens und liegt nicht mehr auf dessen unterer Linie. */
    #skt-price-note {
        bottom: 9px !important;
        transform: none !important;
    }

    #skt-price-note > span {
        background: #fff !important;
        border-radius: 6px !important;
        padding: 2px 9px !important;
    }
}


/* 7.0.27 – Firefox/Android: feste Dialoge unabhängig vom Dokument stabil halten. */
@media (max-width: 600px) {
    :is(
        .skt-rich-select--motiv-main,
        .skt-rich-select--motiv-variant,
        .skt-rich-select--bead-color
    ) .skt-rich-select-menu {
        contain: layout paint;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}


/* ==========================================================================
   7.0.29 – PREISÜBERSICHT & GUTHABEN
   ========================================================================== */
.skt-price-modal[hidden] {
    display: none !important;
}
.skt-price-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .76);
}
.skt-price-modal.is-open {
    display: flex;
}
.skt-price-modal-card {
    position: relative;
    width: min(94vw, 600px);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    padding: 24px;
    border: 2px solid var(--skt-accent);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0,0,0,.28);
    color: var(--skt-text-color, #333);
}
.skt-price-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f4f4;
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.skt-price-modal-title {
    margin: 0 48px 18px 0 !important;
    color: var(--skt-accent) !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}
.skt-price-modal-list {
    display: grid;
    gap: 7px;
}
.skt-price-modal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid color-mix(in srgb, var(--skt-accent) 22%, #ddd);
    border-radius: 11px;
    background: #fff;
}
.skt-price-modal-row.is-allowance {
    border-width: 2px;
    background: color-mix(in srgb, var(--skt-accent) 7%, #fff);
}
.skt-price-modal-label {
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}
.skt-price-modal-label-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex-wrap: wrap;
}
.skt-price-allowance-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid color-mix(in srgb, var(--skt-accent) 35%, #d7c9a7);
    border-radius: 999px;
    background: #fff8dc;
    color: #8a6816;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    white-space: nowrap;
}
.skt-price-modal-label small {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 400;
}
.skt-price-modal-value {
    color: var(--skt-accent);
    font-size: 14px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}
.skt-price-modal-footnote {
    margin: 14px 2px 0 !important;
    color: #777;
    font-size: 11px !important;
    line-height: 1.4 !important;
    text-align: center;
}
.skt-price-modal-footnote .skt-price-allowance-badge {
    margin-right: 4px;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .skt-price-modal {
        align-items: flex-end;
        padding: 10px 8px max(8px, env(safe-area-inset-bottom));
    }
    .skt-price-modal-card {
        width: 100%;
        max-height: min(84vh, 84svh);
        padding: 19px 13px 16px;
        border-radius: 18px 18px 12px 12px;
    }
    .skt-price-modal-title {
        margin-right: 42px !important;
        font-size: 20px !important;
    }
    .skt-price-modal-close {
        top: 9px;
        right: 9px;
        width: 36px;
        height: 36px;
    }
    .skt-price-modal-row {
        gap: 8px;
        padding: 9px 10px;
    }
    .skt-price-modal-label {
        font-size: 13px;
    }
    .skt-price-modal-value {
        font-size: 13px;
    }
}
