.stgr-configurator {
    /* ST Core Design-System: Das aktive SchnullerTrulla Theme liefert diese
       Tokens über st_core_design_tokens. Die Fallbacks greifen nur, falls ein
       einzelner Token im Theme nicht gesetzt ist. */
    --stgr-accent: var(--st-color-primary, #d96c9a);
    --stgr-accent-strong: var(--st-color-price, var(--st-text-link, #b84970));
    --stgr-text: var(--st-text-body, #4a3e46);
    --stgr-heading: var(--st-text-heading, #3b2d38);
    --stgr-muted: var(--st-text-muted, #7a6f78);
    --stgr-border: var(--st-border-color, rgba(59,45,56,0.14));
    --stgr-border-strong: var(--st-border-color-strong, rgba(59,45,56,0.25));
    --stgr-soft: var(--st-surface-soft, #fdf2f6);
    --stgr-card: var(--st-surface-card, #ffffff);
    --stgr-input: var(--st-surface-input, #ffffff);
    --stgr-dialog: var(--st-surface-dialog, #ffffff);
    --stgr-danger: var(--st-color-danger, #b54747);
    --stgr-success: var(--st-color-success, #4f8a62);
    --stgr-warning: var(--st-color-warning, #b7791f);
    width: min(100%, 980px);
    margin: 0 auto;
    color: var(--stgr-text);
    font-family: var(--st-font-body, "Livvic", Arial, sans-serif);
}

.stgr-configurator *,
.stgr-configurator *::before,
.stgr-configurator *::after { box-sizing: border-box; }

.stgr-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 24px;
    border: 1px solid var(--stgr-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(83, 52, 69, .06);
}

.stgr-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--stgr-accent-strong); }
.stgr-head h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.12; }
.stgr-intro { margin: 8px 0 0; max-width: 720px; color: var(--stgr-muted); line-height: 1.5; }
.stgr-version { white-space: nowrap; border-radius: 999px; background: var(--stgr-soft); padding: 6px 10px; font-size: 11px; font-weight: 800; color: var(--stgr-muted); }

.stgr-top-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.stgr-btn-head { border-color: var(--stgr-accent-strong); color: var(--stgr-accent-strong); background: #fff; }
.stgr-help-icon { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; margin-right: 5px; background: var(--stgr-accent-strong); color: #fff; font-size: 11px; font-weight: 900; }
html.stgr-modal-open, body.stgr-modal-open { overflow: hidden; }
.stgr-modal[hidden] { display: none !important; }
.stgr-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0,0,0,.70);
}
.stgr-modal-card {
    position: relative;
    width: min(95vw, 620px);
    max-height: min(86vh, 780px);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--stgr-border);
    border-radius: 20px;
    background: var(--stgr-card, #fff);
    color: var(--stgr-text);
    box-shadow: 0 22px 70px rgba(0,0,0,.25);
}
.stgr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--stgr-soft);
    color: var(--stgr-text);
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.stgr-modal-title { margin: 0 48px 18px 0; color: var(--stgr-accent-strong); font-size: clamp(20px, 4vw, 27px); }
.stgr-help-content { line-height: 1.65; }
.stgr-help-content > :first-child { margin-top: 0; }
.stgr-help-content > :last-child { margin-bottom: 0; }
.stgr-modal-done { width: 100%; margin-top: 20px; }
.stgr-static-price-list { display: grid; gap: 0; }
.stgr-static-price-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--stgr-border); }
.stgr-static-price-row.is-allowance { margin-top: 5px; padding: 12px 10px; border: 0; border-radius: 10px; background: var(--stgr-soft); }
.stgr-static-price-label { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.stgr-static-price-row strong { flex: 0 0 auto; white-space: nowrap; }
.stgr-allowance-badge { display: inline-flex; align-items: center; width: max-content; padding: 3px 7px; border-radius: 999px; background: var(--stgr-soft); color: var(--stgr-accent-strong); font-size: 10px; font-weight: 800; }
.stgr-modal-footnote { margin: 14px 0 0; color: var(--stgr-muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 520px) {
    .stgr-modal { padding: 10px; }
    .stgr-modal-card { width: 100%; max-height: calc(100vh - 20px); padding: 20px 16px; border-radius: 17px; }
    .stgr-static-price-row { align-items: flex-start; }
    .stgr-static-price-label { display: grid; gap: 4px; }
}
.stgr-btn { appearance: none; border: 1px solid var(--stgr-border); border-radius: 11px; padding: 10px 14px; background: #fff; color: var(--stgr-text); font: inherit; font-weight: 700; cursor: pointer; transition: .15s ease; }
.stgr-btn:hover:not(:disabled) { transform: translateY(-1px); }
.stgr-btn:disabled { opacity: .5; cursor: not-allowed; }
.stgr-btn-primary { border-color: var(--stgr-accent-strong); background: var(--stgr-accent-strong); color: #fff; }
.stgr-btn-soft { background: var(--stgr-soft); }
.stgr-btn-danger { border-color: #f0c9d0; color: var(--stgr-danger); background: #fff8f9; }
.stgr-full { width: 100%; }

.stgr-preview-card,
.stgr-box,
.stgr-price-box {
    border: 1px solid var(--stgr-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 9px 25px rgba(83, 52, 69, .045);
}

.stgr-preview-card { padding: clamp(12px, 2.5vw, 22px); }
.stgr-preview {
    position: relative;
    width: min(100%, 680px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

.stgr-preview-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--stgr-preview-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .92;
    transform: scale(1.01);
    pointer-events: none;
}

.stgr-circle-svg,
.stgr-live-chain { position: absolute; inset: 0; width: 100%; height: 100%; }
.stgr-circle-svg { z-index: 1; pointer-events: none; }
.stgr-live-chain { z-index: 2; pointer-events: none; }
.stgr-preview-center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: clamp(78px, 24%, 148px);
    max-width: 38%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255,255,255,.52);
    box-shadow: 0 8px 24px rgba(83, 52, 69, .08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: clamp(8px, 2%, 14px);
    pointer-events: none;
}
.stgr-preview-center-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
}
.stgr-thread-guide { fill: none; stroke: #d8cbc1; stroke-width: .7; stroke-linecap: round; opacity: .95; pointer-events: none; }
.stgr-ring-center-guide { fill: #c5b1bc; opacity: .45; }
.stgr-preview.has-center-logo .stgr-ring-center-guide { opacity: 0; }

.stgr-ring-element {
    position: absolute;
    z-index: 2;
    object-fit: contain;
    transform-origin: 50% 50%;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.08));
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.stgr-ring-draggable { pointer-events: auto; cursor: grab; touch-action: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stgr-ring-draggable.stgr-ring-dragging { cursor: grabbing; opacity: .72; z-index: 8; }
.stgr-ring-selected { outline: 2px solid var(--stgr-accent-strong); outline-offset: 2px; border-radius: 18%; }
.stgr-drop-target { outline: 2px dashed var(--stgr-accent-strong); outline-offset: 3px; border-radius: 18%; }
.stgr-drop-target.stgr-drop-before { box-shadow: -4px 0 0 -2px var(--stgr-accent-strong); }
.stgr-drop-target.stgr-drop-after { box-shadow: 4px 0 0 -2px var(--stgr-accent-strong); }

.stgr-required-lens-placeholder {
    display: grid;
    place-items: center;
    border: 2px dashed var(--stgr-accent-strong);
    border-radius: 50%;
    background: color-mix(in srgb, var(--stgr-accent) 10%, #fff);
    color: var(--stgr-accent-strong);
    font-weight: 900;
    line-height: 1;
    filter: none;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
}
.stgr-required-lens-fixed {
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
}
.stgr-required-lens-draggable:active { cursor: grabbing; }

.stgr-letter-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 18%;
    background: #fff;
    font-weight: 800;
    font-size: clamp(8px, 2vw, 18px);
}

.stgr-safety-fixed { outline: .8px solid rgba(184,95,140,.4); outline-offset: 2px; border-radius: 50%; z-index: 4; }
.stgr-safety-draggable {
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.stgr-preview.is-safety-dragging .stgr-safety-draggable { cursor: grabbing; }

.stgr-preview-watermark { position: absolute; inset: auto 0 4.5% 0; z-index: 3; text-align: center; font-size: clamp(10px, 1.5vw, 13px); color: rgba(70,60,66,.25); pointer-events: none; }

.stgr-preview-addons {
    position: absolute;
    left: clamp(6px, 1.4vw, 12px);
    bottom: clamp(12px, 2.8vw, 20px);
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    max-width: min(46%, 320px);
    pointer-events: none;
}
.stgr-preview-addons[hidden] { display: none !important; }
.stgr-preview-addons-title {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--stgr-accent-strong);
    font-size: clamp(11px, 1.25vw, 14px);
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.stgr-preview-addons-items {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    pointer-events: auto;
}
.stgr-preview-addon-thumb {
    position: relative;
    width: clamp(52px, 8vw, 68px);
    height: clamp(52px, 8vw, 68px);
    display: grid;
    place-items: center;
    padding: 5px;
    border: 1px solid var(--stgr-border);
    border-radius: 14px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    overflow: visible;
}
.stgr-preview-addon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.stgr-preview-addon-thumb.is-fallback {
    color: var(--stgr-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
}
.stgr-preview-addon-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 2;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--stgr-danger) 45%, var(--stgr-border));
    border-radius: 999px;
    background: var(--stgr-card, #fff);
    color: var(--stgr-danger, #b52d45);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(59,45,56,.12);
    pointer-events: auto;
}
.stgr-preview-addon-remove:hover,
.stgr-preview-addon-remove:focus-visible { transform: scale(1.06); }


.stgr-rotation-handle {
    position: absolute;
    z-index: 5;
    width: clamp(25px, 6.2%, 34px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border: 2px solid var(--stgr-accent-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--stgr-accent-strong);
    display: grid;
    place-items: center;
    padding: 0;
    font: inherit;
    font-size: clamp(12px, 2vw, 17px);
    font-weight: 900;
    line-height: 1;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.stgr-rotation-handle:hover,
.stgr-rotation-handle:focus-visible { transform: translate(-50%, -50%) !important; }
.stgr-rotation-handle.is-rotating,
.stgr-rotation-handle.is-rotating:hover,
.stgr-rotation-handle.is-rotating:focus-visible { cursor: grabbing; transform: translate(-50%, -50%) scale(1.08) !important; }
.stgr-preview-edit-row { width: min(100%, 680px); margin: 8px auto 0; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.stgr-drag-help { margin: 0; flex: 1 1 280px; text-align: center; color: var(--stgr-muted); font-size: 11px; }

.stgr-fit-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.stgr-fit-badge { padding: 6px 10px; border-radius: 999px; background: #eff9f1; color: #387647; font-size: 12px; font-weight: 800; text-align: center; max-width: 100%; white-space: normal; line-height: 1.45; }
.stgr-fit-badge.is-over { background: #fff0f2; color: #b52d45; }
.stgr-fit-note { font-size: 12px; color: var(--stgr-muted); }
.stgr-fit-gap-hint {
    position: absolute;
    z-index: 5;
    min-width: 24px;
    min-height: 14px;
    border: 2px dashed color-mix(in srgb, var(--stgr-accent) 60%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--stgr-accent) 14%, var(--stgr-card));
    color: var(--stgr-accent-strong);
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    box-shadow: 0 4px 10px rgba(59,45,56,.08);
    transform-origin: 50% 50%;
}
.stgr-fit-gap-plus {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.stgr-fit-gap-label {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform-origin: 0 50%;
    /* Der Marker selbst liegt tangential auf der Ringbahn. +90° richtet den
       Text radial aus: Leserichtung von der Ringmitte nach außen. */
    transform: rotate(90deg) translateX(5px);
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid color-mix(in srgb, var(--stgr-accent) 45%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--stgr-card) 90%, transparent);
    color: var(--stgr-accent-strong);
    font-size: clamp(8px, 1.2vw, 10px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(59,45,56,.06);
    pointer-events: none;
}
.stgr-fit-gap-hint[hidden] { display: none !important; }
.stgr-fit-gap-hint.is-dragging { cursor: grabbing; opacity: .82; z-index: 9; }
.stgr-warning { margin-top: 12px; border-radius: 12px; padding: 10px 12px; background: #fff0f2; color: #a4263a; font-weight: 700; text-align: center; }

.stgr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.stgr-box { margin-top: 14px; padding: 18px; }
.stgr-grid .stgr-box { margin-top: 0; }
.stgr-box h3 { margin: 0 0 12px; font-size: 17px; color: var(--stgr-accent-strong); }
.stgr-help { margin: -4px 0 12px; color: var(--stgr-muted); font-size: 12px; line-height: 1.45; }
.stgr-box label { display: block; margin: 9px 0 5px; font-size: 12px; font-weight: 700; color: #555; }
.stgr-box select,
.stgr-box input,
.stgr-box textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9c7d0;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    color: var(--stgr-text);
    font: inherit;
}
.stgr-box textarea { min-height: 86px; resize: vertical; }
.stgr-inline-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.stgr-inline-input .stgr-btn { min-height: 42px; }
.stgr-link-btn { margin-top: 10px; border: 0; background: transparent; color: var(--stgr-danger); font-weight: 700; cursor: pointer; }

.stgr-mini-preview { min-height: 74px; margin: 10px 0; border: 1px dashed var(--stgr-border); border-radius: 12px; display: grid; place-items: center; color: var(--stgr-muted); font-size: 12px; background: var(--stgr-soft); }

.stgr-bead-select-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}
.stgr-bead-select-field {
    min-width: 0;
}
.stgr-bead-select-field label {
    margin-top: 0;
}
.stgr-bead-select-field .stgr-rich-select,
.stgr-bead-select-field select {
    width: 100%;
}
.stgr-mini-preview img { width: 68px; height: 68px; object-fit: contain; }

.stgr-bead-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stgr-bead-buttons[hidden] { display: none !important; }
.stgr-bead-btn { min-width: 0; min-height: 92px; border: 1px solid #dac4cf; border-radius: 12px; background: #fff; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.stgr-bead-btn:disabled { opacity: .45; cursor: not-allowed; }
.stgr-bead-btn img { width: 34px; height: 34px; object-fit: contain; }
.stgr-bead-btn span { font-size: 11px; font-weight: 800; }
.stgr-bead-btn small { min-height: 14px; font-size: 9px; color: var(--stgr-muted); }

.stgr-price-box { margin-top: 14px; padding: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: center; }
.stgr-price-box > div { min-width: 0; }
.stgr-price-box span,
.stgr-price-box strong { display: block; }
.stgr-price-box span { font-size: 11px; color: var(--stgr-muted); }
.stgr-price-box strong { margin-top: 3px; font-size: 15px; }
.stgr-price-total strong { color: var(--stgr-accent-strong); font-size: 19px; }
.stgr-cart-btn { min-height: 48px; }
.stgr-admin-hint { grid-column: 1 / -1; margin: 0; color: #9b5f14; background: #fff8e7; padding: 9px 11px; border-radius: 10px; font-size: 11px; }

@media (max-width: 760px) {
    .stgr-head { padding: 18px; border-radius: 18px; }
    .stgr-version { display: none; }
    .stgr-grid { grid-template-columns: 1fr; }
    .stgr-preview { width: 100%; }
    .stgr-price-box { grid-template-columns: 1fr 1fr; }
    .stgr-cart-btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 460px) {
    .stgr-top-actions .stgr-btn { flex: 1 1 calc(50% - 6px); padding-inline: 8px; font-size: 12px; }
    .stgr-bead-select-row { gap: 8px; }
    .stgr-bead-select-field label { font-size: 10px; margin-bottom: 3px; }
    .stgr-bead-select-field .stgr-rich-select-trigger,
    .stgr-bead-select-field select { min-height: 40px; padding-inline: 9px; }
    .stgr-bead-buttons { grid-template-columns: 1fr; }
    .stgr-bead-btn { min-height: 62px; flex-direction: row; justify-content: flex-start; text-align: left; }
    .stgr-price-box { grid-template-columns: 1fr; }
    .stgr-cart-btn { grid-column: auto; }
}

/* 0.1.9 – Produktauswahl wie im Schnullerketten-Konfigurator 7.0.113. */
.stgr-native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.stgr-rich-select[hidden] { display: none !important; }
.stgr-rich-select {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 20;
}
.stgr-rich-select.is-open { z-index: 1000; }
.stgr-rich-select-trigger,
.stgr-rich-select-option {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d9c7d0;
    background: #fff;
    color: var(--stgr-text);
    text-align: left;
    font: inherit;
}
.stgr-rich-select-trigger {
    min-height: 42px;
    padding: 6px 9px;
    border-radius: 10px;
    cursor: pointer;
}
.stgr-rich-select-trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--stgr-accent-strong) 35%, transparent);
    outline-offset: 2px;
}
.stgr-rich-select-current {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}
.stgr-rich-select-arrow { flex: 0 0 auto; font-size: 18px; line-height: 1; }
.stgr-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 #d9c7d0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.stgr-rich-select.is-open .stgr-rich-select-menu { display: block; }
.stgr-rich-select-option {
    min-height: 54px;
    padding: 7px 9px;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    cursor: pointer;
}
.stgr-rich-select-option:last-child { border-bottom: 0; }
.stgr-rich-select-option:hover,
.stgr-rich-select-option[aria-selected="true"] { background: var(--stgr-soft); }
.stgr-rich-select-option:disabled { opacity: .45; cursor: not-allowed; }
.stgr-rich-select-image {
    width: 38px;
    height: 38px;
    min-width: 38px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
}
.stgr-rich-select-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    color: #bbb;
}
.stgr-rich-select-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.stgr-rich-select-name { font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stgr-rich-select-status { margin-top: 2px; font-size: 10px; line-height: 1.15; color: var(--stgr-muted); }
.stgr-rich-select-check { flex: 0 0 auto; font-weight: 800; color: var(--stgr-accent-strong); }
.stgr-rich-select-placeholder { opacity: .72; font-weight: 600; }
.stgr-rich-select-empty { padding: 18px; text-align: center; color: var(--stgr-muted); font-size: 12px; }

/* Sicherheitsperle und Buchstaben bleiben kompakte Dropdowns direkt im Feld. */
.stgr-rich-select--safety .stgr-rich-select-menu,
.stgr-rich-select--letter-material .stgr-rich-select-menu {
    z-index: 1002;
}

/* Motivbereich kompakter wie beim Schnullerketten-Konfigurator. */
.stgr-motif-picker {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}
.stgr-motif-preview {
    min-height: 86px;
    height: 86px;
    margin: 0;
}
.stgr-motif-preview img { width: 70px; height: 70px; }
.stgr-motif-controls { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.stgr-motif-select-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stgr-field-compact { min-width: 0; }
.stgr-field-compact label { margin-top: 0; }
.stgr-motif-box .stgr-rich-select-trigger { min-height: 42px; padding: 6px 8px; }

/* Große Produktlisten: Desktop-Dialog, mobil Bottom-Sheet. */
html.stgr-select-sheet-open,
body.stgr-select-sheet-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}
body.stgr-select-sheet-open { touch-action: none; }
body.stgr-select-sheet-open .stgr-rich-select.is-open .stgr-rich-select-menu,
body.stgr-select-sheet-open .stgr-rich-select.is-open .stgr-rich-select-dialog-options,
body.stgr-select-sheet-open .stgr-rich-select.is-open .stgr-rich-select-bead-options {
    touch-action: pan-y;
}
body.stgr-select-sheet-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,.46);
}
:is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color).is-open { z-index: 99999; }
:is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-menu,
:is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color).is-open .stgr-rich-select-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(720px, calc(100vw - 48px));
    max-width: none;
    height: min(76vh, 680px);
    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(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color).is-open .stgr-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;
}
.stgr-rich-select-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 62px;
    padding: 11px 18px;
    border-bottom: 1px solid #e9e9e9;
    background: #fff;
    font-size: 17px;
}
.stgr-rich-select-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font: 700 26px/1 sans-serif;
    cursor: pointer;
}
.stgr-rich-select-search-wrap { flex: 0 0 auto; padding: 9px 14px; border-bottom: 1px solid #eee; background: #fff; }
.stgr-rich-select-search {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #d9c7d0;
    border-radius: 9px;
    background: #fff;
    color: var(--stgr-text);
    font: inherit;
}
.stgr-rich-select-search:focus { outline: 2px solid color-mix(in srgb, var(--stgr-accent-strong) 30%, transparent); outline-offset: 1px; }
.stgr-rich-select-dialog-options,
.stgr-rich-select-motif-options,
.stgr-rich-select-bead-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(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-option {
    min-height: 82px;
    margin: 0 0 5px;
    padding: 9px 12px;
    border: 0;
    border-radius: 11px;
}
:is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-image {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 9px;
}
:is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 14px;
    line-height: 1.3;
}
:is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-status { font-size: 11px; }
.stgr-rich-select-option[hidden] { display: none !important; }

/* Geschlossene lange Auswahl bleibt klein; das Bild erscheint erst im Dialog. */
:is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-trigger {
    min-height: 42px;
    padding: 7px 10px;
}

@media (max-width: 600px) {
    .stgr-box { padding: 14px; }
    .stgr-motif-picker { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; }
    .stgr-motif-preview { width: 68px; height: 80px; min-height: 80px; }
    .stgr-motif-preview img { width: 62px; height: 62px; }
    .stgr-motif-select-row { gap: 5px; }
    .stgr-field-compact label { font-size: 10px; margin-bottom: 3px; }

    :is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-menu,
    :is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color).is-open .stgr-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;
        contain: layout paint;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    :is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color).is-open .stgr-rich-select-menu {
        transform: translateY(0);
        transition: transform .24s ease-out;
    }
    .stgr-rich-select-sheet-header {
        min-height: 56px;
        padding: max(9px, env(safe-area-inset-top)) 14px 9px;
        font-size: 15px;
    }
    .stgr-rich-select-sheet-close { width: 38px; height: 38px; font-size: 24px; }
    .stgr-rich-select-search-wrap { padding: 8px; }
    .stgr-rich-select-dialog-options,
    .stgr-rich-select-motif-options,
    .stgr-rich-select-bead-options { padding: 6px 8px max(12px, env(safe-area-inset-bottom)); }
    :is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-option {
        min-height: 72px;
        margin-bottom: 2px;
        padding: 7px 9px;
        border-radius: 9px;
    }
    :is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-image {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }
    :is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-name { font-size: 12px; }
    :is(.stgr-rich-select--motif-main, .stgr-rich-select--motif-variant, .stgr-rich-select--bead-color) .stgr-rich-select-status { font-size: 10px; }

    /* Wie im Schnullerketten-Konfigurator: Formen nebeneinander statt langer Liste. */
    .stgr-bead-buttons,
    .stgr-bead-buttons[hidden] + .stgr-bead-buttons:not([hidden]) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }
    .stgr-bead-buttons[hidden] { display: none !important; }
    .stgr-bead-btn {
        min-height: 98px;
        padding: 7px 4px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 4px;
    }
    .stgr-bead-btn img { width: 44px; height: 44px; }
    .stgr-bead-btn span { font-size: 10px; line-height: 1.15; white-space: normal; }
    .stgr-bead-btn small { font-size: 8px; line-height: 1.1; }
    #crochet-buttons { grid-template-columns: 1fr; }
    #crochet-buttons .stgr-bead-btn { min-height: 78px; flex-direction: row; justify-content: flex-start; padding-inline: 12px; text-align: left; }
}

@media (max-width: 380px) {
    .stgr-motif-picker { grid-template-columns: 60px minmax(0, 1fr); }
    .stgr-motif-preview { width: 60px; height: 78px; }
    .stgr-motif-preview img { width: 54px; height: 54px; }
    .stgr-rich-select-name { font-size: 11px; }
}
.stgr-rich-select-trigger:disabled { opacity: .5; cursor: not-allowed; }

/* 0.1.12: große Zusatzprodukte; Zusätze frei drehbar, Motive nur 90° links/rechts. */
.stgr-addon-preview {
    min-height: 86px;
    height: 86px;
    margin: 0;
    position: relative;
}
.stgr-addon-preview img { width: 70px; height: 70px; object-fit: contain; }
.stgr-addon-preview small {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 2px;
    text-align: center;
    font-size: 9px;
    line-height: 1.1;
    color: var(--stgr-muted);
    pointer-events: none;
}
.stgr-addon-element { z-index: 3; }
.stgr-addon-element.is-hanging { z-index: 4; }
/* Großes Fädelloch: Der Zusatz liegt hinter den normalen Ringelementen.
   So bleibt die durch das große Loch laufende Perle in der Vorschau sichtbar. */
.stgr-addon-element.is-hanging.is-thread-through-hole { z-index: 1; }
.stgr-part-rotation-handle {
    position: absolute;
    z-index: 12;
    width: clamp(24px, 5.8%, 32px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border: 2px solid var(--stgr-accent-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--stgr-accent-strong);
    display: grid;
    place-items: center;
    padding: 0;
    font: inherit;
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 900;
    line-height: 1;
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.stgr-part-rotation-handle:hover,
.stgr-part-rotation-handle:focus-visible { transform: translate(-50%, -50%) !important; }
.stgr-part-rotation-handle.is-rotating,
.stgr-part-rotation-handle.is-rotating:hover,
.stgr-part-rotation-handle.is-rotating:focus-visible { cursor: grabbing; transform: translate(-50%, -50%) scale(1.08) !important; }
.stgr-part-rotation-handle.is-motif-toggle { cursor: pointer; touch-action: manipulation; }
.stgr-part-delete-handle {
    position: absolute;
    z-index: 13;
    width: clamp(22px, 5.2%, 29px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    border: 2px solid var(--stgr-danger, #c43b4d);
    border-radius: 50%;
    background: var(--stgr-card, #fff);
    color: var(--stgr-danger, #c43b4d);
    display: grid;
    place-items: center;
    padding: 0;
    font: inherit;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.stgr-part-delete-handle:hover,
.stgr-part-delete-handle:focus-visible { transform: translate(-50%, -50%) !important; }
.stgr-part-delete-handle:active { transform: translate(-50%, -50%) scale(.94) !important; }

@media (max-width: 600px) {
    .stgr-addon-preview { width: 68px; height: 80px; min-height: 80px; }
    .stgr-addon-preview img { width: 62px; height: 62px; }
    .stgr-preview-addons { left: 8px; bottom: 10px; gap: 5px; max-width: 48%; }
    .stgr-preview-addons-title { padding: 3px 8px; font-size: 10px; }
    .stgr-preview-addons-items { gap: 8px; }
    .stgr-preview-addon-thumb { width: 36px; height: 36px; border-radius: 10px; padding: 3px; }
    .stgr-preview-addon-remove { top: -6px; right: -6px; width: 18px; height: 18px; min-width: 18px; min-height: 18px; font-size: 13px; }
}


/* 0.1.18: Zusätze bewusst nicht mehr im Kreis rendern; kompakte Anzeige in der Bestellübersicht. */
.stgr-addon-order-summary {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid var(--stgr-border);
}
.stgr-addon-order-summary[hidden] { display: none !important; }
.stgr-addon-order-title {
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--stgr-muted);
}
.stgr-addon-preview small { display: none; }
.stgr-addon-order-items {
    display: grid;
    gap: 6px;
}
.stgr-addon-order-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--stgr-border);
    border-radius: 10px;
    background: rgba(255,255,255,.62);
}
.stgr-addon-order-image {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}
.stgr-addon-order-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.stgr-addon-order-info { min-width: 0; }
.stgr-addon-order-info strong,
.stgr-addon-order-info small { display: block; }
.stgr-addon-order-info strong {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.25;
}
.stgr-addon-order-info small {
    margin-top: 1px;
    color: var(--stgr-muted);
    font-size: 10px;
}
.stgr-addon-order-remove {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border: 1px solid var(--stgr-border);
    border-radius: 999px;
    background: #fff;
    color: var(--stgr-text);
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 420px) {
    .stgr-addon-order-item { grid-template-columns: 36px minmax(0, 1fr) auto; }
    .stgr-addon-order-image { width: 36px; height: 36px; }
    .stgr-addon-order-remove { grid-column: auto; justify-self: end; min-height: 28px; }
}


/* 0.1.21 – visuelle Anbindung an das zentrale ST-Core-/Theme-Designsystem. */
.stgr-configurator :is(h1,h2,h3,h4,h5,h6),
.stgr-head h2,
.stgr-box h3 {
    font-family: var(--st-font-heading, "Quicksand", Arial, sans-serif);
    color: var(--stgr-heading);
}

.stgr-head,
.stgr-preview-card,
.stgr-box,
.stgr-price-box {
    color: var(--stgr-text);
    background: var(--stgr-card);
    border-color: var(--stgr-border);
    border-width: var(--st-border-width, 1px);
    border-style: var(--st-border-style, solid);
    border-radius: var(--st-radius-card, 24px);
    box-shadow: var(--st-shadow-card, 0 12px 34px rgba(59,45,56,.08));
}

.stgr-head h2 { color: var(--stgr-heading); }
.stgr-kicker,
.stgr-box h3 { color: var(--stgr-accent-strong); }
.stgr-heading-with-note { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stgr-heading-note { color: var(--stgr-muted); font-size: .68em; font-weight: 700; white-space: nowrap; }
.stgr-intro,
.stgr-help,
.stgr-drag-help,
.stgr-fit-note,
.stgr-price-box span,
.stgr-addon-order-info small { color: var(--stgr-muted); }
.stgr-version,
.stgr-btn-soft,
.stgr-mini-preview,
.stgr-fit-badge,
.stgr-addon-order-summary { background-color: var(--stgr-soft); }

.stgr-btn,
.stgr-bead-btn,
.stgr-rich-select-trigger,
.stgr-rich-select-option,
.stgr-rich-select-sheet-close,
.stgr-addon-order-remove {
    font-family: var(--st-font-button, var(--st-font-body, "Livvic", Arial, sans-serif));
    transition: transform var(--st-transition-fast, 160ms ease), box-shadow var(--st-transition-fast, 160ms ease), opacity var(--st-transition-fast, 160ms ease);
}
.stgr-btn {
    border-color: var(--stgr-border);
    border-radius: var(--st-radius-button, 999px);
    background: var(--stgr-card);
    color: var(--stgr-text);
}
.stgr-btn:hover:not(:disabled),
.stgr-btn:focus-visible {
    box-shadow: var(--st-shadow-hover, 0 16px 40px rgba(59,45,56,.14));
}
.stgr-btn-primary {
    border-color: var(--stgr-accent);
    background: var(--stgr-accent);
    color: var(--st-text-on-primary, #fff);
}
.stgr-btn-soft { color: var(--stgr-heading); }
.stgr-btn-danger {
    border-color: color-mix(in srgb, var(--stgr-danger) 28%, transparent);
    color: var(--stgr-danger);
    background: color-mix(in srgb, var(--stgr-danger) 7%, var(--stgr-card));
}

.stgr-btn.is-added-feedback,
.stgr-bead-btn.is-added-feedback {
    border-color: var(--stgr-success);
    background: color-mix(in srgb, var(--stgr-success) 88%, var(--stgr-card));
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--stgr-success) 18%, transparent);
    transform: scale(.985);
}
.stgr-bead-btn.is-added-feedback small { color: rgba(255,255,255,.9); }
.stgr-bead-btn.is-added-feedback img { opacity: .9; }

.stgr-box label { color: var(--stgr-heading); }
.stgr-box select,
.stgr-box input,
.stgr-box textarea,
.stgr-rich-select-trigger,
.stgr-rich-select-menu,
.stgr-rich-select-option,
.stgr-rich-select-search,
.stgr-addon-order-remove {
    color: var(--stgr-text);
    background-color: var(--stgr-input);
    border-color: var(--stgr-border);
    border-radius: var(--st-radius-input, 14px);
}
.stgr-box select:focus,
.stgr-box input:focus,
.stgr-box textarea:focus,
.stgr-rich-select-trigger:focus-visible,
.stgr-rich-select-search:focus {
    outline: 2px solid var(--st-border-focus, var(--stgr-accent));
    outline-offset: 2px;
    border-color: var(--st-border-focus, var(--stgr-accent));
}

.stgr-mini-preview,
.stgr-bead-btn,
.stgr-addon-order-item {
    border-color: var(--stgr-border);
    background: var(--stgr-card);
    border-radius: var(--st-radius-input, 14px);
}
.stgr-rich-select-menu,
.stgr-rich-select-sheet-header,
.stgr-rich-select-search-wrap,
.stgr-rich-select-dialog-options,
.stgr-rich-select-motif-options,
.stgr-rich-select-bead-options {
    background: var(--stgr-dialog);
    border-color: var(--stgr-border);
}

.stgr-preview {
    border-radius: var(--st-radius-card, 24px);
    background: radial-gradient(circle at center, color-mix(in srgb, var(--stgr-accent) 8%, transparent), color-mix(in srgb, var(--stgr-card) 98%, transparent) 62%);
}
.stgr-thread-guide { stroke: color-mix(in srgb, var(--stgr-text) 24%, var(--stgr-surface-soft, #f5efe9)); }
.stgr-ring-center-guide { fill: var(--stgr-muted); }
.stgr-ring-selected,
.stgr-drop-target { outline-color: var(--stgr-accent); }
.stgr-safety-fixed { outline-color: color-mix(in srgb, var(--stgr-accent) 45%, transparent); }
.stgr-rotation-handle {
    border-color: var(--stgr-accent);
    background: var(--stgr-card);
    color: var(--stgr-accent);
    box-shadow: var(--st-shadow-card, 0 12px 34px rgba(59,45,56,.08));
}

.stgr-fit-badge {
    color: var(--stgr-success);
    background: color-mix(in srgb, var(--stgr-success) 10%, var(--stgr-card));
}
.stgr-fit-badge.is-over,
.stgr-warning {
    color: var(--stgr-danger);
    background: color-mix(in srgb, var(--stgr-danger) 9%, var(--stgr-card));
}
.stgr-fit-gap-hint {
    color: var(--stgr-accent-strong);
    border-color: color-mix(in srgb, var(--stgr-accent) 60%, transparent);
}
.stgr-warning { border-radius: var(--st-radius-input, 14px); }
.stgr-price-total strong { color: var(--st-color-price, var(--stgr-accent-strong)); }
.stgr-admin-hint {
    color: var(--stgr-warning);
    background: color-mix(in srgb, var(--stgr-warning) 9%, var(--stgr-card));
    border-radius: var(--st-radius-input, 14px);
}
.stgr-link-btn { color: var(--stgr-danger); }

/* Die Auswahlkarten folgen ebenfalls den Theme-Radien und Theme-Oberflächen. */
.stgr-rich-select-option,
.stgr-rich-select-image,
.stgr-rich-select-image-placeholder { border-radius: var(--st-radius-small, 10px); }
.stgr-addon-order-image { border-radius: var(--st-radius-small, 10px); background: var(--stgr-card); }
.stgr-addon-order-summary { border-color: var(--stgr-border); }
.stgr-addon-order-remove {
    border-radius: 999px;
    color: var(--stgr-danger);
}


/* 0.1.24 – Preisübersicht optisch und strukturell wie im Schnullerketten-Konfigurator 7.0.113. */
.stgr-price-breakdown {
    width: 100%;
    min-width: 0;
    margin-top: 14px;
    padding: 22px;
    display: block;
    border: 2px solid var(--stgr-border);
    border-radius: var(--st-radius-card, 24px);
    background: var(--stgr-card);
    box-shadow: var(--st-shadow-card, 0 10px 40px rgba(0,0,0,.08));
    color: var(--stgr-text);
}
.stgr-price-breakdown-title {
    margin: 0 0 17px !important;
    color: var(--stgr-heading) !important;
    font-family: var(--st-font-heading, "Quicksand", Arial, sans-serif);
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}
.stgr-price-breakdown-list {
    display: grid;
    gap: 0;
}
.stgr-price-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--stgr-border) 55%, transparent);
    font-size: 13px;
    line-height: 1.35;
}
.stgr-price-breakdown-row span {
    min-width: 0;
    color: var(--stgr-text);
    overflow-wrap: anywhere;
}
.stgr-price-breakdown-row strong {
    margin: 0;
    color: var(--stgr-heading);
    font-size: 13px;
    white-space: nowrap;
}
.stgr-price-breakdown-row.is-negative strong {
    color: var(--stgr-success);
}
.stgr-price-breakdown-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 2px solid var(--stgr-accent);
    font-weight: 800;
}
.stgr-price-breakdown-total span {
    color: var(--stgr-heading);
    font-size: 15px;
}
.stgr-price-breakdown #display-price {
    margin: 0;
    color: var(--stgr-accent-strong);
    font-size: 30px;
    line-height: 1;
    white-space: nowrap;
}
.stgr-price-breakdown-cart {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 15px 18px;
    border: 0;
    border-radius: var(--st-radius-button, 12px);
    background: var(--stgr-accent);
    color: var(--st-text-on-primary, #fff);
    font-family: var(--st-font-button, var(--st-font-body, "Livvic", Arial, sans-serif));
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    box-sizing: border-box;
}
.stgr-price-breakdown-cart:disabled {
    cursor: not-allowed;
    opacity: .55;
}
.stgr-price-breakdown .stgr-addon-order-summary {
    margin-top: 12px;
    padding: 10px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--stgr-border) 55%, transparent);
    background: transparent;
}
.stgr-price-breakdown .stgr-addon-order-title {
    margin-bottom: 7px;
    color: var(--stgr-text);
    font-size: 12px;
    font-weight: 800;
}
.stgr-price-breakdown .stgr-admin-hint {
    margin-top: 12px;
}
@media (max-width: 600px) {
    .stgr-price-breakdown {
        padding: 18px 16px;
        border-radius: 16px;
    }
    .stgr-price-breakdown-title {
        font-size: 18px !important;
    }
    .stgr-price-breakdown-row {
        gap: 8px;
        padding: 9px 0;
        font-size: 12px;
    }
    .stgr-price-breakdown-row strong {
        font-size: 12px;
    }
    .stgr-price-breakdown #display-price {
        font-size: 28px;
    }
    .stgr-price-breakdown-cart {
        margin-top: 16px;
        font-size: 16px;
    }
}


/* 0.1.62 – sichtbarer Hinweis, wenn ein klein gefädelter Zusatz keinen Ringplatz mehr hat. */
.stgr-addon-space-info {
    margin: 8px 0 0;
    padding: 9px 11px;
    border: 1px solid color-mix(in srgb, var(--stgr-warning) 38%, transparent);
    border-radius: var(--st-radius-input, 14px);
    background: color-mix(in srgb, var(--stgr-warning) 9%, var(--stgr-card));
    color: var(--stgr-text);
    font-size: 12px;
    line-height: 1.45;
}
.stgr-addon-space-info[hidden] { display: none !important; }

#stgr-set-notice:empty { display: none; }

