.b2bqo {
    width: 100%;
    margin: 1.5rem 0;
}

.b2bqo__header {
    margin-bottom: 1rem;
}

.b2bqo__title {
    margin: 0 0 .35rem;
}

.b2bqo__intro {
    margin: 0;
}

.b2bqo__table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

.b2bqo__table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.b2bqo__table th,
.b2bqo__table td {
    min-width: 0;
    padding: .65rem .55rem;
    vertical-align: middle;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
}

.b2bqo__table th {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
}

/*
 * Prozentuale Spaltenaufteilung statt fester Pixelbreiten.
 * Dadurch richtet sich die Tabelle immer nach der tatsaechlich
 * verfuegbaren Breite des OPC-/Shop-Containers und nicht nach
 * der Gesamtbreite des Browserfensters.
 */
.b2bqo__col-number { width: 16%; }
.b2bqo__col-image { width: 8%; }
.b2bqo__col-name { width: 24%; }
.b2bqo__col-price { width: 11%; }
.b2bqo__col-status { width: 14%; }
.b2bqo__col-delivery { width: 12%; }
.b2bqo__col-qty { width: 10%; }
.b2bqo__col-remove { width: 5%; }

.b2bqo__number,
.b2bqo__qty {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.b2bqo__number.is-invalid {
    border-color: #dc3545;
}

.b2bqo__image-box {
    width: min(72px, 100%);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.b2bqo__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.b2bqo__name {
    font-weight: 600;
    line-height: 1.3;
}

.b2bqo__price {
    font-weight: 600;
    white-space: nowrap;
}

.b2bqo__name,
.b2bqo__status,
.b2bqo__delivery {
    min-width: 0;
    overflow-wrap: anywhere;
}

.b2bqo__status,
.b2bqo__delivery {
    line-height: 1.3;
}

.b2bqo__remove {
    width: 34px;
    max-width: 100%;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.b2bqo__remove:hover,
.b2bqo__remove:focus {
    background: #f1f1f1;
}

.b2bqo__row-message {
    display: block;
    margin-top: .3rem;
    font-size: .82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.b2bqo__row-message--error {
    color: #b02a37;
}

.b2bqo__loading {
    opacity: .62;
}

.b2bqo__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.b2bqo__feedback {
    min-height: 1.4em;
}

.b2bqo__feedback--error {
    color: #b02a37;
}

.b2bqo__cart-button {
    flex: 0 0 auto;
}

.b2bqo__preview-note {
    margin-top: .75rem;
    font-size: .85rem;
    opacity: .7;
}

/* Notebook / kleiner Desktop: nur optisch kompakter, ohne horizontales Scrollen. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .b2bqo__table th,
    .b2bqo__table td {
        padding: .5rem .35rem;
    }

    .b2bqo__table th {
        font-size: .82rem;
    }

    .b2bqo__name,
    .b2bqo__price,
    .b2bqo__status,
    .b2bqo__delivery,
    .b2bqo__number,
    .b2bqo__qty {
        font-size: .9rem;
    }

    .b2bqo__image-box {
        width: min(58px, 100%);
    }

    .b2bqo__remove {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/*
 * Tablet/Mobil: Hier darf die Tabelle wieder horizontal scrollen,
 * damit Eingaben und Produktinformationen nicht unlesbar klein werden.
 */
@media (max-width: 991.98px) {
    .b2bqo__table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .b2bqo__table {
        min-width: 900px;
    }
}
