:root {
    --bolten-pk-accent: #931831;
    --bolten-pk-text: #1f1f1f;
    --bolten-pk-muted: #666;
    --bolten-pk-border: rgba(0, 0, 0, 0.14);
    --bolten-pk-surface: #fff;
    --bolten-pk-soft: #f6f6f6;
}

body.bolten-pk-dedicated-product-template.single-product #primary,
body.bolten-pk-dedicated-product-template.single-product .site-content > .ast-container {
    width: 100%;
    max-width: none;
}

body.bolten-pk-dedicated-product-template.single-product #primary {
    float: none !important;
    margin: 0 !important;
}

.bolten-pk-template-product {
    width: 100%;
    max-width: none;
    margin: 0;
}

.bolten-pk-product-shell {
    width: 100%;
    margin: 0;
    color: var(--bolten-pk-text);
}

.bolten-pk-product-header {
    width: 100%;
    margin: 0 0 30px;
}

.bolten-pk-product-title {
    margin: 0 0 14px !important;
}

.bolten-pk-product-description {
    max-width: 1100px;
    font-size: 1rem;
    line-height: 1.65;
}

.bolten-pk-product-description > :first-child {
    margin-top: 0;
}

.bolten-pk-product-description > :last-child {
    margin-bottom: 0;
}

.bolten-pk-stock {
    margin: -14px 0 20px;
}

.bolten-pk-cart-form {
    width: 100%;
    margin: 0 !important;
}

.bolten-pk-configurator {
    width: 100%;
}

.bolten-pk-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    width: 100%;
}

.bolten-pk-preview-column,
.bolten-pk-config-column {
    min-width: 0;
}

.bolten-pk-preview-card {
    position: sticky;
    top: 28px;
    width: 100%;
}

.bolten-pk-preview {
    position: relative;
    width: 100%;
    aspect-ratio: var(--bolten-pk-aspect-ratio, 1 / 1);
    overflow: hidden;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 6px;
    background: var(--bolten-pk-surface);
}

.bolten-pk-preview__base,
.bolten-pk-preview__layer {
    position: absolute;
    display: block;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
}

/*
 * Version 0.5.3: Vorschau-Bilder vollständig von Theme-Bildstilen isolieren.
 *
 * Die Position und Größe der Layer wird absichtlich weiterhin über die
 * gespeicherten Prozentwerte bzw. Inline-Styles gesteuert. Zurückgesetzt
 * werden ausschließlich Darstellungsstile, die Themes häufig global auf
 * Bilder anwenden und bei verschobenen Ebenen als Rand/Schatten innerhalb
 * des Ausgabeausschnitts sichtbar werden können.
 */
.bolten-pk-preview__base,
.bolten-pk-preview__layer,
.bolten-pk-upload-stage__image {
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

.bolten-pk-preview__base {
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bolten-pk-preview__layers {
    position: absolute;
    inset: 0;
}

.bolten-pk-preview__layer[hidden] {
    display: none;
}

.bolten-pk-preview__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--bolten-pk-muted);
    z-index: 2;
}

.bolten-pk-preview__empty[hidden] {
    display: none;
}

.bolten-pk-mobile-upload-panel,
.bolten-pk-mobile-text-panel {
    display: none;
}

.bolten-pk-mobile-upload-panel[hidden],
.bolten-pk-mobile-text-panel[hidden] {
    display: none !important;
}

.bolten-pk-groups {
    display: grid;
    gap: 12px;
}

.bolten-pk-group-front {
    border: 1px solid var(--bolten-pk-border);
    border-radius: 6px;
    background: var(--bolten-pk-surface);
}

.bolten-pk-group-front.is-invalid {
    border-color: var(--bolten-pk-accent);
}

.bolten-pk-group-front__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.bolten-pk-group-front__summary::-webkit-details-marker {
    display: none;
}

.bolten-pk-group-front__summary-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.bolten-pk-group-front__title {
    flex: 0 0 auto;
}

.bolten-pk-group-front__selection {
    min-width: 0;
    max-width: min(52%, 360px);
    overflow: hidden;
    color: var(--bolten-pk-muted);
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bolten-pk-group-front__selection:not(:empty)::before {
    content: "–";
    margin-right: 8px;
    color: #9a9a9a;
    font-weight: 400;
}

.bolten-pk-group-front__toggle {
    flex: 0 0 auto;
}

.bolten-pk-group-front__toggle::before {
    content: "+";
    display: block;
    min-width: 1em;
    text-align: center;
    font-size: 20px;
    line-height: 1;
}

.bolten-pk-group-front[open] .bolten-pk-group-front__toggle::before {
    content: "−";
}

.bolten-pk-group-front__content {
    padding: 0 16px 16px;
}

.bolten-pk-group-front__description {
    margin-top: 0;
    color: var(--bolten-pk-muted);
}

.bolten-pk-required {
    color: var(--bolten-pk-accent);
}

.bolten-pk-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bolten-pk-choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.bolten-pk-choice > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bolten-pk-choice__body {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 4px;
    background: var(--bolten-pk-surface);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.bolten-pk-choice > input:checked + .bolten-pk-choice__body {
    border-color: var(--bolten-pk-accent);
    box-shadow: inset 0 0 0 1px var(--bolten-pk-accent);
}

.bolten-pk-choice > input:focus-visible + .bolten-pk-choice__body {
    outline: 2px solid var(--bolten-pk-accent);
    outline-offset: 2px;
}

.bolten-pk-choice__image {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    border-radius: 3px;
    background: #f7f7f7;
}

.bolten-pk-choice__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bolten-pk-choice__title {
    font-weight: 600;
}

.bolten-pk-choice__description {
    font-size: 0.9em;
    color: var(--bolten-pk-muted);
}

.bolten-pk-choice__price {
    margin-top: 3px;
    font-size: 0.9em;
    font-weight: 600;
}

.bolten-pk-choice--none .bolten-pk-choice__body {
    min-height: 48px;
}

.bolten-pk-group-error {
    margin: 10px 0 0;
    color: var(--bolten-pk-accent);
    font-weight: 600;
}

.bolten-pk-purchase-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--bolten-pk-border);
    border-top: 4px solid var(--bolten-pk-accent);
    border-radius: 6px;
    background: var(--bolten-pk-soft);
}

.bolten-pk-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.bolten-pk-total-label {
    font-size: 1.05rem;
    font-weight: 700;
}

.bolten-pk-total-value {
    color: var(--bolten-pk-accent);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.1;
    white-space: nowrap;
}

.bolten-pk-purchase-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.bolten-pk-purchase-actions .quantity {
    float: none !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

.bolten-pk-purchase-actions .quantity .qty {
    min-height: 48px;
}

.bolten-pk-add-to-cart.single_add_to_cart_button {
    flex: 1 1 auto;
    min-height: 48px;
    margin: 0 !important;
    border-color: var(--bolten-pk-accent) !important;
    background: var(--bolten-pk-accent) !important;
    color: #fff !important;
}

.bolten-pk-add-to-cart.single_add_to_cart_button:hover,
.bolten-pk-add-to-cart.single_add_to_cart_button:focus {
    filter: brightness(0.92);
}

.bolten-pk-unavailable {
    margin-bottom: 16px;
}

@media (max-width: 980px) {
    .bolten-pk-workspace {
        grid-template-columns: 1fr;
    }

    .bolten-pk-preview-card {
        position: static;
        max-width: 720px;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .bolten-pk-product-header {
        margin-bottom: 22px;
    }

    .bolten-pk-option-grid {
        grid-template-columns: 1fr;
    }

    .bolten-pk-group-front__summary-main {
        gap: 6px;
    }

    .bolten-pk-group-front__selection {
        max-width: 48%;
        font-size: 0.84em;
    }

    .bolten-pk-total-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .bolten-pk-purchase-actions {
        flex-wrap: wrap;
    }

    .bolten-pk-purchase-actions .quantity {
        flex: 0 0 100%;
    }

    .bolten-pk-purchase-actions .quantity .qty {
        width: 100%;
    }

    .bolten-pk-add-to-cart.single_add_to_cart_button {
        width: 100%;
        flex-basis: 100%;
    }
}

/* ------------------------------------------------------------
 * Version 0.4: Kundenbild und Druckbereich
 * ------------------------------------------------------------ */
.bolten-pk-upload-stage {
    position: absolute;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    touch-action: none;
    cursor: grab;
}

.bolten-pk-upload-stage:not(.has-image) {
    pointer-events: none;
    cursor: default;
}

.bolten-pk-upload-stage.is-dragging {
    cursor: grabbing;
}

/*
 * Der Hilfsrahmen ist von der echten Bildebene getrennt.
 * Ab 0.4.8 wird er nur fuer die aktiv bediente Bildgruppe eingeblendet.
 * Eine lediglich geoeffnete oder standardmaessig offene Bildgruppe reicht
 * nicht mehr aus. Dadurch bleibt die normale Produktvorschau immer sauber.
 */
.bolten-pk-upload-guide {
    position: absolute;
    border: 2px dashed rgba(147, 24, 49, 0.65);
    background: rgba(147, 24, 49, 0.035);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2147483000;
}


.bolten-pk-upload-stage__image {
    position: absolute;
    max-width: none !important;
    max-height: none !important;
    user-select: none;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, left, top;
}

.bolten-pk-upload-stage__image[hidden] {
    display: none;
}

.bolten-pk-upload-control {
    display: grid;
    gap: 12px;
}

.bolten-pk-upload-file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.bolten-pk-upload-control input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.bolten-pk-upload-limits {
    margin: 0;
    color: var(--bolten-pk-muted);
    font-size: 0.86em;
}

.bolten-pk-upload-tools {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
}

.bolten-pk-upload-tools-home {
    min-width: 0;
}

.bolten-pk-upload-tools-home:empty {
    display: none;
}

.bolten-pk-upload-tools label {
    display: grid;
    gap: 4px;
    font-weight: 600;
}

.bolten-pk-upload-tools input[type="range"] {
    width: 100%;
}

.bolten-pk-upload-status {
    min-height: 1.25em;
    margin: 0;
    color: #5a5a59;
    font-size: 0.9em;
}

.bolten-pk-upload-status.is-error {
    color: var(--bolten-pk-accent);
    font-weight: 600;
}

@media (max-width: 700px) {
    .bolten-pk-preview-card {
        scroll-margin-top: 88px;
    }

    .bolten-pk-mobile-text-panel,
    .bolten-pk-mobile-upload-panel {
        margin-top: 12px;
        border: 1px solid var(--bolten-pk-border);
        border-radius: 6px;
        background: var(--bolten-pk-soft);
        box-sizing: border-box;
    }

    .bolten-pk-mobile-text-panel,
    .bolten-pk-mobile-upload-panel {
        display: block;
        overflow: hidden;
    }

    .bolten-pk-mobile-text-panel__hint,
    .bolten-pk-mobile-upload-panel__hint {
        display: grid;
        gap: 4px;
        margin: 0;
        color: var(--bolten-pk-text);
        font-size: 0.92em;
        line-height: 1.45;
    }

    .bolten-pk-mobile-text-panel__tools:empty,
    .bolten-pk-mobile-upload-panel__tools:empty {
        display: none;
    }

    .bolten-pk-mobile-text-panel__summary,
    .bolten-pk-mobile-upload-panel__summary {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 11px 42px 11px 14px;
        color: var(--bolten-pk-accent);
        font-weight: 700;
        cursor: pointer;
        list-style: none;
        box-sizing: border-box;
        user-select: none;
    }

    .bolten-pk-mobile-text-panel__summary::-webkit-details-marker,
    .bolten-pk-mobile-upload-panel__summary::-webkit-details-marker {
        display: none;
    }

    .bolten-pk-mobile-text-panel__summary::after,
    .bolten-pk-mobile-upload-panel__summary::after {
        content: '+';
        position: absolute;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        color: var(--bolten-pk-accent);
        font-size: 20px;
        line-height: 1;
    }

    .bolten-pk-mobile-text-panel[open] .bolten-pk-mobile-text-panel__summary::after,
    .bolten-pk-mobile-upload-panel[open] .bolten-pk-mobile-upload-panel__summary::after {
        content: '−';
    }

    .bolten-pk-mobile-text-panel__content,
    .bolten-pk-mobile-upload-panel__content {
        display: grid;
        gap: 12px;
        padding: 0 14px 14px;
    }

    .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 10px;
    }

    .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools label {
        grid-column: 1 / -1;
    }

    .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools .button {
        width: 100%;
        min-height: 44px;
        margin: 0;
        white-space: normal;
    }

    .bolten-pk-upload-tools {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
 * Version 0.4.1: Fototorte-Schalter und Bildmasken
 * ------------------------------------------------------------ */
.bolten-pk-upload-stage[hidden],
.bolten-pk-upload-guide[hidden],
.bolten-pk-upload-control__body[hidden] {
    display: none !important;
}

.bolten-pk-upload-stage--rectangle,
.bolten-pk-upload-guide--rectangle {
    border-radius: 4px;
}

.bolten-pk-upload-stage--circle,
.bolten-pk-upload-guide--circle {
    border-radius: 50%;
}

.bolten-pk-photo-toggle {
    margin-bottom: 2px;
    padding: 10px 12px;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 6px;
    background: var(--bolten-pk-soft);
}

.bolten-pk-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
}

.bolten-pk-switch > input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bolten-pk-switch__track {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex: 0 0 46px;
    border-radius: 999px;
    background: #b7b7b7;
    transition: background 140ms ease;
}

.bolten-pk-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 140ms ease;
}

.bolten-pk-switch > input:checked + .bolten-pk-switch__track {
    background: var(--bolten-pk-accent);
}

.bolten-pk-switch > input:checked + .bolten-pk-switch__track::after {
    transform: translateX(22px);
}

.bolten-pk-switch > input:focus-visible + .bolten-pk-switch__track {
    outline: 2px solid var(--bolten-pk-accent);
    outline-offset: 2px;
}

.bolten-pk-switch__label {
    line-height: 1.3;
}

/* ------------------------------------------------------------
 * Version 0.4.11: kompakte Farbauswahl
 * ------------------------------------------------------------ */

.bolten-pk-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.bolten-pk-option-grid--color {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 8px;
}

.bolten-pk-choice--color {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
}

.bolten-pk-color-choice__body {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 5px;
    border-radius: 999px;
    box-sizing: border-box;
}

.bolten-pk-color-choice__swatch {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #b9b9b9;
    border-radius: 50%;
    background: var(--bolten-pk-option-color, #fff);
    box-shadow: 0 0 0 2px transparent;
    box-sizing: border-box;
    transition: box-shadow 120ms ease, transform 120ms ease;
}

.bolten-pk-choice--color > input:checked + .bolten-pk-color-choice__body .bolten-pk-color-choice__swatch {
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--bolten-pk-accent);
}

.bolten-pk-choice--color > input:focus-visible + .bolten-pk-color-choice__body {
    outline: 2px solid var(--bolten-pk-accent);
    outline-offset: 1px;
}

.bolten-pk-choice--color:hover .bolten-pk-color-choice__swatch {
    transform: scale(1.08);
}

.bolten-pk-color-choice__price {
    max-width: 70px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bolten-pk-choice--none-color {
    flex: 1 0 100%;
    width: auto;
    max-width: 180px;
}

.bolten-pk-choice--none-color .bolten-pk-choice__body {
    min-height: 38px;
    padding: 7px 10px;
}

/* ------------------------------------------------------------
 * Version 0.5.0: Conditional Logic
 * ------------------------------------------------------------ */
.bolten-pk-group-front[hidden],
.bolten-pk-choice[hidden] {
    display: none !important;
}


/* ------------------------------------------------------------
 * Version 0.5.4: alternativer kompakter Frontend-Skin
 * ------------------------------------------------------------ */

.bolten-pk-product-shell--skin-compact .bolten-pk-product-header {
    margin-bottom: 20px;
}

.bolten-pk-product-shell--skin-compact .bolten-pk-product-title {
    margin-bottom: 9px !important;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.18;
}

.bolten-pk-product-shell--skin-compact .bolten-pk-product-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

.bolten-pk-product-shell--skin-compact .bolten-pk-stock {
    margin-top: -8px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}
.bolten-pk-configurator--skin-compact .bolten-pk-workspace {
    gap: clamp(18px, 2.6vw, 36px);
}

.bolten-pk-configurator--skin-compact .bolten-pk-groups {
    gap: 8px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front {
    border-radius: 5px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front__summary {
    min-height: 44px;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.92rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front__summary-main {
    gap: 6px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front__selection {
    max-width: min(55%, 340px);
    font-size: 0.82em;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front__selection:not(:empty)::before {
    margin-right: 5px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front__toggle::before {
    font-size: 17px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front__content {
    padding: 0 12px 12px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-front__description {
    margin-bottom: 9px;
    font-size: 0.84rem;
    line-height: 1.4;
}

.bolten-pk-configurator--skin-compact .bolten-pk-option-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    align-items: stretch;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice {
    height: 100%;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice__body {
    height: 100%;
    min-height: 46px;
    gap: 8px;
    padding: 7px 8px;
    box-sizing: border-box;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice__image {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice__text {
    gap: 1px;
    min-width: 0;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice__title {
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice__description,
.bolten-pk-configurator--skin-compact .bolten-pk-choice__price {
    font-size: 0.78rem;
    line-height: 1.3;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice__price {
    margin-top: 1px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice--none .bolten-pk-choice__body {
    min-height: 42px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-group-error {
    margin-top: 7px;
    font-size: 0.84rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-upload-control {
    gap: 8px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-photo-toggle {
    padding: 7px 9px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-switch {
    gap: 8px;
    font-size: 0.88rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-switch__track {
    width: 40px;
    height: 22px;
    flex-basis: 40px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-switch__track::after {
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-switch > input:checked + .bolten-pk-switch__track::after {
    transform: translateX(18px);
}

.bolten-pk-configurator--skin-compact .bolten-pk-upload-file-label,
.bolten-pk-configurator--skin-compact .bolten-pk-upload-tools label {
    font-size: 0.86rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-upload-control input[type="file"] {
    padding: 7px;
    font-size: 0.82rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-upload-limits,
.bolten-pk-configurator--skin-compact .bolten-pk-upload-status {
    font-size: 0.78rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-upload-tools {
    grid-template-columns: minmax(150px, 1fr) auto auto;
    gap: 7px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-upload-tools .button {
    min-height: 38px;
    padding: 5px 10px;
    font-size: 0.82rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-option-grid--color {
    display: flex;
    gap: 3px 5px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-choice--color,
.bolten-pk-configurator--skin-compact .bolten-pk-color-choice__body {
    min-width: 38px;
    min-height: 38px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-color-choice__body {
    padding: 4px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-color-choice__swatch {
    width: 21px;
    height: 21px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-purchase-box {
    margin-top: 12px;
    padding: 12px;
    border-top-width: 3px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-total-row {
    margin-bottom: 10px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-total-label {
    font-size: 0.92rem;
}

.bolten-pk-configurator--skin-compact .bolten-pk-total-value {
    font-size: clamp(1.3rem, 2.1vw, 1.7rem);
}

.bolten-pk-configurator--skin-compact .bolten-pk-purchase-actions {
    gap: 7px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-purchase-actions .quantity .qty,
.bolten-pk-configurator--skin-compact .bolten-pk-add-to-cart.single_add_to_cart_button {
    min-height: 42px;
}

@media (max-width: 700px) {
    .bolten-pk-configurator--skin-compact .bolten-pk-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-group-front__summary {
        min-height: 42px;
        padding: 9px 10px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-group-front__content {
        padding: 0 10px 10px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-choice__body {
        min-height: 44px;
        padding: 6px 7px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-choice__image {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-upload-tools,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-upload-tools label,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools label {
        grid-column: 1 / -1;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-text-panel {
        margin-top: 8px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-text-panel {
        padding: 0;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-text-panel__summary,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel__summary {
        min-height: 42px;
        padding: 9px 38px 9px 10px;
        font-size: 0.9rem;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-text-panel__summary::after,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel__summary::after {
        right: 10px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-text-panel__content,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel__content {
        gap: 8px;
        padding: 0 10px 10px;
    }
}

@media (max-width: 420px) {
    .bolten-pk-configurator--skin-compact .bolten-pk-choice__image {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-choice__title {
        font-size: 0.82rem;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-choice__description,
    .bolten-pk-configurator--skin-compact .bolten-pk-choice__price {
        font-size: 0.72rem;
    }
}

/* 0.6.1 – Vorschauansichten: stabile Button-Farben + dynamische Verfügbarkeit */
.bolten-pk-preview-view-switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.bolten-pk-preview-view-switcher[hidden],
.bolten-pk-preview-view-button[hidden] {
    display: none !important;
}

.bolten-pk-configurator .bolten-pk-preview-view-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 6px !important;
    background: #fff !important;
    background-image: none !important;
    color: #5a5a59 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    min-height: 38px;
    padding: 7px 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.bolten-pk-configurator .bolten-pk-preview-view-button:hover,
.bolten-pk-configurator .bolten-pk-preview-view-button:focus,
.bolten-pk-configurator .bolten-pk-preview-view-button:focus-visible {
    border-color: #931831 !important;
    background: #fff !important;
    color: #931831 !important;
    box-shadow: none !important;
    outline: 2px solid transparent;
}

.bolten-pk-configurator .bolten-pk-preview-view-button.is-active,
.bolten-pk-configurator .bolten-pk-preview-view-button.is-active:hover,
.bolten-pk-configurator .bolten-pk-preview-view-button.is-active:focus,
.bolten-pk-configurator .bolten-pk-preview-view-button.is-active:focus-visible,
.bolten-pk-configurator .bolten-pk-preview-view-button:active {
    border-color: #931831 !important;
    background: #931831 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}

.bolten-pk-configurator--skin-compact .bolten-pk-preview-view-switcher {
    gap: 4px;
    margin-bottom: 6px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-preview-view-button {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .bolten-pk-preview-view-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 0.6.0 – inaktive Basisbilder einer Vorschauansicht wirklich ausblenden. */
.bolten-pk-preview__base[hidden] {
    display: none !important;
}

/* ------------------------------------------------------------
 * Version 0.7.0: Wunschtext innerhalb des Bild-/Druckbereichs
 * ------------------------------------------------------------ */
.bolten-pk-text-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bolten-pk-text-stage[hidden] {
    display: none !important;
}

.bolten-pk-text-font-choice--handwritten {
    font-family: var(--bolten-pk-font-handwritten, "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive);
}

.bolten-pk-text-font-choice--sans {
    font-family: var(--bolten-pk-font-sans, Arial, Helvetica, sans-serif);
}

.bolten-pk-text-font-choice--serif {
    font-family: var(--bolten-pk-font-serif, Georgia, "Times New Roman", serif);
}

.bolten-pk-text-control {
    display: grid;
    gap: 14px;
}

.bolten-pk-text-readiness,
.bolten-pk-text-hint {
    margin: 0;
    color: var(--bolten-pk-muted);
    font-size: .9em;
    line-height: 1.45;
}

.bolten-pk-text-readiness.is-ready {
    color: var(--bolten-pk-accent);
    font-weight: 600;
}

.bolten-pk-text-input-label,
.bolten-pk-text-tools label {
    display: grid;
    gap: 5px;
    font-weight: 600;
}

.bolten-pk-text-input-label textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    box-sizing: border-box;
}

.bolten-pk-text-input-label small {
    justify-self: end;
    color: var(--bolten-pk-muted);
    font-weight: 400;
}

.bolten-pk-text-fonts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.bolten-pk-text-fonts legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    font-weight: 600;
}

.bolten-pk-text-font-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.bolten-pk-text-font-choice:has(input:checked) {
    border-color: var(--bolten-pk-accent);
    box-shadow: inset 0 0 0 1px var(--bolten-pk-accent);
}

.bolten-pk-text-font-choice input {
    margin: 0;
}

.bolten-pk-text-tools {
    display: grid;
    gap: 10px;
}

.bolten-pk-text-colors,
.bolten-pk-text-transform-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.bolten-pk-text-tools input[type="range"] {
    width: 100%;
}

.bolten-pk-text-control-home:empty {
    display: none;
}

.bolten-pk-text-color__picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bolten-pk-text-color input[type="color"] {
    width: 48px;
    min-width: 48px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.bolten-pk-text-color code {
    font-size: .82em;
}

.bolten-pk-text-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.bolten-pk-text-price {
    color: var(--bolten-pk-accent);
    font-weight: 700;
}

.bolten-pk-configurator--skin-compact .bolten-pk-text-control {
    gap: 9px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-text-font-choice {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 12px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-text-input-label textarea {
    min-height: 58px;
}

.bolten-pk-configurator--skin-compact .bolten-pk-text-readiness,
.bolten-pk-configurator--skin-compact .bolten-pk-text-hint {
    font-size: .82em;
}

@media (max-width: 700px) {
    .bolten-pk-text-fonts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .bolten-pk-text-font-choice {
        min-width: 0;
        padding: 6px 5px;
        font-size: 0.82em;
    }

    .bolten-pk-text-colors,
    .bolten-pk-text-transform-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .bolten-pk-text-transform-tools label {
        min-width: 0;
    }

    .bolten-pk-text-color__picker {
        min-width: 0;
        gap: 5px;
    }

    .bolten-pk-text-color code {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bolten-pk-text-actions .button {
        width: 100%;
        min-height: 42px;
    }
}


/* ------------------------------------------------------------
 * Version 0.7.1: Textausrichtung, Schriftschnitt und Texteffekte
 * ------------------------------------------------------------ */
.bolten-pk-text-alignments,
.bolten-pk-text-style-options {
    margin: 0;
    padding: 0;
    border: 0;
}

.bolten-pk-text-alignments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.bolten-pk-text-alignments legend,
.bolten-pk-text-style-options__label {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    font-weight: 600;
}

.bolten-pk-text-option-choice,
.bolten-pk-text-toggle-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    cursor: pointer;
}

.bolten-pk-text-option-choice input,
.bolten-pk-text-toggle-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bolten-pk-text-option-choice span,
.bolten-pk-text-toggle-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 6px;
    background: #fff;
    color: var(--bolten-pk-text);
    text-align: center;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.bolten-pk-text-option-choice input:checked + span,
.bolten-pk-text-toggle-choice input:checked + span {
    border-color: var(--bolten-pk-accent);
    box-shadow: 0 0 0 2px rgba(147, 24, 49, .14);
    background: rgba(147, 24, 49, .045);
}

.bolten-pk-text-option-choice input:focus-visible + span,
.bolten-pk-text-toggle-choice input:focus-visible + span {
    outline: 2px solid var(--bolten-pk-accent);
    outline-offset: 2px;
}

.bolten-pk-text-option-choice input:disabled + span,
.bolten-pk-text-toggle-choice input:disabled + span {
    cursor: not-allowed;
    opacity: .5;
}

.bolten-pk-text-style-options__buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.bolten-pk-text-toggle-choice--bold span {
    font-weight: 700;
}

.bolten-pk-text-toggle-choice--italic span {
    font-style: italic;
}

.bolten-pk-text-color input:disabled + code {
    opacity: .5;
}

.bolten-pk-configurator--skin-compact .bolten-pk-text-option-choice span,
.bolten-pk-configurator--skin-compact .bolten-pk-text-toggle-choice span {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .bolten-pk-text-style-options__buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ------------------------------------------------------------
 * Version 0.7.2: mobile Textbearbeitung und kompaktere Regler
 * ------------------------------------------------------------ */
@media (max-width: 380px) {
    .bolten-pk-text-fonts {
        grid-template-columns: 1fr;
    }

    .bolten-pk-text-colors {
        grid-template-columns: 1fr;
    }

    .bolten-pk-text-transform-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ------------------------------------------------------------
 * Version 0.7.3: stabile mobile Foto-/Textbearbeitung
 * ------------------------------------------------------------ */
@media (max-width: 700px) {
    .bolten-pk-mobile-text-panel .bolten-pk-text-control {
        margin: 0;
    }

    .bolten-pk-mobile-text-panel .bolten-pk-text-readiness {
        margin-top: 0;
    }
}


/* ------------------------------------------------------------
 * Version 0.7.4: kompakter Texteditor und stabiler Mobil-Fokus
 * ------------------------------------------------------------ */
.bolten-pk-text-input-label {
    gap: 4px;
}

.bolten-pk-text-input-label__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bolten-pk-text-input-label__head small {
    color: var(--bolten-pk-muted);
    font-size: .82em;
    font-weight: 400;
    white-space: nowrap;
}

.bolten-pk-text-input-label textarea {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    resize: none;
    line-height: 1.35;
}

.bolten-pk-text-quick-tools {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
    gap: 10px;
    align-items: end;
}

.bolten-pk-text-font-select {
    display: grid;
    gap: 5px;
    font-weight: 600;
}

.bolten-pk-text-font-select select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 6px 32px 6px 10px;
    border: 1px solid var(--bolten-pk-border);
    border-radius: 6px;
    background-color: #fff;
    color: var(--bolten-pk-text);
    box-sizing: border-box;
}

.bolten-pk-text-alignments {
    grid-template-columns: repeat(3, minmax(42px, 1fr));
    gap: 6px;
}

.bolten-pk-text-alignments legend {
    margin-bottom: 5px;
}

.bolten-pk-text-option-choice span {
    padding: 6px;
}

.bolten-pk-text-option-choice svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.bolten-pk-text-style-options__buttons {
    grid-template-columns: 46px 46px minmax(86px, 1fr) minmax(76px, 1fr);
}

.bolten-pk-text-toggle-choice--bold span,
.bolten-pk-text-toggle-choice--italic span {
    font-size: 18px;
    line-height: 1;
}

.bolten-pk-text-toggle-choice--bold span {
    font-weight: 800;
}

.bolten-pk-text-toggle-choice--italic span {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
}

.bolten-pk-configurator--skin-compact .bolten-pk-text-font-select select {
    min-height: 36px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .bolten-pk-mobile-text-panel .bolten-pk-text-control {
        gap: 8px;
    }

    .bolten-pk-mobile-text-panel .bolten-pk-text-input-label textarea {
        font-size: 16px; /* verhindert iOS-Zoom und stabilisiert den Tastaturfokus */
    }

    .bolten-pk-text-quick-tools {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        gap: 8px;
    }

    .bolten-pk-text-font-select select,
    .bolten-pk-text-option-choice span,
    .bolten-pk-text-toggle-choice span {
        min-height: 40px;
    }

    .bolten-pk-text-style-options__buttons {
        grid-template-columns: 42px 42px minmax(78px, 1fr) minmax(70px, 1fr);
        gap: 6px;
    }

    .bolten-pk-text-colors,
    .bolten-pk-text-transform-tools {
        gap: 7px;
    }
}

@media (max-width: 390px) {
    .bolten-pk-text-quick-tools {
        grid-template-columns: 1fr;
    }

    .bolten-pk-text-style-options__buttons {
        grid-template-columns: 42px 42px repeat(2, minmax(0, 1fr));
    }
}


/* ------------------------------------------------------------
 * Version 0.7.5: kompakter Info-Bereich und stabile Mobilbreite
 * ------------------------------------------------------------ */
.bolten-pk-text-control,
.bolten-pk-text-control > *,
.bolten-pk-text-quick-tools,
.bolten-pk-text-style-options,
.bolten-pk-text-style-options__buttons,
.bolten-pk-text-tools,
.bolten-pk-text-colors,
.bolten-pk-text-transform-tools,
.bolten-pk-text-font-select,
.bolten-pk-text-alignments {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.bolten-pk-text-control {
    width: 100%;
}

.bolten-pk-text-font-select select,
.bolten-pk-text-input-label textarea,
.bolten-pk-text-tools input[type="range"] {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 700px) {
    .bolten-pk-mobile-text-panel,
    .bolten-pk-mobile-text-panel__content,
    .bolten-pk-mobile-text-panel__tools,
    .bolten-pk-mobile-text-panel .bolten-pk-text-control {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bolten-pk-mobile-text-panel__summary {
        padding-right: 78px;
    }

    .bolten-pk-mobile-text-panel__summary-label {
        min-width: 0;
    }

    .bolten-pk-mobile-text-panel__info-toggle {
        position: absolute;
        top: 50%;
        right: 43px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin: 0;
        padding: 0;
        transform: translateY(-50%);
        border: 1px solid rgba(147, 24, 49, .42);
        border-radius: 50%;
        background: #fff;
        color: var(--bolten-pk-accent);
        box-shadow: none;
        font: 700 15px/1 Arial, Helvetica, sans-serif;
        cursor: pointer;
    }

    .bolten-pk-mobile-text-panel__info-toggle:hover,
    .bolten-pk-mobile-text-panel__info-toggle:focus-visible,
    .bolten-pk-mobile-text-panel__info-toggle.is-active {
        border-color: var(--bolten-pk-accent);
        background: rgba(147, 24, 49, .07);
        color: var(--bolten-pk-accent);
        outline: none;
    }

    .bolten-pk-mobile-text-panel__info-toggle:focus-visible {
        box-shadow: 0 0 0 2px rgba(147, 24, 49, .18);
    }

    .bolten-pk-mobile-text-panel__info {
        display: grid;
        gap: 5px;
        width: 100%;
        margin: 0;
        padding: 9px 10px;
        border: 1px solid rgba(0, 0, 0, .1);
        border-radius: 5px;
        background: #fff;
        color: var(--bolten-pk-muted);
        font-size: .84em;
        line-height: 1.4;
        box-sizing: border-box;
    }

    .bolten-pk-mobile-text-panel__info[hidden] {
        display: none !important;
    }

    .bolten-pk-mobile-text-panel__info p {
        margin: 0;
    }

    /* Mobil stehen Bedienhinweise ausschließlich hinter dem Info-Schalter. */
    .bolten-pk-mobile-text-panel .bolten-pk-text-readiness {
        display: none;
    }

    /* Kein Werkzeug darf die Konfigurator-Spalte horizontal verbreitern. */
    .bolten-pk-mobile-text-panel .bolten-pk-text-input-label,
    .bolten-pk-mobile-text-panel .bolten-pk-text-font-select,
    .bolten-pk-mobile-text-panel .bolten-pk-text-alignments,
    .bolten-pk-mobile-text-panel .bolten-pk-text-style-options,
    .bolten-pk-mobile-text-panel .bolten-pk-text-tools,
    .bolten-pk-mobile-text-panel .bolten-pk-text-color,
    .bolten-pk-mobile-text-panel .bolten-pk-text-transform-tools label {
        min-width: 0;
        max-width: 100%;
    }

    .bolten-pk-mobile-text-panel .bolten-pk-text-color__picker {
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-text-panel__summary {
        padding-right: 72px;
    }

    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-text-panel__info-toggle {
        right: 39px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}


/* ------------------------------------------------------------
 * Version 0.7.6: stabile Mobilbreite und Textfokus ohne Sprung
 * ------------------------------------------------------------ */
@media (max-width: 700px) {
    /*
     * Upload- und Textwerkzeuge duerfen niemals die Grid-Spalte bzw. den
     * gesamten Konfigurator auf ihre intrinsische Mindestbreite aufziehen.
     * Das ist besonders bei Theme-Buttons und dem nativen Datei-Feld wichtig.
     */
    .bolten-pk-configurator,
    .bolten-pk-workspace,
    .bolten-pk-preview-column,
    .bolten-pk-preview-card,
    .bolten-pk-config-column,
    .bolten-pk-groups,
    .bolten-pk-group-front,
    .bolten-pk-group-front__content,
    .bolten-pk-upload-control,
    .bolten-pk-upload-control__body,
    .bolten-pk-upload-tools-home,
    .bolten-pk-upload-tools,
    .bolten-pk-mobile-upload-panel,
    .bolten-pk-mobile-upload-panel__content,
    .bolten-pk-mobile-upload-panel__tools,
    .bolten-pk-mobile-text-panel,
    .bolten-pk-mobile-text-panel__content,
    .bolten-pk-mobile-text-panel__tools {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bolten-pk-upload-control > *,
    .bolten-pk-upload-control__body > *,
    .bolten-pk-upload-tools > *,
    .bolten-pk-mobile-upload-panel__content > *,
    .bolten-pk-mobile-upload-panel__tools > *,
    .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools > * {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bolten-pk-upload-control input[type="file"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools label,
    .bolten-pk-configurator--skin-compact .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools label {
        grid-column: 1 / -1;
    }

    .bolten-pk-mobile-upload-panel .bolten-pk-upload-tools .button,
    .bolten-pk-mobile-upload-panel button.button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        box-sizing: border-box !important;
    }

    .bolten-pk-mobile-upload-panel input[type="range"],
    .bolten-pk-mobile-text-panel input[type="range"],
    .bolten-pk-mobile-text-panel select,
    .bolten-pk-mobile-text-panel textarea {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* --------------------------------------------------------
     * Version 0.7.8: stabiler Texteingabe-Fokusmodus
     * --------------------------------------------------------
     * Die Produktvorschau wird während der Texteingabe niemals skaliert.
     * Der Fokusmodus wird ausschließlich vom Fokus des Textfeldes gesteuert;
     * Visual-Viewport-, Tastaturhöhen- und Scroll-Erkennung greifen nicht ein.
     * Die Gestaltungswerkzeuge bleiben im DOM und behalten ihren Zustand,
     * werden nur bis zum Verlassen des Textfeldes vorübergehend ausgeblendet.
     */
    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel {
        margin-top: 6px;
    }

    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel__content {
        gap: 4px;
    }

    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel__info,
    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-readiness,
    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-quick-tools,
    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-style-options,
    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-tools,
    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-actions,
    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-hint {
        display: none !important;
    }

    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-control {
        gap: 0;
    }

    .bolten-pk-configurator--text-input-active .bolten-pk-mobile-text-panel .bolten-pk-text-input-label {
        margin: 0;
    }
}

/* ------------------------------------------------------------
 * Version 0.8.7: Canvas-Textrenderer
 * Vorschau und Produktions-Textlayer werden mit derselben Browser-Canvas-
 * Routine gezeichnet. Das Canvas selbst fängt keine Zeigerereignisse ab;
 * nur die transparente Hitbox über dem tatsächlich gerenderten Text ist
 * verschiebbar, damit die Bildausrichtung außerhalb des Textes erhalten bleibt.
 * ------------------------------------------------------------ */
.bolten-pk-text-stage__canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    pointer-events: none;
}

.bolten-pk-text-stage__hitbox {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    pointer-events: auto;
}

.bolten-pk-text-stage__hitbox.is-dragging {
    cursor: grabbing;
}

.bolten-pk-text-stage__hitbox[hidden] {
    display: none !important;
}
