/* Modal etwas breiter, aber mit sinnvoller Max-Höhe */
.delivery-modal-dialog {
    max-width: 920px;
    width: min(92vw, 920px);
    max-height: 85vh;
    overflow: auto;
}

/* Vergleichstabelle */
.bb-shipping-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

.bb-shipping-compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px; /* sorgt für horizontales Scrollen auf Mobile statt Höhenmonster */
    background: #fff;
}

.bb-shipping-compare th,
.bb-shipping-compare td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.bb-shipping-compare thead th {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 2;
    font-weight: 600;
}

.bb-col-weight {
    width: 220px;
}

.bb-price {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bb-weight {
    font-weight: 500;
}

.bb-sep td {
    padding: 0;
    border-bottom: 0;
    height: 10px;
    background: transparent;
}

.bb-special td {
    background: #fcfcfc;
}

.bb-shipping-note {
    margin: 10px 0 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

    .delivery-modal {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .delivery-modal.is-open {
        display: flex;
    }

    .delivery-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .delivery-modal-dialog {
        position: relative;
        max-width: 768px;
        width: 90%;
        background: #fff;
        border-radius: 12px;
        padding: 1.5rem 1.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        z-index: 1;
    }

    .delivery-modal-title {
        margin: 0 0 1rem;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .delivery-modal-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .delivery-modal-close {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 1.1rem;
        padding: 0.25rem;
    }

    .delivery-modal-close i {
        pointer-events: none;
    }

    .product-price-note {
        cursor: pointer;
    }

.bb-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bb-modal.is-visible {
    display: flex;
}

.bb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.bb-modal__dialog {
    position: relative;
    max-width: 480px;
    width: 90%;
    background: #fff;
    border-radius: 8px;
    padding: 24px 24px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.bb-modal__dialog h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.bb-modal__body p {
    margin: 0 0 8px;
}

.bb-modal__footer {
    margin-top: 16px;
    text-align: right;
}

.bb-modal__close-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #2271b1; 
    color: #fff;
    font-size: 14px;
}

