#myModal .modal-dialog,
#myModalCards .modal-dialog {
    max-height: calc(100vh - 1rem);
    margin-top: .5rem;
    margin-bottom: .5rem;
}

#myModal .modal-content,
#myModalCards .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

#myModal .modal-body,
#myModalCards .modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
}

#myModalCards .modal-body {
    max-height: calc(100vh - 12rem);
}

#myModal .modal-body {
    max-height: calc(100vh - 10rem);
}

#itemincards {
    max-width: 100%;
}

.order-cart-item {
    padding: .35rem 0;
}

.order-cart-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding: .6rem 0;
    white-space: nowrap;
}

.order-cart-info {
    min-width: 0;
    flex: 1;
}

.order-cart-name {
    display: block;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-cart-price {
    color: #ff9100;
    flex-shrink: 0;
}

.order-cart-actions {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.order-qty-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
}

.order-cart-qty {
    min-width: 24px;
    text-align: center;
}

.order-delete-btn {
    padding: .15rem .25rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .order-cart-content {
        gap: .35rem;
    }

    .order-qty-btn {
        width: 28px;
        height: 28px;
    }

    .order-cart-qty {
        min-width: 18px;
    }
}
