.fb-img-configurator {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    padding: 0;
    font-size: 16px;
}

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

.fb-img-configurator__head {
    background: linear-gradient(135deg, #111827 0%, #263342 100%);
    color: #fff;
    padding: 22px 24px;
    border-radius: 18px 18px 0 0;
}

.fb-img-configurator__head h3 {
    color: #fff;
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    line-height: 1.2;
}

.fb-img-configurator__head p {
    margin: 0;
    opacity: .92;
    line-height: 1.55;
}

.fb-img-fieldset {
    border: 1px solid #dbe3ea;
    border-top: 0;
    margin: 0;
    padding: 22px 24px;
    background: #fff;
}

.fb-img-fieldset legend {
    float: left;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    font-weight: 800;
    font-size: 1.05rem;
    color: #111827;
}

.fb-img-fieldset legend + * {
    clear: both;
}

.fb-img-upload-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-height: 144px;
    border: 2px dashed #009fe3;
    border-radius: 18px;
    padding: 22px;
    background: #f5fbff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.fb-img-upload-box:hover {
    background: #eff9ff;
    border-color: #007fb8;
}

.fb-img-upload-box__title {
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 800;
    color: #10202f;
}

.fb-img-upload-box__hint {
    color: #4b5563;
    line-height: 1.5;
}

.fb-img-upload-box input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 1rem;
}

.fb-img-file-status {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #1f2937;
    line-height: 1.45;
}

.fb-img-items-empty {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    background: #f9fafb;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.fb-img-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
}

.fb-img-item-card {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
    width: 100%;
    padding: 16px;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.fb-img-item-card.has-invalid-config {
    border-color: #dc2626;
}

.fb-img-item-card__preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(45deg, rgba(148, 163, 184, .25) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, .25) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, .25) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, .25) 75%),
        #eef2f7;
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    padding: 18px;
}

.fb-img-terminal-stage {
    --fb-img-stage-max: 320px;
    position: relative;
    width: min(100%, 320px);
    height: 320px;
    border: 3px solid #dc2626;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, .16), 0 12px 28px rgba(15, 23, 42, .22);
    touch-action: none;
    cursor: grab;
    user-select: none;
}

.fb-img-terminal-stage.is-dragging {
    cursor: grabbing;
}

.fb-img-terminal-stage img {
    position: absolute;
    display: block;
    max-width: none;
    object-fit: unset;
    user-select: none;
    pointer-events: none;
    transform: translateZ(0);
}

.fb-img-item-card.is-contain-mode .fb-img-terminal-stage {
    background: #fff;
    cursor: default;
}

.fb-img-crop-hint {
    position: static;
    display: block;
    width: 100%;
    max-width: 340px;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(17, 24, 39, .88);
    color: #fff;
    font-size: .76rem;
    line-height: 1.3;
    text-align: center;
}

.fb-img-item-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.fb-img-item-card h5 {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.25;
    color: #111827;
    overflow-wrap: anywhere;
}

.fb-img-item-card__meta {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: .88rem;
}

.fb-img-item-fields,
.fb-img-crop-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fb-img-crop-controls {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    align-items: end;
}

.fb-img-item-fields label,
.fb-img-crop-controls label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: .86rem;
    font-weight: 700;
    color: #374151;
}

.fb-img-item-fields select,
.fb-img-item-fields input[type="number"],
.fb-img-crop-controls select,
.fb-img-crop-controls input[type="range"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    color: #111827;
    font-size: 1rem;
}

.fb-img-crop-controls input[type="range"] {
    padding-left: 0;
    padding-right: 0;
    accent-color: #009fe3;
}

.fb-img-reset-crop {
    min-height: 42px;
    align-self: end;
}

.fb-img-item-card__price {
    align-self: flex-end;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 150px;
    margin: auto 0 0;
    padding: 10px 14px;
    border: 1px solid rgba(0, 159, 227, .22);
    border-radius: 14px;
    background: #f5fbff;
    color: #009fe3;
    text-align: right;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.fb-img-item-card__price span {
    color: #64748b;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fb-img-item-card__price strong {
    color: #009fe3;
    font-size: 1.18rem;
    line-height: 1.1;
}

.fb-img-item-card__price small {
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
}

.fb-img-help {
    margin: 14px 0 0;
    color: #4b5563;
    line-height: 1.55;
}

.fb-img-radio-list {
    display: grid;
    gap: 12px;
}

.fb-img-radio-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.fb-img-radio-row input {
    margin-top: 4px;
}

.fb-img-radio-row span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fb-img-radio-row strong {
    color: #111827;
}

.fb-img-radio-row small,
.fb-img-summary-list small {
    color: #6b7280;
    line-height: 1.4;
}

.fb-img-summary {
    border-left: 1px solid #dbe3ea;
    border-right: 1px solid #dbe3ea;
    background: #f9fafb;
    padding: 22px 24px;
}

.fb-img-summary h4 {
    margin: 0 0 12px;
    color: #111827;
}

.fb-img-summary table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.fb-img-summary th,
.fb-img-summary td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
}

.fb-img-summary th {
    width: 28%;
    color: #374151;
    font-weight: 800;
}

.fb-img-summary-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fb-img-summary-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fff;
}

.fb-img-summary-thumb {
    position: relative;
    flex: 0 0 76px;
    width: 76px;
    max-width: 76px;
    border: 2px solid #dc2626;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.fb-img-summary-thumb img {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
    object-fit: unset;
}

.fb-img-summary-item-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.fb-img-total-highlight {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 22px 24px;
    border-radius: 0 0 18px 18px;
    background: #009fe3;
    color: #fff;
    margin-bottom: 20px;
}

.fb-img-total-highlight.is-pending {
    background: #334155;
}

.fb-img-total-highlight__label {
    font-size: .95rem;
    opacity: .92;
}

.fb-img-total-highlight__amount {
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.05;
}

.fb-img-total-highlight__tax {
    font-size: .9rem;
    opacity: .9;
}

.fb-img-price-html small {
    font-size: .8em;
    color: inherit;
    opacity: .82;
}

@media (max-width: 820px) {
    .fb-img-configurator__head,
    .fb-img-fieldset,
    .fb-img-summary,
    .fb-img-total-highlight {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fb-img-item-card {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
        gap: 14px;
        padding: 12px;
    }

    .fb-img-item-card__preview {
        min-height: 240px;
        padding: 14px;
    }

    .fb-img-terminal-stage {
        --fb-img-stage-max: 260px;
    }

    .fb-img-item-fields,
    .fb-img-crop-controls {
        grid-template-columns: 1fr;
    }

    .fb-img-summary th,
    .fb-img-summary td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .fb-img-summary th {
        padding-bottom: 2px;
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .fb-img-item-card {
        grid-template-columns: 1fr;
    }

    .fb-img-item-card__preview {
        width: 100%;
        min-height: 280px;
        max-height: none;
    }

    .fb-img-terminal-stage {
        --fb-img-stage-max: 290px;
    }

    .fb-img-item-card__price {
        align-self: stretch;
        width: 100%;
        text-align: center;
    }

    .fb-img-summary-list li {
        align-items: flex-start;
    }

    .fb-img-summary-thumb {
        flex-basis: 64px;
        width: 64px;
        max-width: 64px;
    }
}

/* Flyerbaron FOTO Druckupload 1.0.13-test: Elementor-freundliche, moderne Warenkorbstruktur
   Ziel: klare Struktur nur für FotoUpload-Artikel; Typografie/Farben bleiben weitgehend Elementor überlassen. */

/* Produktseite: WooCommerce-Menge bei FotoUpload-Konfiguration ausblenden. */
form.cart:has(.fb-img-configurator) > .quantity {
    display: none !important;
}

/* Produktseite / Warenkorb: Hinweis zur Bildauflösung kleiner und ruhig darstellen. */
.fb-img-quality-warning,
.fb-img-summary-quality-warning,
.fb-img-quality-warning-inline {
    display: block;
    margin-top: .5rem;
    font-size: .82em;
    font-weight: 400 !important;
    line-height: 1.45;
}

.fb-img-quality-warning[hidden] {
    display: none !important;
}

.fb-img-item-fields > .fb-img-quality-warning {
    grid-column: 1 / -1;
    margin: 0 0 4px;
}

.fb-img-quality-warning-break {
    display: block;
    height: 8px;
    content: "";
}

/* Foto entfernen: bewusst nur innerhalb des Plugin-Konfigurators. */
.fb-img-remove-photo {
    align-self: flex-start;
    min-height: 34px;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    line-height: 1.1 !important;
}

@media (max-width: 520px) {
    .fb-img-remove-photo {
        width: 100%;
        text-align: center;
    }
}

/* Warenkorb / Checkout: moderne, isolierte FotoUpload-Darstellung. Normale WooCommerce-Produkte bleiben unberührt. */
.fb-img-cart-product-title {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    font-weight: inherit;
}

.fb-img-cart-item td.product-name,
.fb-img-cart-item-js td.product-name {
    vertical-align: top;
}

@media (min-width: 901px) {
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table th,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table td,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table th,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table td {
        box-sizing: border-box;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-name {
        min-width: 0 !important;
        width: 52% !important;
        max-width: 52% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-price {
        width: 12% !important;
        max-width: 12% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-quantity {
        width: 20% !important;
        max-width: 20% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal {
        width: 16% !important;
        max-width: 16% !important;
    }
}

/* WooCommerce schreibt Custom-Daten als Definition List. Nur die Plugin-Zeile wird als eigener Block dargestellt. */
.fb-img-cart-item dl.variation dt[class*="variation-Fotokonfiguration"],
.fb-img-cart-item-js dl.variation dt[class*="variation-Fotokonfiguration"],
tr:has(.fb-img-cart-meta) dl.variation dt[class*="variation-Fotokonfiguration"],
.cart_item:has(.fb-img-cart-meta) dl.variation dt[class*="variation-Fotokonfiguration"] {
    display: none !important;
}

.fb-img-cart-item dl.variation dd[class*="variation-Fotokonfiguration"],
.fb-img-cart-item-js dl.variation dd[class*="variation-Fotokonfiguration"],
tr:has(.fb-img-cart-meta) dl.variation dd[class*="variation-Fotokonfiguration"],
.cart_item:has(.fb-img-cart-meta) dl.variation dd[class*="variation-Fotokonfiguration"] {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: .75rem 0 0 !important;
    padding: 0 !important;
}

.fb-img-cart-item dl.variation dd[class*="variation-Fotokonfiguration"] > p,
.fb-img-cart-item-js dl.variation dd[class*="variation-Fotokonfiguration"] > p,
tr:has(.fb-img-cart-meta) dl.variation dd[class*="variation-Fotokonfiguration"] > p,
.cart_item:has(.fb-img-cart-meta) dl.variation dd[class*="variation-Fotokonfiguration"] > p {
    margin: 0 !important;
    padding: 0 !important;
}

.fb-img-cart-meta,
.fb-img-cart-meta * {
    box-sizing: border-box;
}

.fb-img-cart-meta {
    --fb-cart-accent: #0ea5d7;
    --fb-cart-accent-dark: #0b75a5;
    --fb-cart-border: rgba(15, 23, 42, .14);
    --fb-cart-soft: rgba(14, 165, 215, .08);
    --fb-cart-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    display: grid;
    gap: .85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: .35rem;
    font: inherit;
    color: inherit;
}

.fb-img-cart-meta-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    width: min(100%, 340px);
    padding: .55rem .7rem;
    border: 2px solid var(--fb-cart-accent);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(14, 165, 215, .10);
}

.fb-img-cart-meta-summary span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    line-height: 1.25;
}

.fb-img-cart-meta-summary em {
    font-style: normal;
    opacity: .78;
    min-width: 0;
}

.fb-img-cart-meta-summary strong {
    font-weight: 700;
    color: inherit;
}

.fb-img-cart-meta-label {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .48rem .78rem;
    border-radius: 999px;
    background: var(--fb-cart-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(14, 165, 215, .24);
    line-height: 1.15;
    font-weight: 700;
}

.fb-img-cart-photo-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .95rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.fb-img-cart-photo-row {
    display: grid;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: .85rem;
    border: 1px solid var(--fb-cart-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--fb-cart-shadow);
    overflow: hidden;
}

.fb-img-cart-photo-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .6rem;
    min-width: 0;
}

.fb-img-cart-photo-heading strong {
    font-size: 1.02em;
    font-weight: 800;
    color: inherit;
}

.fb-img-cart-photo-heading span {
    min-width: 0;
    font-size: .9em;
    opacity: .75;
    overflow-wrap: anywhere;
}

.fb-img-cart-photo-body {
    display: grid;
    grid-template-columns: minmax(86px, 126px) minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
    min-width: 0;
}

.fb-img-cart-photo-thumb {
    position: relative;
    display: block;
    width: min(132px, 100%);
    max-width: 100%;
    overflow: hidden;
    border: 2px solid #dc2626;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.fb-img-cart-photo-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.fb-img-cart-photo-thumb.is-empty {
    display: grid;
    place-items: center;
    min-height: 86px;
    padding: .35rem;
    background: #fff;
    color: #be123c;
    text-align: center;
    font-size: .72em;
    font-weight: 800;
    line-height: 1.15;
}

.fb-img-cart-photo-thumb.is-empty::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    min-height: 58px;
}

.fb-img-cart-photo-thumb.is-empty > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: .35rem;
}

.fb-img-cart-photo-text {
    display: grid;
    gap: .22rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
}

.fb-img-cart-config-label {
    display: block;
    font-size: .88em;
    opacity: .68;
    line-height: 1.2;
}

.fb-img-cart-config-format {
    display: block;
    font-weight: 800;
    line-height: 1.25;
}
.fb-img-cart-config-lines {
    display: grid;
    grid-template-columns: 1fr;
    gap: .1rem;
    min-width: 0;
    line-height: 1.28;
}

.fb-img-cart-config-line {
    display: block;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.fb-img-cart-config-line-format {
    font-weight: 800;
}


.fb-img-cart-photo-config,
.fb-img-cart-crop-line,
.fb-img-cart-total-qty,
.fb-img-cart-file-name {
    display: block;
    min-width: 0;
}

.fb-img-cart-crop-line,
.fb-img-cart-file-name {
    font-size: .86em;
    opacity: .78;
}

.fb-img-cart-total-qty {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .35rem;
    margin-top: .55rem;
}

.fb-img-cart-total-qty strong {
    white-space: nowrap;
}

.fb-img-cart-file-name span,
.fb-img-cart-total-qty span {
    opacity: .72;
}

.fb-img-cart-quality-warning {
    margin-top: .15rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(190, 18, 60, .25);
    color: #dc2626;
    font-size: .78em;
    font-weight: 400;
    line-height: 1.45;
}

.fb-img-cart-quality-warning span {
    display: block;
    margin-bottom: .18rem;
    font-weight: 500;
}

.fb-img-cart-quality-warning p {
    margin: 0 !important;
    color: inherit;
    font: inherit;
}

.fb-img-quality-warning-inline,
.fb-img-quality-warning-break {
    display: none;
}

.fb-img-cart-processing {
    padding: .6rem .75rem;
    border: 1px dashed var(--fb-cart-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, .025);
}

.fb-img-cart-processing span {
    font-weight: 700;
}

/* Spalte Anzahl: keine WooCommerce-Mengenbox, sondern konfigurierte Fotoanzahl und Format. */
.fb-img-cart-quantity-summary {
    display: grid;
    gap: .45rem;
    width: 100%;
    min-width: 0;
    max-width: 150px;
    margin: 0 auto;
}

.fb-img-cart-quantity-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: .4rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .11);
    background: var(--fb-cart-accent);
    color: #fff;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 6px 14px rgba(14, 165, 215, .18);
}

.fb-img-cart-quantity-line span {
    display: block;
    overflow-wrap: anywhere;
}

.fb-img-cart-quantity-note {
    display: block;
    font-size: .88em;
    opacity: .72;
}

/* Nur Eingabefelder der FotoUpload-Produkte entfernen; die Spalte Anzahl bleibt mit Zusammenfassung sichtbar. */
.fb-img-cart-item td.product-quantity .quantity:not(:has(.fb-img-cart-quantity-summary)),
.fb-img-cart-item-js td.product-quantity .quantity:not(:has(.fb-img-cart-quantity-summary)),
body.woocommerce-cart tr:has(.fb-img-cart-meta) td.product-quantity .quantity:not(:has(.fb-img-cart-quantity-summary)),
.elementor-widget-woocommerce-cart tr:has(.fb-img-cart-meta) td.product-quantity .quantity:not(:has(.fb-img-cart-quantity-summary)),
body.woocommerce-cart tr:has(.fb-img-cart-meta) input.qty,
body.woocommerce-cart tr:has(.fb-img-cart-meta) button.minus,
body.woocommerce-cart tr:has(.fb-img-cart-meta) button.plus,
.elementor-widget-woocommerce-cart tr:has(.fb-img-cart-meta) input.qty,
.elementor-widget-woocommerce-cart tr:has(.fb-img-cart-meta) button.minus,
.elementor-widget-woocommerce-cart tr:has(.fb-img-cart-meta) button.plus {
    display: none !important;
}

.fb-img-cart-item td.product-quantity,
.fb-img-cart-item-js td.product-quantity {
    vertical-align: middle;
}

.fb-img-cart-item td.product-price,
.fb-img-cart-item-js td.product-price,
.fb-img-cart-item td.product-subtotal,
.fb-img-cart-item-js td.product-subtotal {
    vertical-align: middle;
    white-space: nowrap;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal {
    position: static !important;
    right: auto !important;
    transform: none !important;
    z-index: auto !important;
}

/* Mini-Warenkorb: Warnhinweise ausblenden und kompakter bleiben. */
.woocommerce-mini-cart .fb-img-cart-quality-warning,
.elementor-menu-cart__product .fb-img-cart-quality-warning,
.elementor-menu-cart__main .fb-img-cart-quality-warning,
.widget_shopping_cart .fb-img-cart-quality-warning,
.woocommerce-mini-cart .fb-img-quality-warning-break,
.elementor-menu-cart__product .fb-img-quality-warning-break,
.elementor-menu-cart__main .fb-img-quality-warning-break,
.widget_shopping_cart .fb-img-quality-warning-break,
.woocommerce-mini-cart .fb-img-quality-warning-inline,
.elementor-menu-cart__product .fb-img-quality-warning-inline,
.elementor-menu-cart__main .fb-img-quality-warning-inline,
.widget_shopping_cart .fb-img-quality-warning-inline {
    display: none !important;
}

.woocommerce-mini-cart .fb-img-cart-meta,
.elementor-menu-cart__product .fb-img-cart-meta,
.elementor-menu-cart__main .fb-img-cart-meta,
.widget_shopping_cart .fb-img-cart-meta {
    gap: .5rem;
}

.woocommerce-mini-cart .fb-img-cart-meta-summary,
.elementor-menu-cart__product .fb-img-cart-meta-summary,
.elementor-menu-cart__main .fb-img-cart-meta-summary,
.widget_shopping_cart .fb-img-cart-meta-summary,
.woocommerce-mini-cart .fb-img-cart-meta-label,
.elementor-menu-cart__product .fb-img-cart-meta-label,
.elementor-menu-cart__main .fb-img-cart-meta-label,
.widget_shopping_cart .fb-img-cart-meta-label {
    display: none;
}

.woocommerce-mini-cart .fb-img-cart-photo-list,
.elementor-menu-cart__product .fb-img-cart-photo-list,
.elementor-menu-cart__main .fb-img-cart-photo-list,
.widget_shopping_cart .fb-img-cart-photo-list {
    gap: .55rem;
}

.woocommerce-mini-cart .fb-img-cart-photo-row,
.elementor-menu-cart__product .fb-img-cart-photo-row,
.elementor-menu-cart__main .fb-img-cart-photo-row,
.widget_shopping_cart .fb-img-cart-photo-row {
    gap: .45rem;
    padding: .55rem;
    border-radius: 12px;
    box-shadow: none;
}

.woocommerce-mini-cart .fb-img-cart-photo-heading,
.elementor-menu-cart__product .fb-img-cart-photo-heading,
.elementor-menu-cart__main .fb-img-cart-photo-heading,
.widget_shopping_cart .fb-img-cart-photo-heading {
    display: none;
}

.woocommerce-mini-cart .fb-img-cart-photo-body,
.elementor-menu-cart__product .fb-img-cart-photo-body,
.elementor-menu-cart__main .fb-img-cart-photo-body,
.widget_shopping_cart .fb-img-cart-photo-body {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: .55rem;
}

.woocommerce-mini-cart .fb-img-cart-photo-thumb,
.elementor-menu-cart__product .fb-img-cart-photo-thumb,
.elementor-menu-cart__main .fb-img-cart-photo-thumb,
.widget_shopping_cart .fb-img-cart-photo-thumb {
    width: 64px;
}

.woocommerce-mini-cart .fb-img-cart-file-name,
.elementor-menu-cart__product .fb-img-cart-file-name,
.elementor-menu-cart__main .fb-img-cart-file-name,
.widget_shopping_cart .fb-img-cart-file-name,
.woocommerce-mini-cart .fb-img-cart-total-qty,
.elementor-menu-cart__product .fb-img-cart-total-qty,
.elementor-menu-cart__main .fb-img-cart-total-qty,
.widget_shopping_cart .fb-img-cart-total-qty {
    display: none;
}

/* Elementor/Theme können Schriftfamilie, Basis-Schriftgrößen und Tabellen-Styling weiter steuern. */


@media (max-width: 900px) {
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table {
        table-layout: auto;
    }
}
@media (max-width: 900px) {
    .woocommerce-cart tr.fb-img-cart-item td.product-name,
    .woocommerce-cart tr.fb-img-cart-item-js td.product-name,
    .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-name,
    .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-name {
        min-width: 0;
        width: auto;
    }

    .fb-img-cart-meta-summary {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .fb-img-cart-photo-body {
        grid-template-columns: minmax(82px, 112px) minmax(0, 1fr);
        gap: .75rem;
    }

    .fb-img-cart-photo-thumb {
        width: min(112px, 100%);
    }

    .fb-img-cart-quantity-summary {
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .fb-img-cart-meta-summary {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .fb-img-cart-meta-label {
        width: 100%;
        justify-content: center;
    }

    .fb-img-cart-photo-row {
        padding: .75rem;
        border-radius: 14px;
    }

    .fb-img-cart-photo-body {
        grid-template-columns: 1fr;
    }

    .fb-img-cart-photo-thumb {
        width: min(160px, 100%);
        justify-self: start;
    }

    .fb-img-cart-quantity-line {
        border-radius: 12px;
    }
}


/* Testversion 1.0.15: Elementor-Warenkorb-Spalten absichern, damit Preis/Zwischensumme nicht aus der Warenkorbform laufen. */
body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form {
    max-width: 100%;
    overflow: visible;
}

body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table td.product-name {
    overflow: visible;
}

body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table td.product-quantity {
    overflow: visible;
}

@media (max-width: 767px) {
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal {
        text-align: right;
        width: auto !important;
        max-width: none !important;
    }

    .fb-img-cart-quantity-summary {
        max-width: 100%;
        justify-items: end;
    }

    .fb-img-cart-quantity-line {
        width: auto;
        min-width: 130px;
        max-width: 100%;
    }
}

/* Testversion 1.0.16: FotoUpload-Warenkorb nutzt den Bereich der normalen Produktminiatur.
   Die Regeln sind bewusst auf FotoUpload-Zeilen begrenzt, damit normale WooCommerce-Produkte unverändert bleiben. */
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-thumbnail,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-thumbnail,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-thumbnail,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-thumbnail {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-name,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-name,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-name,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-name {
    width: auto !important;
    max-width: none !important;
    min-width: min(360px, 100%) !important;
    padding-left: 0 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space,
body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space {
    table-layout: auto;
}

@media (min-width: 901px) {
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table {
        table-layout: auto !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-price {
        width: 82px !important;
        max-width: 82px !important;
        min-width: 72px !important;
        padding-left: .5rem !important;
        padding-right: .5rem !important;
        text-align: right !important;
        vertical-align: middle !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-quantity {
        width: 142px !important;
        max-width: 142px !important;
        min-width: 118px !important;
        padding-left: .45rem !important;
        padding-right: .45rem !important;
        vertical-align: middle !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-subtotal {
        width: 88px !important;
        max-width: 88px !important;
        min-width: 76px !important;
        padding-left: .5rem !important;
        padding-right: .5rem !important;
        text-align: right !important;
        vertical-align: middle !important;
    }
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta {
    width: min(100%, 620px);
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta-summary,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta-summary {
    width: min(100%, 420px);
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-row,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-row,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-row,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-row {
    padding: 1rem;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-body,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-body,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-body,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-body {
    grid-template-columns: minmax(104px, 148px) minmax(0, 1fr);
    gap: 1rem;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-thumb,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-thumb,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-thumb,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-photo-thumb {
    width: min(148px, 100%);
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-total-qty {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: .35rem;
    white-space: nowrap;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-total-qty strong {
    display: inline;
    white-space: nowrap;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-file-name {
    margin-top: .08rem;
}

@media (max-width: 900px) {
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-name {
        min-width: 0 !important;
        width: 100% !important;
        padding-left: inherit !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space .fb-img-cart-meta {
        width: 100%;
    }
}

@media (max-width: 560px) {
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body {
        grid-template-columns: 1fr;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-thumb {
        width: min(180px, 100%);
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-total-qty {
        white-space: normal;
    }
}

/* Testversion 1.0.17: FotoUpload-Warenkorb pro Foto sauber in Produkt-, Preis-, Anzahl- und Zwischensummen-Spalten aufschlüsseln. */
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-price,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-price,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-quantity,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-quantity,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-subtotal,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-subtotal,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-price,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-price,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-quantity,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-quantity,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-subtotal,
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-subtotal {
    vertical-align: top !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .55rem !important;
    width: min(100%, 440px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary span {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .55rem !important;
    min-width: 0 !important;
    padding: .55rem .7rem !important;
    border: 2px solid var(--fb-cart-accent) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(14, 165, 215, .09) !important;
    line-height: 1.22 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary em,
body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary strong {
    display: inline !important;
    min-width: 0 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-label {
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: .15rem 0 .15rem !important;
    padding: .35rem 0 .45rem .75rem !important;
    border-left: 4px solid var(--fb-cart-accent) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font-size: 1.04em !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .95rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    font: inherit !important;
    color: inherit !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-line,
body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-quantity-line {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: .85rem 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1.32 !important;
    text-align: right !important;
    white-space: normal !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-line > span,
body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-quantity-line > span {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    overflow-wrap: anywhere !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-list-price .fb-img-cart-cell-line,
body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-list-subtotal .fb-img-cart-cell-line {
    white-space: nowrap !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-list-quantity .fb-img-cart-cell-line {
    font-weight: 400 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-line-processing {
    min-height: 44px !important;
    opacity: .86;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-config-lines {
    gap: .12rem !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-config-line {
    display: block !important;
    line-height: 1.32 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-total-qty {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    gap: .35rem !important;
    white-space: nowrap !important;
}

@media (min-width: 901px) {
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-price {
        width: 86px !important;
        max-width: 86px !important;
        min-width: 78px !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-quantity {
        width: 150px !important;
        max-width: 150px !important;
        min-width: 122px !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item.fb-img-cart-uses-thumbnail-space td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js.fb-img-cart-uses-thumbnail-space td.product-subtotal {
        width: 92px !important;
        max-width: 92px !important;
        min-width: 78px !important;
    }
}

@media (max-width: 767px) {
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-list {
        padding-top: 0 !important;
        gap: .35rem !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-cell-line,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-quantity-line {
        justify-content: flex-start !important;
        min-height: 0 !important;
        padding: .2rem 0 !important;
        text-align: left !important;
    }
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-quantity .quantity:has(.fb-img-cart-cell-list),
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-quantity .quantity:has(.fb-img-cart-cell-list),
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-quantity .quantity:has(.fb-img-cart-cell-list),
body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-quantity .quantity:has(.fb-img-cart-cell-list) {
    display: block !important;
    width: 100% !important;
}


/* Testversion 1.0.18: präzisere Fotokonfiguration, rechtwinklige Zuschnitte und korrigierte Warn-/Zusammenfassungsdarstellung. */
.fb-img-terminal-stage,
.fb-img-summary-thumb,
.fb-img-cart-photo-thumb {
    border-radius: 0 !important;
}

.fb-img-terminal-stage {
    border: 3px solid #dc2626 !important;
}

.fb-img-quality-warning,
.fb-img-summary-quality-warning,
.fb-img-quality-warning-inline {
    color: #dc2626 !important;
    font-weight: 400 !important;
}

.fb-img-item-fields > .fb-img-quality-warning {
    margin: .25rem 0 .1rem !important;
    padding: .55rem .65rem !important;
    border-left: 3px solid #dc2626 !important;
    background: rgba(220, 38, 38, .055) !important;
    line-height: 1.45 !important;
}

.fb-img-crop-controls {
    align-items: end !important;
}

.fb-img-reset-crop,
.fb-img-remove-photo {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .16) !important;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

.fb-img-reset-crop {
    background: #009fe3 !important;
}

.fb-img-remove-photo {
    background: #dc2626 !important;
}

.fb-img-reset-crop:hover,
.fb-img-remove-photo:hover,
.fb-img-reset-crop:focus,
.fb-img-remove-photo:focus {
    color: #fff !important;
    transform: translateY(-1px) !important;
    filter: brightness(.98) !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .2) !important;
}

.fb-img-reset-crop:active,
.fb-img-remove-photo:active {
    transform: translateY(0) !important;
    box-shadow: 0 5px 12px rgba(15, 23, 42, .16) !important;
}

@media (max-width: 520px) {
    .fb-img-crop-controls {
        grid-template-columns: 1fr !important;
    }
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: .65rem !important;
    width: 100% !important;
    max-width: 620px !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary span {
    display: inline-flex !important;
    flex: 1 1 210px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.25rem !important;
    min-width: 190px !important;
    padding: .58rem .85rem !important;
    white-space: nowrap !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary em,
body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary strong {
    white-space: nowrap !important;
}

@media (max-width: 560px) {
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary span {
        flex-basis: 100% !important;
        min-width: 0 !important;
    }
}

/* Testversion 1.0.19: mobile Zoom-Bedienung direkt unter der Foto-Vorschau. */
.fb-img-mobile-zoom-control {
    display: none;
    width: min(100%, 340px);
    margin: 2px auto 0;
    color: #374151;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
}

.fb-img-mobile-zoom-control input[type="range"] {
    display: block;
    width: 100%;
    margin-top: 7px;
    accent-color: #009fe3;
}

@media (max-width: 820px) {
    .fb-img-mobile-zoom-control {
        display: block;
        order: 2;
    }
    .fb-img-item-card__preview .fb-img-crop-hint {
        order: 3;
    }
}

@media (max-width: 520px) {
    .fb-img-mobile-zoom-control {
        width: 100%;
    }
    .fb-img-crop-controls .fb-img-desktop-zoom-control {
        display: none !important;
    }
}

/* Testversion 1.0.20: unaufdringliche Crop-Aktionen direkt unter der Bildvorschau und Mindermengenzuschlag-Hinweis. */
.fb-img-preview-actions {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin: 10px 0 0;
}

.fb-img-preview-actions .fb-img-reset-crop,
.fb-img-preview-actions .fb-img-remove-photo {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 7px 11px !important;
    border-radius: 0 !important;
    border-width: 1px !important;
    border-style: solid !important;
    font-size: .86rem !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .08) !important;
    transform: none !important;
    filter: none !important;
}

.fb-img-preview-actions .fb-img-reset-crop {
    background: rgba(0, 159, 227, .08) !important;
    border-color: rgba(0, 159, 227, .45) !important;
    color: #0078a8 !important;
}

.fb-img-preview-actions .fb-img-remove-photo {
    background: rgba(220, 38, 38, .08) !important;
    border-color: rgba(220, 38, 38, .45) !important;
    color: #b91c1c !important;
}

.fb-img-preview-actions .fb-img-reset-crop:hover,
.fb-img-preview-actions .fb-img-reset-crop:focus {
    background: rgba(0, 159, 227, .14) !important;
    color: #006b96 !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .11) !important;
}

.fb-img-preview-actions .fb-img-remove-photo:hover,
.fb-img-preview-actions .fb-img-remove-photo:focus {
    background: rgba(220, 38, 38, .14) !important;
    color: #991b1b !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .11) !important;
}

.fb-img-preview-actions .fb-img-reset-crop:active,
.fb-img-preview-actions .fb-img-remove-photo:active {
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08) !important;
}

.fb-img-low-order-fee-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-left: 3px solid #009fe3;
    background: rgba(0, 159, 227, .06);
    font-size: .9em;
    line-height: 1.45;
}

.fb-img-low-order-fee-note p {
    margin: 0;
}

.fb-img-low-order-fee-note-row td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

@media (max-width: 520px) {
    .fb-img-preview-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .fb-img-preview-actions .fb-img-reset-crop,
    .fb-img-preview-actions .fb-img-remove-photo {
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 360px) {
    .fb-img-preview-actions {
        grid-template-columns: 1fr;
    }
}

/* Testversion 1.0.21: mobile Warenkorb-/Checkout-Korrekturen für FotoUpload-Produkte. */
.fb-img-cart-mobile-finance {
    display: none;
}

/* Die Überschrift darf nie mehr als Button/Badge wirken. */
.fb-img-cart-meta .fb-img-cart-meta-label,
body.fb-img-cart-has-upload .fb-img-cart-meta .fb-img-cart-meta-label,
.woocommerce-checkout .fb-img-cart-meta .fb-img-cart-meta-label,
.woocommerce-cart .fb-img-cart-meta .fb-img-cart-meta-label {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: .25rem 0 .35rem !important;
    padding: .45rem 0 .55rem .85rem !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-left: 4px solid var(--fb-cart-accent, #009fe3) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .14) !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font: inherit !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

/* Checkout-/Zahlungsboxen dürfen auf Mobilgeräten nicht rechts abgeschnitten werden. */
body.fb-img-cart-has-upload.woocommerce-checkout,
body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce,
body.fb-img-cart-has-upload.woocommerce-checkout form.checkout,
body.fb-img-cart-has-upload.woocommerce-checkout #order_review,
body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order,
body.fb-img-cart-has-upload.woocommerce-checkout #payment,
body.fb-img-cart-has-upload.woocommerce-checkout ul.payment_methods,
body.fb-img-cart-has-upload.woocommerce-checkout .payment_box {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.fb-img-cart-has-upload.woocommerce-checkout #payment,
body.fb-img-cart-has-upload.woocommerce-checkout ul.payment_methods,
body.fb-img-cart-has-upload.woocommerce-checkout .payment_box {
    overflow-x: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

body.fb-img-cart-has-upload.woocommerce-checkout .payment_methods li,
body.fb-img-cart-has-upload.woocommerce-checkout .wc_payment_method,
body.fb-img-cart-has-upload.woocommerce-checkout .payment_box p {
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

@media (max-width: 767px) {
    /* FotoUpload-Warenkorbzeilen als volle Karten ausgeben statt gequetschter Tabellenansicht. */
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-name {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        overflow: visible !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-list,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-config-lines {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row {
        padding: .9rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body {
        grid-template-columns: 1fr !important;
        gap: .7rem !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-thumb {
        width: min(190px, 100%) !important;
        max-width: 100% !important;
        justify-self: start !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-config-line,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-total-qty,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-file-name,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-quality-warning,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-quality-warning p {
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-total-qty {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: .25rem .35rem !important;
    }

    /* In der mobilen Warenkorbansicht die Preis-/Mengen-/Zwischensummenwerte direkt in der Fotokarte zeigen. */
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .35rem !important;
        margin-top: .7rem !important;
        padding-top: .65rem !important;
        border-top: 1px solid rgba(15, 23, 42, .12) !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance span {
        display: flex !important;
        align-items: baseline !important;
        justify-content: space-between !important;
        gap: .8rem !important;
        min-width: 0 !important;
        line-height: 1.3 !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance em {
        font-style: normal !important;
        opacity: .72 !important;
        min-width: 0 !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance strong {
        font-weight: 700 !important;
        text-align: right !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal {
        display: none !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .55rem !important;
        max-width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta-summary span {
        min-width: 0 !important;
        width: 100% !important;
        white-space: normal !important;
    }

    /* Checkout: die Foto-Konfiguration darf im Bestellüberblick nicht rechts auslaufen. */
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-meta,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-list,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-body,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-config-lines {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-row {
        padding: .85rem !important;
    }

    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-body {
        grid-template-columns: 1fr !important;
    }

    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-thumb {
        width: min(190px, 100%) !important;
        max-width: 100% !important;
        justify-self: start !important;
    }

    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-config-line,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-total-qty,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-file-name,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-quality-warning,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-quality-warning p {
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }
}

@media (max-width: 420px) {
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart tr.fb-img-cart-item-js td.product-name {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-row {
        padding: .75rem !important;
    }
}

/* Version 1.0.23: Rechte- und Datenschutzbestätigung */
.fb-img-legal-fieldset{
    margin-top:18px;
    border:1px solid rgba(0,169,214,.22);
    background:rgba(0,169,214,.045);
}
.fb-img-legal-fieldset legend{
    font-weight:600;
}
.fb-img-legal-hint{
    margin:0 0 12px 0;
    line-height:1.5;
}
.fb-img-legal-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:10px 0;
    padding:12px 14px;
    border:1px solid rgba(15,23,42,.12);
    background:#fff;
    border-radius:10px;
    line-height:1.45;
}
.fb-img-legal-check input{
    flex:0 0 auto;
    margin-top:3px;
}
.fb-img-legal-links a{
    text-decoration:underline;
}
@media (max-width: 767px){
    .fb-img-legal-check{
        padding:11px 12px;
        border-radius:8px;
    }
}

/* Version 1.0.24: mobile FotoUpload-Warenkorbkarte nutzt die volle verfügbare Breite. */
@media (max-width: 767px) {
    body.fb-img-cart-has-upload.woocommerce-cart,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce-cart-form,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table tbody,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item.fb-img-cart-item-js,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__cart-item.fb-img-cart-item-js,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product.fb-img-cart-item-js {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item.fb-img-cart-item-js > *,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__cart-item.fb-img-cart-item-js > *,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product.fb-img-cart-item-js > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item.fb-img-cart-item-js .product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__cart-item.fb-img-cart-item-js .product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product.fb-img-cart-item-js .product-thumbnail {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-remove,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-remove,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item.fb-img-cart-item-js .product-remove,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__cart-item.fb-img-cart-item-js .product-remove,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product.fb-img-cart-item-js .product-remove {
        position: absolute !important;
        top: .65rem !important;
        right: .45rem !important;
        left: auto !important;
        z-index: 5 !important;
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item.fb-img-cart-item-js .product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__cart-item.fb-img-cart-item-js .product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product.fb-img-cart-item-js .product-name {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: .8rem 0 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-product-title,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-list,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row {
        padding: 1rem !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance span {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: baseline !important;
        gap: .75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance strong {
        min-width: max-content !important;
        white-space: nowrap !important;
        text-align: right !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

@media (max-width: 420px) {
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item.fb-img-cart-item-js .product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__cart-item.fb-img-cart-item-js .product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product.fb-img-cart-item-js .product-name {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row {
        padding: .9rem !important;
    }
}


/* Version 1.0.25: Mobile Layout-Härtung für FotoUpload-Warenkorb/Checkout und besser sichtbare Vorschaubuttons. */
.fb-img-preview-actions .fb-img-reset-crop {
    background: rgba(0, 159, 227, .18) !important;
    border-color: rgba(0, 159, 227, .82) !important;
    color: #006f9f !important;
    box-shadow: 0 5px 12px rgba(0, 159, 227, .16) !important;
}

.fb-img-preview-actions .fb-img-remove-photo {
    background: rgba(220, 38, 38, .18) !important;
    border-color: rgba(220, 38, 38, .82) !important;
    color: #991b1b !important;
    box-shadow: 0 5px 12px rgba(220, 38, 38, .14) !important;
}

.fb-img-preview-actions .fb-img-reset-crop:hover,
.fb-img-preview-actions .fb-img-reset-crop:focus {
    background: rgba(0, 159, 227, .25) !important;
    border-color: rgba(0, 159, 227, 1) !important;
}

.fb-img-preview-actions .fb-img-remove-photo:hover,
.fb-img-preview-actions .fb-img-remove-photo:focus {
    background: rgba(220, 38, 38, .25) !important;
    border-color: rgba(220, 38, 38, 1) !important;
}

@media (max-width: 767px) {
    body.fb-img-cart-has-upload.woocommerce-cart,
    body.fb-img-cart-has-upload.woocommerce-checkout {
        overflow-x: hidden !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart *,
    body.fb-img-cart-has-upload.woocommerce-checkout * {
        box-sizing: border-box !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .site-main,
    body.fb-img-cart-has-upload.woocommerce-cart main,
    body.fb-img-cart-has-upload.woocommerce-cart .entry-content,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-section,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-container,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-wrap,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-container,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart,
    body.fb-img-cart-has-upload.woocommerce-cart .e-con,
    body.fb-img-cart-has-upload.woocommerce-cart .e-con-inner,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form,
    body.fb-img-cart-has-upload.woocommerce-cart .cart-collaterals,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals,
    body.fb-img-cart-has-upload.woocommerce-checkout .site-main,
    body.fb-img-cart-has-upload.woocommerce-checkout main,
    body.fb-img-cart-has-upload.woocommerce-checkout .entry-content,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce,
    body.fb-img-cart-has-upload.woocommerce-checkout .elementor,
    body.fb-img-cart-has-upload.woocommerce-checkout .elementor-section,
    body.fb-img-cart-has-upload.woocommerce-checkout .elementor-container,
    body.fb-img-cart-has-upload.woocommerce-checkout .elementor-widget-wrap,
    body.fb-img-cart-has-upload.woocommerce-checkout .elementor-widget-container,
    body.fb-img-cart-has-upload.woocommerce-checkout .elementor-widget-woocommerce-checkout-page,
    body.fb-img-cart-has-upload.woocommerce-checkout .e-con,
    body.fb-img-cart-has-upload.woocommerce-checkout .e-con-inner,
    body.fb-img-cart-has-upload.woocommerce-checkout form.checkout,
    body.fb-img-cart-has-upload.woocommerce-checkout #customer_details,
    body.fb-img-cart-has-upload.woocommerce-checkout #order_review,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form,
    body.fb-img-cart-has-upload.woocommerce-cart .cart-collaterals,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals,
    body.fb-img-cart-has-upload.woocommerce-checkout #order_review,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table tbody,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tbody,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table tr,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tr,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals .shop_table tr.woocommerce-shipping-totals,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
        display: grid !important;
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
        gap: 6px 10px !important;
        align-items: start !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table th,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table th,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        overflow: visible !important;
        text-align: left !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td {
        text-align: right !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table tr.shipping td,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals td,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tr.shipping td,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
        text-align: left !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td .amount,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td .amount,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td bdi,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td bdi {
        white-space: nowrap !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-list,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-meta,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-list,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-body,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-mobile-finance {
        transform: none !important;
        left: auto !important;
        right: auto !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-row {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance span,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-mobile-finance span {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) max-content !important;
        gap: .55rem !important;
        align-items: start !important;
        width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance em,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-mobile-finance em {
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance strong,
    body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-mobile-finance strong {
        min-width: max-content !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.fb-img-cart-has-upload.woocommerce-checkout #payment ul.payment_methods,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment .payment_methods,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment .wc_payment_methods,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment li.wc_payment_method,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment .payment_box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.fb-img-cart-has-upload.woocommerce-checkout #payment li.wc_payment_method label,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment li.wc_payment_method .payment_box,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment li.wc_payment_method p {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    body.fb-img-cart-has-upload.woocommerce-checkout #payment img,
    body.fb-img-cart-has-upload.woocommerce-checkout #payment svg {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Version 1.0.26-test: Elementor-naher Warenkorb-Testmodus + besser sichtbare Vorschaubuttons. */
.fb-img-preview-actions .fb-img-reset-crop,
.fb-img-preview-actions .fb-img-remove-photo {
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: none !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .18) !important;
}

.fb-img-preview-actions .fb-img-reset-crop {
    background: #009fe3 !important;
    border-color: #009fe3 !important;
    color: #fff !important;
}

.fb-img-preview-actions .fb-img-remove-photo {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

.fb-img-preview-actions .fb-img-reset-crop:hover,
.fb-img-preview-actions .fb-img-reset-crop:focus {
    background: #0089c4 !important;
    border-color: #0089c4 !important;
    color: #fff !important;
}

.fb-img-preview-actions .fb-img-remove-photo:hover,
.fb-img-preview-actions .fb-img-remove-photo:focus {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}

/* Der Warenkorb soll die Elementor-/WooCommerce-Struktur nutzen. Das Plugin liefert nur die Fotodaten sauber strukturiert. */
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-meta,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-list,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-row,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-body,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-text,
body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-meta,
body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-list,
body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-row,
body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-body,
body.fb-img-cart-has-upload.woocommerce-checkout .fb-img-cart-photo-text {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-meta {
    width: 100% !important;
    margin: .9rem 0 0 !important;
    padding: 0 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-meta-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem !important;
    width: 100% !important;
    margin: 0 0 .9rem !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-meta-summary span {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: .65rem .85rem !important;
    border: 1px solid rgba(0,159,227,.45) !important;
    border-radius: .65rem !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-meta-label {
    display: block !important;
    width: 100% !important;
    margin: 1rem 0 .85rem !important;
    padding: .15rem 0 .15rem .75rem !important;
    border-left: 4px solid #009fe3 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: 1.05em !important;
    line-height: 1.25 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-row {
    width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: .75rem !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-heading {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .35rem .6rem !important;
    width: 100% !important;
    margin: 0 0 .65rem !important;
    line-height: 1.25 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-body {
    display: grid !important;
    grid-template-columns: minmax(82px, 128px) minmax(0, 1fr) !important;
    gap: .85rem !important;
    align-items: start !important;
    width: 100% !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-thumb {
    width: 100% !important;
    max-width: 128px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-text,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-config-lines,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-config-line,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-total-qty,
body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-file-name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
}

body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-mobile-finance {
    display: none !important;
}

@media (max-width: 767px) {
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__contents,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form table.shop_table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: auto !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item.fb-img-cart-item-js,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form__cart-item.fb-img-cart-item-js {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-thumbnail {
        display: none !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-subtotal {
        display: none !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-meta-summary {
        grid-template-columns: 1fr !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-row {
        padding: .9rem !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-body {
        grid-template-columns: 96px minmax(0, 1fr) !important;
        gap: .75rem !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-thumb {
        max-width: 96px !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-mobile-finance {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .45rem !important;
        margin-top: .85rem !important;
        padding-top: .75rem !important;
        border-top: 1px solid rgba(15, 23, 42, .12) !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-mobile-finance span {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) max-content !important;
        gap: .75rem !important;
        align-items: baseline !important;
        width: 100% !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-mobile-finance em {
        min-width: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        font-style: normal !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-mobile-finance strong {
        min-width: max-content !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 420px) {
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-body {
        grid-template-columns: 1fr !important;
    }

    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item .fb-img-cart-photo-thumb {
        max-width: min(210px, 100%) !important;
    }
}


/* Version 1.0.27-test: finale mobile Korrekturen für Elementor-Warenkorb/Checkout, Mini-Cart und FotoUpload-Buttons. */
.fb-img-preview-actions .fb-img-reset-crop,
.fb-img-preview-actions .fb-img-remove-photo {
    color: #fff !important;
    opacity: 1 !important;
    background-clip: padding-box !important;
    border-width: 1px !important;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .22) !important;
}
.fb-img-preview-actions .fb-img-reset-crop {
    background: #00a9d6 !important;
    border-color: #00a9d6 !important;
}
.fb-img-preview-actions .fb-img-remove-photo {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}
.fb-img-preview-actions .fb-img-reset-crop:hover,
.fb-img-preview-actions .fb-img-reset-crop:focus {
    background: #008fba !important;
    border-color: #008fba !important;
}
.fb-img-preview-actions .fb-img-remove-photo:hover,
.fb-img-preview-actions .fb-img-remove-photo:focus {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* Mindermengenzuschlags-Hinweis im Warenkorb/Checkout immer als vollbreite Hinweisbox ausgeben. */
.fb-img-low-order-fee-note {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 16px !important;
    padding: 14px 16px !important;
    text-align: left !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}
.fb-img-low-order-fee-note p {
    margin: 0 !important;
    text-align: left !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}
.fb-img-low-order-fee-note-row,
body.fb-img-cart-has-upload .woocommerce-checkout-review-order-table .fb-img-low-order-fee-note-row,
body.fb-img-cart-has-upload .cart_totals table.shop_table .fb-img-low-order-fee-note-row {
    display: table-row !important;
    width: 100% !important;
}
.fb-img-low-order-fee-note-row td,
body.fb-img-cart-has-upload .woocommerce-checkout-review-order-table .fb-img-low-order-fee-note-row td,
body.fb-img-cart-has-upload .cart_totals table.shop_table .fb-img-low-order-fee-note-row td {
    display: table-cell !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 14px !important;
    text-align: left !important;
}
@media (max-width: 767px) {
    .fb-img-low-order-fee-note-row,
    body.fb-img-cart-has-upload .woocommerce-checkout-review-order-table .fb-img-low-order-fee-note-row,
    body.fb-img-cart-has-upload .cart_totals table.shop_table .fb-img-low-order-fee-note-row {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
    .fb-img-low-order-fee-note-row td,
    body.fb-img-cart-has-upload .woocommerce-checkout-review-order-table .fb-img-low-order-fee-note-row td,
    body.fb-img-cart-has-upload .cart_totals table.shop_table .fb-img-low-order-fee-note-row td {
        display: block !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* WooCommerce/Elementor erzeugt auf Mobilgeräten oft td::before-Labels. Bei Summenblöcken führt das zu Doppelbeschriftungen. */
body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td::before,
body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td::before,
body.fb-img-cart-has-upload .cart_totals table.shop_table td::before,
body.fb-img-cart-has-upload #order_review table.shop_table td::before,
body.fb-img-cart-has-upload .woocommerce-checkout-review-order-table td::before {
    content: none !important;
    display: none !important;
}

@media (max-width: 767px) {
    /* Summentabellen: keine gequetschten Doppelspalten, sondern zwei saubere Spalten mit vollem verfügbaren Platz. */
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals,
    body.fb-img-cart-has-upload.woocommerce-cart .cart-collaterals,
    body.fb-img-cart-has-upload.woocommerce-cart .woocommerce-cart-form,
    body.fb-img-cart-has-upload.woocommerce-checkout #order_review,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table,
    body.fb-img-cart-has-upload .cart_totals,
    body.fb-img-cart-has-upload #order_review {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table,
    body.fb-img-cart-has-upload .cart_totals table.shop_table,
    body.fb-img-cart-has-upload #order_review table.shop_table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table tr:not(.fb-img-low-order-fee-note-row),
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tr:not(.fb-img-low-order-fee-note-row),
    body.fb-img-cart-has-upload .cart_totals table.shop_table tr:not(.fb-img-low-order-fee-note-row),
    body.fb-img-cart-has-upload #order_review table.shop_table tr:not(.fb-img-low-order-fee-note-row) {
        display: grid !important;
        grid-template-columns: minmax(0, 44%) minmax(0, 56%) !important;
        gap: 8px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: start !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table th,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table th,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td,
    body.fb-img-cart-has-upload .cart_totals table.shop_table th,
    body.fb-img-cart-has-upload .cart_totals table.shop_table td,
    body.fb-img-cart-has-upload #order_review table.shop_table th,
    body.fb-img-cart-has-upload #order_review table.shop_table td {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        hyphens: none !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td,
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td,
    body.fb-img-cart-has-upload .cart_totals table.shop_table td,
    body.fb-img-cart-has-upload #order_review table.shop_table td {
        text-align: right !important;
    }
    body.fb-img-cart-has-upload .woocommerce-shipping-totals td,
    body.fb-img-cart-has-upload tr.shipping td {
        text-align: left !important;
    }
    body.fb-img-cart-has-upload .amount,
    body.fb-img-cart-has-upload bdi {
        white-space: nowrap !important;
    }
}

/* Mobile Warenkorbprodukt-Karte: externe Preis-/Mengen-/Zwischensummenspalten ausblenden und Werte in der Fotokarte zeigen. */
@media (max-width: 767px) {
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js,
    body.fb-img-cart-has-upload.woocommerce-cart tr:has(.fb-img-cart-meta),
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item:has(.fb-img-cart-meta),
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product:has(.fb-img-cart-meta) {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: visible !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart tr:has(.fb-img-cart-meta) td.product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item:has(.fb-img-cart-meta) .product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product:has(.fb-img-cart-meta) .product-thumbnail,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr:has(.fb-img-cart-meta) td.product-price,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr:has(.fb-img-cart-meta) td.product-quantity,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-subtotal,
    body.fb-img-cart-has-upload.woocommerce-cart tr:has(.fb-img-cart-meta) td.product-subtotal {
        display: none !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr.fb-img-cart-item-js td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart tr:has(.fb-img-cart-meta) td.product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .cart_item:has(.fb-img-cart-meta) .product-name,
    body.fb-img-cart-has-upload.woocommerce-cart .elementor-cart__product:has(.fb-img-cart-meta) .product-name {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-product-title,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-meta,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-list,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-config-lines,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-row {
        display: block !important;
        padding: .95rem !important;
        margin: 0 !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body {
        display: grid !important;
        grid-template-columns: minmax(82px, 118px) minmax(0, 1fr) !important;
        gap: .8rem !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: .45rem !important;
        margin-top: .8rem !important;
        padding-top: .75rem !important;
        border-top: 1px solid rgba(15,23,42,.12) !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance span {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: .6rem !important;
        align-items: baseline !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance strong {
        white-space: nowrap !important;
        text-align: right !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-mobile-finance em,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-text,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-config-line,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-file-name,
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-quality-warning {
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        hyphens: none !important;
    }
}
@media (max-width: 390px) {
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-body {
        grid-template-columns: 1fr !important;
    }
    body.fb-img-cart-has-upload.woocommerce-cart .fb-img-cart-photo-thumb {
        width: min(220px, 100%) !important;
        max-width: 100% !important;
    }
}

/* Mini-Warenkorb/Sidecart: Fotominiaturen dürfen nicht als schwebendes Element hängen bleiben. */
.woocommerce-mini-cart .fb-img-cart-photo-thumb,
.elementor-menu-cart__product .fb-img-cart-photo-thumb,
.elementor-menu-cart__main .fb-img-cart-photo-thumb,
.widget_shopping_cart .fb-img-cart-photo-thumb,
.woocommerce-mini-cart .fb-img-cart-photo-thumb img,
.elementor-menu-cart__product .fb-img-cart-photo-thumb img,
.elementor-menu-cart__main .fb-img-cart-photo-thumb img,
.widget_shopping_cart .fb-img-cart-photo-thumb img {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
}
.woocommerce-mini-cart .fb-img-cart-photo-thumb,
.elementor-menu-cart__product .fb-img-cart-photo-thumb,
.elementor-menu-cart__main .fb-img-cart-photo-thumb,
.widget_shopping_cart .fb-img-cart-photo-thumb {
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}
.woocommerce-mini-cart .fb-img-cart-photo-body,
.elementor-menu-cart__product .fb-img-cart-photo-body,
.elementor-menu-cart__main .fb-img-cart-photo-body,
.widget_shopping_cart .fb-img-cart-photo-body {
    display: grid !important;
    grid-template-columns: 64px minmax(0,1fr) !important;
    align-items: start !important;
    overflow: visible !important;
}
.woocommerce-mini-cart .fb-img-cart-photo-thumb img,
.elementor-menu-cart__product .fb-img-cart-photo-thumb img,
.elementor-menu-cart__main .fb-img-cart-photo-thumb img,
.widget_shopping_cart .fb-img-cart-photo-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Version 1.0.28: Mini-Warenkorb/Sidecart stabilisieren.
   Elementor rendert bei manchen Menu-Cart-Varianten zusätzlich ein eigenes Produktbild.
   Dieses Produktbild wird bei FotoUpload-Positionen ausgeblendet, damit nur der echte
   konfigurierte Kundenausschnitt innerhalb der Fotokarte sichtbar bleibt. */
.woocommerce-mini-cart li.fb-img-mini-cart-item > a:not(.remove):not(.fb-img-cart-photo-link),
.woocommerce-mini-cart li.fb-img-mini-cart-item > a:not(.remove):not(.fb-img-cart-photo-link) img,
.woocommerce-mini-cart li.fb-img-mini-cart-item > .product-thumbnail,
.woocommerce-mini-cart li.fb-img-mini-cart-item > .elementor-menu-cart__product-image,
.woocommerce-mini-cart li.fb-img-mini-cart-item .elementor-menu-cart__product-image,
.elementor-menu-cart__product.fb-img-mini-cart-item-js > .elementor-menu-cart__product-image,
.elementor-menu-cart__product.fb-img-mini-cart-item-js .elementor-menu-cart__product-image,
.elementor-menu-cart__product.fb-img-mini-cart-item-js > a:not(.remove):not(.fb-img-cart-photo-link),
.widget_shopping_cart li.fb-img-mini-cart-item > a:not(.remove):not(.fb-img-cart-photo-link),
.widget_shopping_cart li.fb-img-mini-cart-item > a:not(.remove):not(.fb-img-cart-photo-link) img,
.widget_shopping_cart li.fb-img-mini-cart-item > .product-thumbnail {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    position: static !important;
    transform: none !important;
    z-index: -1 !important;
}

.woocommerce-mini-cart li.fb-img-mini-cart-item,
.elementor-menu-cart__product.fb-img-mini-cart-item-js,
.widget_shopping_cart li.fb-img-mini-cart-item,
.elementor-menu-cart__main .fb-img-mini-cart-item-js {
    position: relative !important;
    overflow: visible !important;
}

.woocommerce-mini-cart li.fb-img-mini-cart-item .fb-img-cart-meta,
.elementor-menu-cart__product.fb-img-mini-cart-item-js .fb-img-cart-meta,
.widget_shopping_cart li.fb-img-mini-cart-item .fb-img-cart-meta,
.elementor-menu-cart__main .fb-img-mini-cart-item-js .fb-img-cart-meta {
    position: static !important;
    transform: none !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce-mini-cart li.fb-img-mini-cart-item .fb-img-cart-photo-row,
.elementor-menu-cart__product.fb-img-mini-cart-item-js .fb-img-cart-photo-row,
.widget_shopping_cart li.fb-img-mini-cart-item .fb-img-cart-photo-row,
.elementor-menu-cart__main .fb-img-mini-cart-item-js .fb-img-cart-photo-row {
    position: static !important;
    transform: none !important;
    z-index: auto !important;
    overflow: visible !important;
}

.woocommerce-mini-cart li.fb-img-mini-cart-item .fb-img-cart-photo-thumb,
.elementor-menu-cart__product.fb-img-mini-cart-item-js .fb-img-cart-photo-thumb,
.widget_shopping_cart li.fb-img-mini-cart-item .fb-img-cart-photo-thumb,
.elementor-menu-cart__main .fb-img-mini-cart-item-js .fb-img-cart-photo-thumb {
    position: relative !important;
    float: none !important;
    clear: none !important;
    transform: none !important;
    z-index: auto !important;
    display: block !important;
    flex: 0 0 64px !important;
}

.woocommerce-mini-cart li.fb-img-mini-cart-item .fb-img-cart-photo-thumb img,
.elementor-menu-cart__product.fb-img-mini-cart-item-js .fb-img-cart-photo-thumb img,
.widget_shopping_cart li.fb-img-mini-cart-item .fb-img-cart-photo-thumb img,
.elementor-menu-cart__main .fb-img-mini-cart-item-js .fb-img-cart-photo-thumb img {
    position: static !important;
    float: none !important;
    transform: none !important;
    inset: auto !important;
    z-index: auto !important;
}


/* Version 1.0.29: Elementor-Sidecart kann bei FotoUpload-Artikeln ein zusätzliches
   eigenes Produktbild sticky/fixed rendern. Dieses Bild wird gezielt ausgeblendet;
   sichtbar bleibt nur der echte Kundenausschnitt innerhalb der Foto-Konfiguration. */
.woocommerce-mini-cart .fb-img-sidecart-product-image-hidden,
.widget_shopping_cart .fb-img-sidecart-product-image-hidden,
.elementor-menu-cart__container .fb-img-sidecart-product-image-hidden,
.elementor-menu-cart__main .fb-img-sidecart-product-image-hidden,
.elementor-menu-cart__products .fb-img-sidecart-product-image-hidden,
.woocommerce-mini-cart .fb-img-sidecart-product-image-hidden img,
.widget_shopping_cart .fb-img-sidecart-product-image-hidden img,
.elementor-menu-cart__container .fb-img-sidecart-product-image-hidden img,
.elementor-menu-cart__main .fb-img-sidecart-product-image-hidden img,
.elementor-menu-cart__products .fb-img-sidecart-product-image-hidden img {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    position: static !important;
    transform: none !important;
    z-index: -1 !important;
}
.woocommerce-mini-cart .fb-img-cart-photo-thumb,
.widget_shopping_cart .fb-img-cart-photo-thumb,
.elementor-menu-cart__container .fb-img-cart-photo-thumb,
.elementor-menu-cart__main .fb-img-cart-photo-thumb,
.elementor-menu-cart__products .fb-img-cart-photo-thumb,
.woocommerce-mini-cart .fb-img-cart-photo-thumb img,
.widget_shopping_cart .fb-img-cart-photo-thumb img,
.elementor-menu-cart__container .fb-img-cart-photo-thumb img,
.elementor-menu-cart__main .fb-img-cart-photo-thumb img,
.elementor-menu-cart__products .fb-img-cart-photo-thumb img {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    transform: none !important;
    translate: none !important;
    z-index: auto !important;
}
.woocommerce-mini-cart .fb-img-cart-photo-thumb,
.widget_shopping_cart .fb-img-cart-photo-thumb,
.elementor-menu-cart__container .fb-img-cart-photo-thumb,
.elementor-menu-cart__main .fb-img-cart-photo-thumb,
.elementor-menu-cart__products .fb-img-cart-photo-thumb {
    display: block !important;
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
}

/* Version 1.0.30: Elementor-Sidecart mobile Fix.
   Im Mini-Warenkorb werden Fotoausschnitte als CSS-Hintergrund gerendert, damit
   Elementor/mobile Browser daraus kein sticky/floating <img> erzeugen können. */
.woocommerce-mini-cart .fb-img-cart-photo-thumb-bg,
.widget_shopping_cart .fb-img-cart-photo-thumb-bg,
.elementor-menu-cart__container .fb-img-cart-photo-thumb-bg,
.elementor-menu-cart__main .fb-img-cart-photo-thumb-bg,
.elementor-menu-cart__products .fb-img-cart-photo-thumb-bg {
    background-image: var(--fb-img-thumb-url) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    position: static !important;
    transform: none !important;
    inset: auto !important;
    z-index: auto !important;
}
.woocommerce-mini-cart .fb-img-mini-cart-item img:not(.fb-img-cart-allowed-img),
.widget_shopping_cart .fb-img-mini-cart-item img:not(.fb-img-cart-allowed-img),
.elementor-menu-cart__container .fb-img-mini-cart-item-js img:not(.fb-img-cart-allowed-img),
.elementor-menu-cart__main .fb-img-mini-cart-item-js img:not(.fb-img-cart-allowed-img),
.elementor-menu-cart__products .fb-img-mini-cart-item-js img:not(.fb-img-cart-allowed-img) {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    position: static !important;
    transform: none !important;
    z-index: -1 !important;
}
.woocommerce-mini-cart .fb-img-cart-photo-thumb img.fb-img-cart-allowed-img,
.widget_shopping_cart .fb-img-cart-photo-thumb img.fb-img-cart-allowed-img,
.elementor-menu-cart__container .fb-img-cart-photo-thumb img.fb-img-cart-allowed-img,
.elementor-menu-cart__main .fb-img-cart-photo-thumb img.fb-img-cart-allowed-img,
.elementor-menu-cart__products .fb-img-cart-photo-thumb img.fb-img-cart-allowed-img {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    z-index: auto !important;
}

/* Version 1.0.31: Mobiler Sidecart-Fix. Im ausklappbaren Warenkorb werden
   FotoUpload-Ausschnitte nicht als IMG, sondern als mitscrollender Hintergrund im
   Thumb-Container dargestellt. Alle IMG-Klone derselben Vorschau werden entfernt/versteckt. */
.woocommerce-mini-cart .fb-img-sidecart-converted-thumb,
.widget_shopping_cart .fb-img-sidecart-converted-thumb,
.elementor-menu-cart__container .fb-img-sidecart-converted-thumb,
.elementor-menu-cart__main .fb-img-sidecart-converted-thumb,
.elementor-menu-cart__products .fb-img-sidecart-converted-thumb {
    background-image: var(--fb-img-thumb-url) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: static !important;
    transform: none !important;
    z-index: auto !important;
    overflow: hidden !important;
}
.woocommerce-mini-cart .fb-img-sidecart-img-removed,
.widget_shopping_cart .fb-img-sidecart-img-removed,
.elementor-menu-cart__container .fb-img-sidecart-img-removed,
.elementor-menu-cart__main .fb-img-sidecart-img-removed,
.elementor-menu-cart__products .fb-img-sidecart-img-removed {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    position: static !important;
    transform: none !important;
    z-index: -1 !important;
}

/* =========================================================
   1.0.32: Rechtssichere Summen-Beschriftungen und stabile Totals
   ========================================================= */
body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table th,
body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.fb-img-cart-has-upload .cart_totals table.shop_table th,
body.fb-img-cart-has-upload #order_review table.shop_table th {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    text-indent: 0 !important;
    clip: auto !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: left !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td,
body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td,
body.fb-img-cart-has-upload .cart_totals table.shop_table td,
body.fb-img-cart-has-upload #order_review table.shop_table td {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    max-width: 100% !important;
    overflow: visible !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table tr:not(.fb-img-low-order-fee-note-row),
body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tr:not(.fb-img-low-order-fee-note-row),
body.fb-img-cart-has-upload .cart_totals table.shop_table tr:not(.fb-img-low-order-fee-note-row),
body.fb-img-cart-has-upload #order_review table.shop_table tr:not(.fb-img-low-order-fee-note-row) {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(90px, auto) !important;
    gap: 8px 16px !important;
    align-items: start !important;
}

body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table td::before,
body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table td::before,
body.fb-img-cart-has-upload .cart_totals table.shop_table td::before,
body.fb-img-cart-has-upload #order_review table.shop_table td::before {
    content: none !important;
    display: none !important;
}

body.fb-img-cart-has-upload .woocommerce-shipping-totals th,
body.fb-img-cart-has-upload tr.shipping th {
    overflow-wrap: normal !important;
    word-break: normal !important;
}

@media (max-width: 767px) {
    body.fb-img-cart-has-upload.woocommerce-cart .cart_totals table.shop_table tr:not(.fb-img-low-order-fee-note-row),
    body.fb-img-cart-has-upload.woocommerce-checkout .woocommerce-checkout-review-order-table tr:not(.fb-img-low-order-fee-note-row),
    body.fb-img-cart-has-upload .cart_totals table.shop_table tr:not(.fb-img-low-order-fee-note-row),
    body.fb-img-cart-has-upload #order_review table.shop_table tr:not(.fb-img-low-order-fee-note-row) {
        grid-template-columns: minmax(0, 1fr) minmax(72px, auto) !important;
    }
}
